/* style_header,footer.css */
/* header section */
/* Navigation */
:root {
    --forest-green-dark: #000000;
    --primary-color: #eac736;
    --secondary-color: #2d5a3f;
    --accent-color: #eac736;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #fff;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.btn-hero {
    background: #eac736;
    color: var(--white);
    box-shadow: var(--shadow-emerald);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border: none;
    border-radius: .5rem;
    font-size: .875rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

/* social links removed from footer - styles deleted to avoid unused rules */

.approval-icon {
    width: 2rem;
    height: 2rem;
    background: hsl(255, 255%, 255%, .1);
    border-radius: .25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
}

.approval-badge {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: #25d366;
    border: none;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
}

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.whatsapp-btn svg {
    width: 2rem;
    height: 2rem;
}

.main-header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 0;
}

/* Barra de progreso de scroll */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #eac736;
    width: 0%;
    transition: width 0.1s ease;
    z-index: 100;
}

.main-header.scrolled {
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.main-header.scrolled .header-content {
    padding: 0.5rem 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.desktop-nav a,
.desktop-nav button {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    text-align: left;
}

.desktop-nav a::after,
.desktop-nav button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after,
.desktop-nav button:hover::after,
.desktop-nav button.active::after {
    width: 100%;
}

.desktop-nav a.active {
    color: var(--text-color);
    font-weight: 600;
}

/* Logo / identidad (centralizado aquí) */
.logo {
    display: flex;
    align-items: center;
    height: 120px !important;
    transition: all 0.3s ease;
}

.logo-img {
    height: 120px !important;
    width: auto !important;
    display: block;
    max-width: 300px !important;
    transition: all 0.3s ease;
}

/* Estilos para el header compacto */
.main-header.scrolled .logo {
    height: 63px !important;
}

.main-header.scrolled .logo-img {
    height: 65px !important;
}

/* Asegurar que la navegación de escritorio sea visible en pantallas pequeñas
   después de eliminar el menú móvil */
@media (max-width: 768px) {
    .desktop-nav {
        display: flex !important;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cta-button {
        display: block !important;
    }

    .logo-img {
        height: 93px !important;
        width: auto;
        max-width: 300px;
    }
}


/*footer section*/
.footer {
    background: #000;
    color: var(--white);
    padding: 3rem 0 1rem
}

.footer-bottom {
    border-top: 1px solid hsl(255, 255%, 255%, .2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: .875rem
}

.footer-copyright {
    opacity: .8
}

.footer-approval {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: .8
}


@media (min-width:768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between
    }
}


@media (min-width:1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr)
    }
}

/* Mobile navigation (hamburger) */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    cursor: pointer;
    gap: 8px;
}

.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-color);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 120;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-nav .mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--white);
    padding: 1.25rem;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Optimización para pantallas pequeñas del panel móvil */
@media (max-width: 375px) {
    .mobile-nav .mobile-panel {
        padding: 1rem;
        gap: 0.8rem;
    }
}

@media (max-width: 320px) {
    .mobile-nav .mobile-panel {
        padding: 0.8rem;
        gap: 0.6rem;
    }
}

/* iPhone SE específico - reducir altura del panel */
@media (max-width: 320px) and (max-height: 568px) {
    .mobile-nav .mobile-panel {
        padding: 0.6rem;
        gap: 0.4rem;
    }

    .mobile-nav .mobile-panel .desktop-nav a {
        padding: 0.5rem 0.4rem;
        font-size: 0.9rem;
    }
}

.mobile-nav.open {
    display: block;
}

.mobile-nav.open .mobile-panel {
    transform: translateX(0);
}

.mobile-nav .mobile-panel .desktop-nav {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav .mobile-panel .desktop-nav a {
    padding: 0.75rem 0.5rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav .mobile-panel .cta-button {
    margin-top: auto;
}

/* Hide desktop nav and show hamburger on small screens */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .desktop-nav {
        display: none !important;
    }

    .header-content {
        gap: 0.5rem;
        padding: 0;
    }

    .footer-content {
        gap: 0rem !important;
    }
}

/* Prevent body scroll when mobile nav open */
.no-scroll {
    overflow: hidden;
}

/* Mobile Menu Logo - Optimizado para todos los dispositivos */
.mobile-logo-container {
    padding: 0.8rem 5%;
    text-align: center;
    margin-top: 2rem;
    /* Cambiado de auto a fijo para pantallas grandes */
    border-top: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mobile-logo {
    width: min(50%, 140px);
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

/* iPhone SE y dispositivos muy pequeños (320px) */
@media (max-width: 320px) {
    .mobile-logo {
        width: min(45%, 100px);
        max-width: 100px;
        margin: 0 auto 6px;
    }

    .mobile-logo-container {
        padding: 0.4rem 5% 0.6rem;
        margin-top: 1rem;
        /* Cambiado de auto a fijo */
    }
}

/* Pantallas pequeñas hasta 375px (iPhone SE, iPhone 12 mini) */
@media (max-width: 375px) {
    .mobile-logo {
        width: min(48%, 120px);
        max-width: 120px;
        margin: 0 auto 8px;
    }

    .mobile-logo-container {
        padding: 0.5rem 5% 0.7rem;
        margin-top: 1.5rem;
        /* Cambiado de auto a fijo */
    }
}

/* Para pantallas muy altas en relación al ancho (típico de móviles modernos) */
@media (max-height: 650px) and (max-width: 375px) {
    .mobile-logo {
        width: min(40%, 90px);
        max-width: 90px;
        margin: 0 auto 4px;
    }

    .mobile-logo-container {
        padding: 0.3rem 5% 0.5rem;
        margin-top: 1.2rem;
        /* Más arriba para pantallas con poca altura */
    }
}

/* iPhone SE específico (320x568) - Logo más arriba */
@media (max-width: 320px) and (max-height: 568px) {
    .mobile-logo {
        width: min(40%, 80px);
        max-width: 80px;
        margin: 0 auto 3px;
    }

    .mobile-logo-container {
        padding: 0.2rem 5% 0.4rem;
        margin-top: 0.8rem;
        /* Más arriba en iPhone SE */
        border-top: 1px solid #eee;
    }
}   