:root {
    /* Tres tonos de verde solicitados */
    --green-1: #0b6f3a;
    /* verde oscuro principal */
    --green-2: #28a745;
    /* verde medio / accent */
    --green-3: #8fd39b;
    /* verde claro / background */

    --transition-fast: 200ms ease-in-out;
}

/* Global styles */
html,
body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Navbar styles */
.navbar {
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 1100;
}

/* Transparent navbar (modo claro) */
.navbar.transparent {
    background-color: transparent !important;
}

.navbar.transparent .nav-link,
.navbar.transparent .navbar-brand {
    color: white !important;
}

/* Navbar scrolled (modo claro) */
.navbar-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand {
    color: #333 !important;
}

/* Navbar en modo oscuro */
[data-bs-theme="dark"] .navbar {
    background-color: #111 !important;
    backdrop-filter: none !important;
}

[data-bs-theme="dark"] .navbar .nav-link,
[data-bs-theme="dark"] .navbar .navbar-brand {
    color: white !important;
}

/* Modo oscuro + transparente (por si ocurre) */
[data-bs-theme="dark"] .navbar.transparent {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Force white navbar on mobile always */
@media (max-width: 767.98px) {
    .navbar {
        background: #fff !important
    }
}

/* Fullscreen carousel */
\  .hero-carousel,
.carousel-item {
    height: 100vh;
    min-height: 600px
}

.carousel-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 37, 18, 0.45), rgba(0, 0, 0, 0.20));
}

.hero-caption.bottom-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
    max-width: 900px;
    color: white;
}

.hero-caption.bottom-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-caption.bottom-caption p {
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .hero-caption.bottom-caption h1 {
        font-size: 1.6rem;
    }

    .hero-caption.bottom-caption p {
        font-size: 1rem;
    }
}

/* Sections */
section {
    padding: 80px 0
}

.accent-bg {
    background: linear-gradient(180deg, rgba(143, 211, 155, 0.12), rgba(40, 167, 69, 0.03));
}

/* Floating WhatsApp button */
.fab-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--green-2);
    color: #fff;
    border-radius: 50%;
    font-size: 22px
}

/* Floating social vertical bar (center-right) */
.social-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1190;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 6px;
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--green-1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    margin-left: 6px;
}

/* Footer */
/* Fondo footer */
.footer {
    background: #0f0f0f;
    color: #e6e6e6;
    width: 100%;
}

/* Barra superior */
.footer-top {
    background: #111;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo */
.footer-logo {
    height: 80px;
    width: auto;
}

/* Título */
.footer-title {
    color: var(--green-3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Texto normal */
.footer-text {
    color: #d0d0d0;
}

/* Enlaces */
.footer-links li {
    margin: 6px 0;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color .25s ease, padding-left .2s ease;
}

.footer-links a:hover {
    color: var(--green-2);
    padding-left: 4px;
}

/* Redes sociales */
.footer-social a {
    color: var(--green-3);
    font-size: 24px;
    transition: transform .25s ease, color .25s ease;
}

.footer-social a:hover {
    color: white;
    transform: scale(1.25);
}

/* Botón principal */
.btn-green {
    background: var(--green-1);
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    transition: background .25s ease, transform .2s ease;
}

.btn-green:hover {
    background: var(--green-2);
    transform: translateY(-2px);
}

/* Animación elegante */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* Dark mode helper (Bootstrap's data-bs-theme) */
.theme-toggle {
    cursor: pointer
}

/* Color del texto de la marca */
.navbar.transparent .brand-text {
    color: white !important;
}

.navbar-scrolled .brand-text {
    color: #222 !important;
}

/* Modo oscuro */
[data-bs-theme="dark"] .navbar .brand-text {
    color: white !important;
}

/* Contenedor flotante */
.social-bar {
    position: fixed;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* Iconos */
.social-bar a {
    width: 48px;
    height: 48px;
    background: white;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Animación hover */
.social-bar a:hover {
    transform: scale(1.18) translateX(-6px);
    background: var(--green-1);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Tooltip */
.social-bar a::after {
    content: attr(data-label);
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    background: #111;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Tooltip: flechita */
.social-bar a::before {
    content: "";
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #111;
    opacity: 0;
    transition: all 0.25s ease;
}

/* Mostrar tooltip */
.social-bar a:hover::after,
.social-bar a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Hero Parallax */
.hero-parallax {
    position: relative;
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    background-color: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    padding: 0 1rem;
}
.shadow-text {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

/* Cards Overlay */
.overlay-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--green-1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.overlay-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.overlay-card .card-img {
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

/* Texto dentro de cards */
.overlay-card .card-body {
    background-color: rgba(40, 167, 69, 0.8); /* verde medio con transparencia */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 767.98px){
    .hero-parallax {
        background-attachment: scroll;
        height: 50vh;
    }
    .overlay-card .card-body {
        padding: 2rem 1rem;
    }
}
body.dark-mode .overlay-card .card-body {
    background-color: rgba(28, 28, 28, 0.85);
}
.hero-parallax{
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay{
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover img{
    transform: scale(1.05);
}

.card:hover .card-overlay{
    opacity: 0.4;
}

.shadow-text{
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.card:hover img{
    transform: scale(1.05);
}

.card:hover .card-overlay{
    opacity: 0.4;
}

.shadow-text{
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.card{
    cursor: pointer;
}
/* Animaciones suaves */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Imagen decorativa */
.image-wrapper img {
    object-fit: cover;
    width: 100%;
    max-height: 380px;
    border-radius: 18px;
}