/* ==========================================================================
   01. VARIABLES GLOBALES, RESET Y BASE DEL BODY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-top: 90px;
    width: 100%;
    overflow-x: hidden !important;
}


/* ==========================================================================
   02. NAVBAR & COMPONENTES DE NAVEGACIÓN
   ========================================================================== */
   /* --- ACTUALIZACIÓN: BOTÓN HAMBURGUESA ANIMADO --- */
.nav {
    display: block;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #F29522, #ffb84d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Marca y Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-img {
    width: 80px;
    height: auto;
    flex: 0 0 auto;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw; /* Evita que empuje el botón en móvil */
}

/* Enlaces del Menú Principal */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-links a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: .6rem .9rem;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.18);
    color: #ffe6b3;
}

/* Botón Hamburguesa y Elementos de Soporte */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
}


/* ==========================================================================
   03. MENÚ DESPLEGABLE (DROPDOWN)
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown-menu-img {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: #ffbe57;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 20;
}

/* Comportamiento Hover */
.dropdown:hover .dropdown-menu-img {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-img li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: .25s ease;
    border-radius: 10px;
}

.dropdown-menu-img li a:hover {
    background: rgba(255,255,255,0.25);
    padding-left: 25px;
}

.dropdown-menu-img img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}


/* ==========================================================================
   04. VISTA HOME — SLIDER / CAROUSEL
   ========================================================================== */
.slider {
    position: relative;
    max-width: 1500px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slider-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    transition: opacity 1s ease-in-out;
}

/* Flechas de Control */
.arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #F29522;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 10;
}

.arrow:hover {
    background: #F29522;
    color: white;
    transform: scale(1.1);
}

.left { left: 15px; }
.right { right: 15px; }

/* Indicadores Circulares (Dots) */
.dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #F29522;
}


/* ==========================================================================
   05. VISTA HOME — SECCIÓN ABOUT (TRADICIONAL Y DINÁMICA)
   ========================================================================== */
.about {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: auto;
}

.about h2 {
    color: #F29522;
    margin-bottom: 1rem;
}

.standard-about {
    text-align: left; /* Contraste modular para columnas centrales */
}

/* Módulo Editorial Dinámico (Tarjetas y Contadores) */
.about-dynamic {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding: 2rem 2rem;
    background-image: url('/assets/img/1391x458/1.webp');
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    overflow: hidden; 
}

.about-dynamic::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    border-radius: inherit;
    z-index: 1;
}

.about-dynamic > * {
    position: relative;
    z-index: 2;
}

.about-left {
    flex: 1;
}

.about-left h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-left p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
}

/* Rejilla de Tarjetas Interactivas */
.about-right {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.card h3 {
    margin: 0.7rem;
    color: #222;
}

.card p {
    margin: 0 0.7rem 1rem;
    color: #555;
}

/* Contadores Estadísticos (Stats) */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #f29522;
    display: block;
}

.stat p {
    margin-top: .3rem;
    color: #ffffff;
}


/* ==========================================================================
   06. VISTA HOME — LÍNEAS DE PRODUCTO (GRID INTERACTIVO)
   ========================================================================== */
.product-lines {
    padding: 3.5rem 2rem;
    text-align: center;
}

.product-lines h2 {
    font-size: 2.2rem;
    color: #333;
    font-weight: 300;
}

.product-lines h2 span {
    font-weight: 700;
    color: #e6b800;
}

.product-lines .underline {
    width: 120px;
    height: 4px;
    background: #e6b800;
    margin: 0.5rem auto 2rem;
    border-radius: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    width: 100%;
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0px 5px 18 rgba(0,0,0,0.18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.25);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card span {
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}


/* ==========================================================================
   07. VISTA NOSOTROS — SECCIÓN ACORDEÓN VERTICAL PREMIUM
   ========================================================================== */
.scroll-accordion {
    display: flex;
    flex-direction: column;
    margin-top: -90px;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.panel {
    position: relative;
    width: 100%;
    height: 50vh;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    
    /* Optimización de animación */
    transition: height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: height; /* Avisa al navegador que use aceleración por hardware */
    
    /* Eliminamos content-visibility para que computePanelTops() no lea alturas en 0 */
    contain: paint; 
}

/* Enfoques Controlados desde JavaScript */
.panel.shrink { height: 40vh !important; }
.panel.expand { height: 100vh !important; }
.panel:first-child.shrink,
.panel:last-child.shrink { height: 60vh !important; }

/* Asignación de Fondos WebP */
.panel-1 { background-image: url('/assets/img/logo/historia-fondo.webp'); }
.panel-2 { background-image: url('/assets/img/logo/historia-agrinsa.webp'); }
.panel-3 { background-image: url('/assets/img/logo/mision-fondo.webp'); }
.panel-4 { background-image: url('/assets/img/logo/vision-fondo.webp'); }
.panel-5 { background-image: url('/assets/img/logo/valores-fondo.webp'); }
.panel-6 { background-image: url('/assets/img/about/footer-bg.webp'); }

/* Capas de Gradiente Cinematográfico */
.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

/* Contenido de Paneles */
.panel-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    text-align: center;
    z-index: 3;
    padding: 20px;
}

.panel-content h2 {
    color: #F29522;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.panel-content p {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.75;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

/* Rejilla Modular de Valores Corporativos */
.values-grid-list {
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.values-grid-list li {
    color: #ffffff;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid #F29522;
    backdrop-filter: blur(4px);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.values-grid-list li strong {
    color: #ffb84d;
    display: block;
    margin-bottom: 4px;
    font-size: 1.25rem;
}

/* ==========================================================================
   08. VISTA NOSOTROS — PANEL 6 (FOOTER DE CIERRE INTEGRADO)
   ========================================================================== */
.panel-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
}

.panel-footer-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    width: 100%;
    color: #ffffff;
}

.footer-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-grid-item {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.footer-grid-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffb84d;
    font-weight: 600;
}

.footer-grid-item p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #e2e8f0;
}

/* Barra de Cierre de Panel */
.footer-action-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-action-bar .brand-text {
    font-size: 1.05rem;
    color: #cbd5e1;
}

.footer-action-btn {
    background: #F29522;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(242, 149, 34, 0.35);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-action-btn:hover {
    background: #ffb84d;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 149, 34, 0.5);
}


/* ==========================================================================
   09. FOOTER TRADICIONAL GENERAL (ESTILO GLOBAL COMPARTIDO)
   ========================================================================== */
.footer {
    background: linear-gradient(180deg, #3c3c3c, #1f1f1f);
    color: #f5f5f5;
    padding: 20px 0 20px;
    font-family: "Poppins", sans-serif;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.6fr 1fr; /* Grid asimétrico optimizado para una sola línea */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Secciones Internas del Footer */
.footer-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.footer-section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.footer-section h4 {
    color: #F29522;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Columna de Enlaces Rápidos */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #F29522;
}

/* Columna de Marca (Identidad) */
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.brand-row-img {
    width: 100px;
    height: auto;
    border-radius: 4px;
}

.brand-row-text h4 {
    color: #F29522 !important;
    margin: 0 !important;
    font-size: 1.15rem;
    line-height: 1.2;
}

.brand-row-text span {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.brand-row-p {
    color: #bbbbbb !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    text-align: justify;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 3px;
}

.footer-logo img {
    width: 55px;
    height: 45px;
}

/* Créditos Finales e Inferiores */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
}


/* ==========================================================================
   10. REFACTORIZACIÓN COMPONENTE MODERNO: CONTACTO & REDES SOCIALES
   ========================================================================== */
.contact-box {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-style: normal;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-section.contact .contact-item i {
    color: #F29522;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-link, 
.contact-link:visited, 
.contact-link:active {
    color: #ffffff; /* O el color claro exacto de tu texto */
    text-decoration: none;
}

/* Para mantener tus etiquetas "Huevos:" y "Alimentos:" en naranja dentro del enlace */
.contact-link .dept-label {
    color: #e67e22; /* El color naranja de tu diseño */
}

.contact-item i {
    color: #e67e22; /* Asegura el mismo color naranja para todos los iconos */
    margin-right: 10px; /* Espaciado correcto entre el icono y el texto */
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.contact-link:hover {
    color: #ff9800; /* Reemplaza por el código exacto de tu naranja institucional */
    text-decoration: underline; /* Opcional, si quieres que se subraye solo al pasar el cursor */
}

.dept-label {
    color: #ffb84d;
    font-weight: 600;
    margin-right: 4px;
}

.main-address {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
}

.sub-address {
    display: block;
    color: #aaaaaa;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Redes Sociales Modulares */
.social-intro {
    font-size: 0.9rem !important;
    color: #bbbbbb;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-icons a:hover {
    background: #F29522;
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 4px 12px rgba(242, 149, 34, 0.4);
}


/* ==========================================================================
   11. PÁGINA DE ERROR (404 / EXCEPCIONES)
   ========================================================================== */
.error-container {
    max-width: 700px;
    margin: 4rem auto;
    padding: 2.5rem 1.8rem;
    text-align: center;
    padding-top: 130px;
    margin-bottom: 4rem;
}

.error-icon {
    font-size: 3.5rem;
    color: #e63946;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: .5rem;
}

.error-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    margin-bottom: 1.8rem;
}

.error-card {
    background: #ffffff;
    padding: 1.8rem 2rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
    margin: 0 auto 2rem auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    max-width: 580px;
}

.error-card p {
    margin: .6rem 0;
    color: #374151;
    font-size: 0.97rem;
}

.error-card code {
    background: #f3f4f6;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.error-date {
    font-size: .85rem;
    color: #6b7280;
}

.error-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    padding: .75rem 1.2rem;
    border-radius: .55rem;
    text-decoration: none;
    font-weight: 500;
    transition: .2s ease-in-out;
}

.btn-primary:hover {
    background: #1d4ed8;
}


/* ==========================================================================
   12. MEDIA QUERIES (RESPONSIVE & ADAPTABILIDAD)
   ========================================================================== */

/* PANTALLAS MEDIANAS (Tablets e Inferiores a 992px) */
@media (max-width: 992px) {
    body {
        padding-top: 75px;
    }

    #slider-image {
    transition: opacity 0.4s ease-in-out;
    object-fit: cover; /* Evita que las imágenes de diferentes tamaños se deformen */
    width: 100%;
    }

    .nav-links {
        gap: 1rem;
    }

    /* Ajustes Rejillas */
    .footer-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    /* Tipografías e Interfaz */
    .panel-content h2, .footer-title {
        font-size: 2.4rem;
    }

    .values-grid-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-action-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* PANTALLAS DE TRANSICIÓN (Menores a 900px) */
@media (max-width: 900px) {
    .about-dynamic {
        flex-direction: column;
    }
    .about-right {
        grid-template-columns: 1fr;
    }
}

/* DISPOSITIVOS MÓVILES (Celulares e Inferiores a 768px) */
@media (max-width: 768px) {
    body { 
        padding-top: 80px; 
    }

    .brand-name {
        max-width: 58vw;
        font-size: 1rem;
    }

    .logo-img { 
        width: 40px; 
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Menú Desplegable Off-Canvas Móvil */
    .nav {
        position: fixed;
        top: 72px;
        right: 12px;
        width: min(320px, 88vw);
        background: rgba(255,190,87,0.98);
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(0,0,0,0.25);
        padding: 10px;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
        z-index: 1001;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .nav-links a {
        color: #1f2937;
        background: rgba(255,255,255,0.35);
        padding: .85rem 1rem;
        border-radius: 14px;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.55);
    }

    /* Despliegue de Estados Activos en Móvil */
    .navbar.nav-open .nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .navbar.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(445deg);
    }

    .navbar.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-445deg);
    }
}

/* CELULARES PEQUEÑOS (Smartphones hasta 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0.8rem;
    }

    #slider-image {
        max-height: 220px;
    }

    .about {
        padding: 1.5rem 1rem;
    }

    .about h2 {
        font-size: 1.4rem;
    }

    .about p {
        font-size: 0.95rem;
    }
}