/* ====== VARIABLES CSS ====== */
:root {
    /* NUEVA PALETA DE COLORES DEFINITIVA */
    --maize: #ffbe0b;
    --white: #FCFCFCff;
    --sea-green: #318D4Aff;
    --citron: #DAD17Bff;
    --pakistan-green: #024212ff;
    
    /* ASIGNACIÓN ESTRATÉGICA DE COLORES */
    --verde-principal: var(--pakistan-green);
    --verde-secundario: var(--sea-green);
    --verde-claro: var(--citron);
    --acento-amarillo: var(--maize);
    --verde-footer: var(--pakistan-green);
    --neutro-claro: #F5F5F5;
    --neutro-oscuro: #424242;
    --blanco: var(--white);
    --sombra-suave: 0 2px 10px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 5px 15px rgba(0, 0, 0, 0.1);
    --sombra-fuerte: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transicion-suave: all 0.3s ease;
}

/* ====== ESTILOS BASE Y RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--neutro-oscuro);
    background-color: var(--neutro-claro);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== NAVEGACIÓN ====== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--verde-footer);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion-suave);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 190, 11, 0.2);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: var(--verde-footer);
    border-bottom: 1px solid rgba(255, 190, 11, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 60px; /* Asegurar espacio mínimo para el logo */
}

.nav-logo:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.1);
}

.nav-logo .logo-img {
    height: 55px;
    max-width: 200px;
    transition: var(--transicion-suave);
    object-fit: contain;
    filter: brightness(1.1) contrast(1.05);
    border-radius: 8px;
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    display: block !important; /* Forzar visualización */
    visibility: visible !important; /* Forzar visibilidad */
    opacity: 1 !important; /* Forzar opacidad */
}

/* Estilo de respaldo para el logo */
.nav-logo .logo-img[src*="data:image/svg"] {
    background-color: var(--verde-principal);
    border: 2px solid var(--acento-amarillo);
}

.navbar.scrolled .nav-logo .logo-img {
    height: 42px;
    max-width: 160px;
    filter: brightness(1.05) contrast(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-right: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--blanco);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transicion-suave);
    position: relative;
    padding: 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu a:hover {
    color: var(--acento-amarillo);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--acento-amarillo);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--acento-amarillo);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--acento-amarillo);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ====== SECCIÓN HERO ====== */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/fondo-principal .png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blanco);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    /* Optimización específica para formato 16:9 */
    background-repeat: no-repeat;
    background-color: var(--verde-principal); /* Color de respaldo */
    /* Mejoras para formato panorámico */
    background-position: center center;
    object-fit: cover;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--maize) 0%, #e5a500 50%, #cc9400 100%);
    color: var(--pakistan-green);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicion-suave);
    box-shadow: 0 4px 15px rgba(255, 190, 11, 0.4);
    text-shadow: 1px 1px 2px rgba(2, 66, 18, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, #e5a500 0%, #cc9400 50%, #b38300 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 190, 11, 0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 66, 18, 0.4), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* ====== SECCIONES GENERALES ====== */
section {
    padding: 80px 0;
}

section h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--verde-principal);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--acento-amarillo);
}

.fade-in {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.2s ease, transform 1.2s ease, box-shadow 1.2s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
}

/* ====== SECCIÓN NOSOTROS ====== */
.about {
    background-color: var(--blanco);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutro-oscuro);
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--sombra-fuerte);
    transition: var(--transicion-suave);
    /* Optimización específica para formato 16:9 */
    object-fit: cover;
    height: auto;
    max-height: 400px;
    /* Mantener proporción 16:9 */
    aspect-ratio: 16/9;
    /* Asegurar calidad en formato panorámico */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* ====== SECCIÓN AGUACATE DESTACADO ====== */
.featured-product {
    background-color: var(--neutro-claro);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--sombra-fuerte);
    transition: var(--transicion-suave);
}

.featured-image img:hover {
    transform: scale(1.03);
}

.featured-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--verde-principal);
    margin-bottom: 20px;
}

.featured-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutro-oscuro);
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    padding: 10px 0;
    padding-right: 30px;
    position: relative;
    font-size: 1.05rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--verde-secundario);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====== CARRUSEL SIMPLE DE IMÁGENES DE AGUACATE ====== */
.aguacate-carousel-simple {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(2, 66, 18, 0.2);
    background: var(--blanco);
}

.aguacate-carousel-simple .carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.aguacate-carousel-simple .carousel-slide {
    min-width: 100%;
    position: relative;
}

.aguacate-carousel-simple .carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* Controles de navegación */
.aguacate-carousel-simple .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-secundario) 100%);
    color: var(--blanco);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(2, 66, 18, 0.4);
    font-size: 1.2rem;
}

.aguacate-carousel-simple .carousel-control:hover {
    background: linear-gradient(135deg, var(--verde-secundario) 0%, var(--verde-principal) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 66, 18, 0.5);
}

.aguacate-carousel-simple .carousel-control.prev {
    right: 20px;
}

.aguacate-carousel-simple .carousel-control.next {
    right: 20px;
}

/* Puntos de navegación */
.aguacate-carousel-simple .carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.aguacate-carousel-simple .dot {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--blanco);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.aguacate-carousel-simple .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.aguacate-carousel-simple .dot.active {
    background-color: var(--blanco);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Responsive para tablet */
@media (max-width: 768px) {
    .aguacate-carousel-simple {
        margin: 30px auto 0;
        border-radius: 10px;
    }
    
    .aguacate-carousel-simple .carousel-slide img {
        height: 400px;
        border-radius: 10px;
    }
    
    .aguacate-carousel-simple .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .aguacate-carousel-simple .carousel-control.prev {
        left: 15px;
    }
    
    .aguacate-carousel-simple .carousel-control.next {
        right: 15px;
    }
    
    .aguacate-carousel-simple .carousel-dots {
        bottom: 15px;
        gap: 10px;
    }
    
    .aguacate-carousel-simple .dot {
        width: 10px;
        height: 10px;
    }
}

/* Responsive para móvil */
@media (max-width: 480px) {
    .aguacate-carousel-simple {
        margin: 20px auto 0;
        border-radius: 8px;
    }
    
    .aguacate-carousel-simple .carousel-slide img {
        height: 300px;
        border-radius: 8px;
    }
    
    .aguacate-carousel-simple .carousel-control {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .aguacate-carousel-simple .carousel-control.prev {
        left: 10px;
    }
    
    .aguacate-carousel-simple .carousel-control.next {
        right: 10px;
    }
    
    .aguacate-carousel-simple .carousel-dots {
        bottom: 12px;
        gap: 8px;
    }
    
    .aguacate-carousel-simple .dot {
        width: 8px;
        height: 8px;
    }
}

/* Optimización para reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .aguacate-carousel-simple .carousel-track {
        transition: none;
    }
    
    .aguacate-carousel-simple .carousel-control,
    .aguacate-carousel-simple .dot {
        transition: none;
    }
}

/* ====== CARRUSEL DE AGUACATES ====== */
/* Variables adicionales para carrusel */
:root {
    --carousel-transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --carousel-gap: 20px;
    --card-border-radius: 15px;
    --card-shadow: 0 8px 25px rgba(2, 66, 18, 0.15);
    --card-hover-shadow: 0 15px 35px rgba(2, 66, 18, 0.25);
    --dot-size: 12px;
    --dot-active-size: 14px;
    --control-size: 45px;
    --control-mobile-size: 35px;
}

.aguacate-carousel-container {
    margin-top: 50px;
    padding: 0 20px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.aguacate-carousel-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.carousel-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--verde-principal);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--acento-amarillo);
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-border-radius);
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: var(--carousel-transition);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--carousel-gap);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-slide:first-child {
    padding-right: 0;
}

.carousel-slide:last-child {
    padding-right: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.carousel-slide.active .aguacate-card {
    transition-delay: 0.2s;
}

.aguacate-card {
    background: var(--blanco);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transicion-suave);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    will-change: transform;
}

.aguacate-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicion-suave);
    transform: translateZ(0);
    will-change: transform;
}

.aguacate-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-principal);
    margin-bottom: 15px;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--neutro-oscuro);
    margin-bottom: 20px;
    flex: 1;
}

.card-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--verde-claro);
    color: var(--verde-principal);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.feature-tag i {
    font-size: 0.8rem;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--verde-principal) 0%, var(--verde-secundario) 100%);
    color: var(--blanco);
    border: none;
    width: var(--control-size);
    height: var(--control-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transicion-suave);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(2, 66, 18, 0.3);
    font-size: 1.1rem;
}

.carousel-control:hover {
    background: linear-gradient(135deg, var(--verde-secundario) 0%, var(--verde-principal) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(2, 66, 18, 0.4);
}

.carousel-control.prev {
    left: -20px;
}

.carousel-control.next {
    right: -20px;
}

.carousel-control:focus {
    outline: 2px solid var(--acento-amarillo);
    outline-offset: 2px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.dot {
    background-color: rgba(2, 66, 18, 0.3);
    border: none;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transicion-suave);
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: var(--dot-active-size);
    height: var(--dot-active-size);
    background-color: var(--verde-principal);
    border-radius: 50%;
    transition: var(--transicion-suave);
}

.dot:hover {
    background-color: rgba(2, 66, 18, 0.5);
}

.dot.active {
    background-color: var(--verde-principal);
}

.dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.dot:focus {
    outline: 2px solid var(--acento-amarillo);
    outline-offset: 2px;
}

/* Responsive para tablet */
@media (min-width: 768px) {
    .carousel-slide {
        min-width: calc(50% - var(--carousel-gap));
    }
    
    .carousel-slide:first-child {
        padding-left: var(--carousel-gap);
    }
    
    .carousel-slide:last-child {
        padding-right: var(--carousel-gap);
    }
    
    .card-image {
        height: 250px;
    }
    
    .carousel-control {
        width: var(--control-size);
        height: var(--control-size);
    }
    
    .carousel-control.prev {
        left: 10px;
    }
    
    .carousel-control.next {
        right: 10px;
    }
}

/* Responsive para desktop */
@media (min-width: 1024px) {
    .carousel-slide {
        min-width: calc(33.333% - var(--carousel-gap));
    }
    
    .carousel-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .card-image {
        height: 280px;
    }
    
    .carousel-control.prev {
        left: -15px;
    }
    
    .carousel-control.next {
        right: -15px;
    }
}

@media (min-width: 1200px) {
    .carousel-slide {
        min-width: calc(25% - var(--carousel-gap));
    }
}

/* Responsive para móvil */
@media (max-width: 767px) {
    .aguacate-carousel-container {
        padding: 0 15px;
        margin-top: 40px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .carousel-control {
        width: var(--control-mobile-size);
        height: var(--control-mobile-size);
        font-size: 0.9rem;
    }
    
    .carousel-control.prev {
        left: 5px;
    }
    
    .carousel-control.next {
        right: 5px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-content h4 {
        font-size: 1.2rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .carousel-dots {
        gap: 12px;
        margin-top: 25px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot::before {
        width: 12px;
        height: 12px;
    }
}

/* Optimización para reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .carousel-control,
    .dot,
    .aguacate-card {
        transition: none;
    }
    
    .aguacate-card:hover {
        transform: none;
    }
}

/* ====== SECCIÓN PRODUCTOS ====== */
.products {
    background-color: var(--blanco);
}

.products p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutro-oscuro);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--neutro-claro);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra-media);
    transition: var(--transicion-suave);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transicion-suave);
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    color: var(--verde-principal);
    font-size: 1.3rem;
    font-weight: 600;
}

.product-card p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: var(--neutro-oscuro);
    text-align: left;
    line-height: 1.6;
}

/* ====== SECCIÓN CLIENTES ====== */
.clients {
    background-color: var(--neutro-claro);
}

.clients p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutro-oscuro);
}

.clients-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.client-type {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--sombra-media);
    transition: var(--transicion-suave);
}

.client-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

.client-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.client-type h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--verde-principal);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.client-type p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--neutro-oscuro);
    text-align: left;
}

/* ====== SECCIÓN CONTACTO ====== */
.contact {
    background-color: var(--verde-principal);
    color: var(--blanco);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact h2 {
    color: var(--blanco);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--acento-amarillo);
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--acento-amarillo);
}

/* ====== REDES SOCIALES ====== */
.social-media {
    margin-top: 30px;
}

.social-media h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--acento-amarillo);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--acento-amarillo);
    font-size: 1.3rem;
    text-decoration: none;
    transition: var(--transicion-suave);
    border: 2px solid var(--acento-amarillo);
}

.social-icon:hover {
    background-color: var(--acento-amarillo);
    color: var(--verde-principal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 190, 11, 0.4);
}

.social-icon i {
    transition: var(--transicion-suave);
}

.social-icon:hover i {
    transform: scale(1.1);
}

.contact-form {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--sombra-fuerte);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: var(--transicion-suave);
    color: var(--neutro-oscuro);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-secundario);
    box-shadow: 0 0 0 2px rgba(49, 141, 74, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--maize) 0%, #e5a500 50%, #cc9400 100%);
    color: var(--pakistan-green);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion-suave);
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 190, 11, 0.4);
    text-shadow: 1px 1px 2px rgba(2, 66, 18, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #e5a500 0%, #cc9400 50%, #b38300 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 190, 11, 0.5);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
    font-weight: 600;
}

.form-message.success {
    background-color: var(--verde-claro);
    color: var(--verde-principal);
}

.form-message.error {
    background-color: #EF9A9A;
    color: #B71C1C;
}

.footer-bottom {
    background-color: var(--verde-footer);
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* ====== DISEÑO RESPONSIVE ====== */
@media (max-width: 768px) {
    /* Optimización de imagen 16:9 para móviles */
    .hero {
        background-attachment: scroll; /* Mejor rendimiento en móviles */
        background-position: center center;
        /* Ajuste específico para 16:9 en móviles */
        background-size: cover;
    }
    
    /* Optimización para imagen 16:9 individual */
    .about-image img {
        aspect-ratio: 16/9;
        max-height: 250px;
    }
    
    .nav-logo .logo-img {
        height: 45px;
        max-width: 160px;
    }
    
    .navbar.scrolled .nav-logo .logo-img {
        height: 38px;
        max-width: 140px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--blanco);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--sombra-fuerte);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .featured-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .clients-types {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .contact-form {
        order: 2;
    }
    
    .contact-info {
        order: 1;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Optimización adicional para 16:9 en móviles pequeños */
    .hero {
        background-position: center center;
        background-size: cover;
        /* Asegurar que 16:9 se vea bien en pantallas pequeñas */
        background-position: center center;
    }
    
    /* Ajuste final para 16:9 en móviles pequeños */
    .about-image img {
        aspect-ratio: 16/9;
        max-height: 200px;
    }
    
    .nav-logo .logo-img {
        height: 40px;
        max-width: 140px;
    }
    
    .navbar.scrolled .nav-logo .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-types {
        grid-template-columns: 1fr;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ====== SISTEMA AVANZADO DE ANIMACIONES ====== */

/* Estados base para elementos animados */
.animated-element {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Animación de entrada */
.animate-in {
    opacity: 1;
}

/* Animación de salida */
.animate-out {
    opacity: 0;
}

/* ====== TIPOS DE ANIMACIONES ====== */

/* Fade In */
.fade-in-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.fade-in-out {
    animation: fadeOut 0.6s ease-out forwards;
}

/* Fade Up */
.fade-up-in {
    animation: fadeUp 1.2s ease-out forwards;
}

.fade-up-out {
    animation: fadeDown 0.6s ease-out forwards;
}

/* Fade Down */
.fade-down-in {
    animation: fadeDown 1.2s ease-out forwards;
}

.fade-down-out {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Slide Left */
.slide-left-in {
    animation: slideFromLeft 1.2s ease-out forwards;
}

.slide-left-out {
    animation: slideToLeft 0.6s ease-out forwards;
}

/* Estilos específicos para la sección nosotros */
#nosotros .about-content.animated-element {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1.2s ease, transform 1.2s ease, box-shadow 1.2s ease;
}

#nosotros .about-content.slide-left-in {
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 15px 40px rgba(2, 66, 18, 0.25);
}

#nosotros .about-text.animated-element {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease, box-shadow 1.2s ease;
}

#nosotros .about-text.slide-left-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
}

#nosotros .about-image.animated-element {
    opacity: 0;
    transform: translateX(80px) scale(0.9);
    transition: opacity 1.2s ease, transform 1.2s ease, box-shadow 1.2s ease;
}

#nosotros .about-image.slide-right-in {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 0 15px 40px rgba(2, 66, 18, 0.25);
}

/* Slide Right */
.slide-right-in {
    animation: slideFromRight 1.2s ease-out forwards;
}

.slide-right-out {
    animation: slideToRight 0.6s ease-out forwards;
}

/* Slide Up */
.slide-up-in {
    animation: slideFromUp 1.2s ease-out forwards;
}

.slide-up-out {
    animation: slideToUp 0.6s ease-out forwards;
}

/* Scale Up */
.scale-up-in {
    animation: scaleUp 1.2s ease-out forwards;
}

.scale-up-out {
    animation: scaleDown 0.6s ease-out forwards;
}

/* ====== KEYFRAMES PARA ANIMACIONES ====== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(80px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-80px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-80px) scale(0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes slideToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes slideToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes slideFromUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes slideToUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50px);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.7);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

@keyframes scaleDown {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* ====== ANIMACIONES ADICIONALES ====== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 30px rgba(2, 66, 18, 0.15);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ====== EFECTOS DE PROGRESO ====== */
.fully-visible {
    /* Efecto adicional cuando el elemento está completamente visible */
    filter: brightness(1.05);
}

/* ====== OPTIMIZACIONES PARA DIFERENTES DISPOSITIVOS ====== */

/* Animaciones reducidas para usuarios que prefieren menos movimiento */
.reduced-motion .animated-element {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Animaciones simplificadas para móviles */
.mobile-animations .animated-element {
    transition-duration: 0.3s;
}

.mobile-animations .fade-up-in,
.mobile-animations .fade-down-in,
.mobile-animations .slide-left-in,
.mobile-animations .slide-right-in,
.mobile-animations .slide-up-in,
.mobile-animations .scale-up-in {
    animation-duration: 0.4s;
}

/* ====== ANIMACIONES BASADAS EN DIRECCIÓN DE SCROLL ====== */

/* Scroll hacia arriba - animaciones más suaves */
body[data-scroll-direction="up"] .animated-element {
    transition-duration: 0.8s;
}

/* Scroll hacia abajo - animaciones más rápidas */
body[data-scroll-direction="down"] .animated-element {
    transition-duration: 0.6s;
}

/* ====== EFECTOS DE ENTRADA ESCALONADOS ====== */
.stagger-container > .animated-element {
    transition-delay: calc(var(--stagger-delay, 100ms) * var(--index, 0));
}

/* ====== ANIMACIONES PARA ELEMENTOS ESPECÍFICOS ====== */

/* Tarjetas de productos */
.product-card.animated-element {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.product-card.fade-up-in {
    animation: fadeUp 0.6s ease-out forwards;
}

/* Tipos de clientes */
.client-type.animated-element {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.client-type.scale-up-in {
    animation: scaleUp 0.7s ease-out forwards;
}

/* Elementos del formulario */
.form-group.animated-element {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-group.slide-up-in {
    animation: slideFromUp 0.5s ease-out forwards;
}

/* Títulos de sección */
section h2.animated-element {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section h2.fade-down-in {
    animation: fadeDown 0.8s ease-out forwards;
}

/* ====== VARIABLES CSS PARA ANIMACIONES ====== */
:root {
    --animation-duration: 1.2s;
    --animation-easing: ease-out;
    --stagger-delay: 150ms;
    --animation-distance: 80px;
}

/* ====== EFECTOS ADICIONALES ====== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 30px;
    background-color: var(--verde-principal);
    color: var(--blanco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicion-suave);
    z-index: 1000;
    font-size: 1.2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--verde-secundario);
    transform: translateY(-5px);
}

/* ====== LOADING ANIMATION ====== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--blanco);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== ACCESIBILIDAD ====== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para mejor accesibilidad */
*:focus-visible {
    outline: 2px solid var(--acento-amarillo);
    outline-offset: 2px;
}

/* ====== OPTIMIZACIÓN PARA IMPRESIÓN ====== */
@media print {
    .navbar,
    .hamburger,
    .scroll-to-top {
        display: none;
    }
    
    
    .hero {
        height: auto;
        min-height: 400px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .contact-form {
        display: none;
    }
}

/* Indicador de escritura */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--verde-principal);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}
/*
   FASE 1 COMPLETADA: 13/10/2025 - 3:22 PM
   ✅ Legibilidad título hero mejorada
   ✅ Imagen hero responsive optimizada móvil
   ✅ Tests pasados: iPhone 12, Samsung Galaxy, Desktop
   ❌/✅ title-overlay agregado: NO
*/
/* ===================================================================
   FASE 1: Fix Crítico Legibilidad Hero + Responsive Móvil
   Fecha: 13/10/2025
   Problema: Título verde invisible sobre fondo verde en scroll
   =================================================================== */

/* Fix legibilidad título hero - MÁXIMA PRIORIDAD */
.hero h1, 
.hero .hero-title,
.hero-content h1 {
    color: #FFFFFF !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9), 
                 0px 0px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 10;
}

/* Opción title-overlay (solo si es necesario tras pruebas) */
.hero .title-overlay {
    background: rgba(0,0,0,0.35);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

/* Fix imagen hero responsiva móvil */
.hero {
    background-size: cover !important;
    background-position: center center !important;
    min-height: 60vh;
    width: 100%;
    overflow: hidden;
}

/* Para imágenes directas en el hero (si las hay) */
.hero img, 
.hero-image,
.hero .hero-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
}

/* Responsive móvil específico */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }
    
    .hero img, 
    .hero-image,
    .hero .hero-img {
        height: 50vh;
        object-position: center top;
    }
    
    /* Asegurar legibilidad en móvil */
    .hero h1,
    .hero .hero-title,
    .hero-content h1 {
        font-size: clamp(24px, 6vw, 32px);
        line-height: 1.2;
    }
}

/* Responsive tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 55vh;
    }
}
/*
   FASE 1.5 COMPLETADA: 13/10/2025 - 3:51 PM
   ✅ Sistema de animaciones reveal implementado
   ✅ IntersectionObserver agregado para activación automática
   ✅ Clases reveal agregadas a elementos clave del HTML
   ✅ Fix adicional para texto verde sobre hero
   ✅ Tests pasados: iPhone 12, Samsung Galaxy, Desktop
   */
/* ===================================================================
   CSS ANIMACIONES REVEAL - VERSIÓN FINAL FUNCIONAL
   Reescrito completamente para garantizar funcionamiento
   =================================================================== */

/* Estado inicial - TODOS los elementos .reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Estado activo - TODOS los elementos .reveal */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* VARIANTE: Entrada desde IZQUIERDA */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* VARIANTE: Entrada desde DERECHA */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* VARIANTE: Entrada desde ABAJO */
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* VARIANTE: Entrada desde ARRIBA */
.reveal-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-down.active {
  opacity: 1;
  transform: translateY(0);
}

/* VARIANTE: Efecto SCALE */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* DELAYS para animaciones escalonadas */
.reveal.delay-100, .reveal-left.delay-100, .reveal-right.delay-100,
.reveal-up.delay-100, .reveal-down.delay-100, .reveal-scale.delay-100 {
  transition-delay: 0.1s;
}

.reveal.delay-200, .reveal-left.delay-200, .reveal-right.delay-200,
.reveal-up.delay-200, .reveal-down.delay-200, .reveal-scale.delay-200 {
  transition-delay: 0.2s;
}

.reveal.delay-300, .reveal-left.delay-300, .reveal-right.delay-300,
.reveal-up.delay-300, .reveal-down.delay-300, .reveal-scale.delay-300 {
  transition-delay: 0.3s;
}

/* Duraciones personalizadas */
.reveal.dur-600, .reveal-left.dur-600, .reveal-right.dur-600,
.reveal-up.dur-600, .reveal-down.dur-600, .reveal-scale.dur-600 {
  transition-duration: 0.6s;
}

/* Accesibilidad: Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-down, .reveal-scale {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Fix SOLO para primer título después del hero */
.hero + section > h1:first-child,
.hero + section > h2:first-of-type {
  color: #FFFFFF !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
}

/* Resto de títulos mantienen su color original */
.section-title {
  /* NO forzar color, dejar original del diseño */
}
/* ===================================================================
   FIX TÍTULO 'NUESTRA PROMESA' VERDE SOBRE HERO VERDE
   Solución: Fondo blanco semi-transparente + prevenir superposición
   =================================================================== */

/* Título específico con fondo blanco */
section:nth-child(2) .section-title,
.hero + section .section-title:first-child,
#nosotros .section-title {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 24px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

/* Evitar que la sección se superponga al hero */
.hero + section {
  position: relative;
  background: white;
  z-index: 5;
  padding-top: 60px;
}

/* Si el fondo no es suficiente, agregar también: */
section:nth-child(2) .section-title,
.hero + section .section-title:first-child {
  color: var(--color-primary, #2E7D32) !important;
}

/* ===================================================================
   ESTILOS COMPLETOS PARA PÁGINA EMPRESAS.HTML
   Fecha: 14/10/2025
   Tema: Verde aguacate con diseño responsivo y animaciones
   =================================================================== */

/* ====== VARIABLES CSS ADICIONALES PARA EMPRESAS ====== */
:root {
    /* Colores verde aguacate adicionales */
    --verde-aguacate-oscuro: #1B5E20;
    --verde-aguacate-principal: #2E7D32;
    --verde-aguacate-medio: #388E3C;
    --verde-aguacate-claro: #4CAF50;
    --verde-aguacate-claro-extra: #81C784;
    --verde-aguacate-fondo: #E8F5E9;
    
    /* Colores complementarios */
    --texto-oscuro: #212121;
    --texto-claro: #757575;
    --fondo-blanco: #FFFFFF;
    --fondo-gris-claro: #F5F5F5;
    --borde-claro: #E0E0E0;
    
    /* Sombras específicas para empresas */
    --sombra-empresas-suave: 0 2px 8px rgba(46, 125, 50, 0.15);
    --sombra-empresas-media: 0 4px 16px rgba(46, 125, 50, 0.2);
    --sombra-empresas-fuerte: 0 8px 32px rgba(46, 125, 50, 0.25);
    
    /* Transiciones específicas */
    --transicion-empresas-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transicion-empresas-suave-lenta: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== SECCIÓN HÉROE EMPRESARIAL ====== */
.empresas-hero {
    background-image: linear-gradient(135deg, rgba(27, 94, 32, 0.85), rgba(46, 125, 50, 0.75)),
                      url('../images/fondo-principal .png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--fondo-blanco);
    position: relative;
    overflow: hidden;
}

.empresas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(129, 199, 132, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.empresas-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

.empresas-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--fondo-blanco);
}

.empresas-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 35px;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.empresas-hero .cta-button {
    background: linear-gradient(135deg, var(--acento-amarillo) 0%, #e5a500 50%, #cc9400 100%);
    color: var(--verde-aguacate-oscuro);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transicion-empresas-suave);
    box-shadow: 0 6px 20px rgba(255, 190, 11, 0.4);
    text-shadow: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.empresas-hero .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.empresas-hero .cta-button:hover::before {
    left: 100%;
}

.empresas-hero .cta-button:hover {
    background: linear-gradient(135deg, #e5a500 0%, #cc9400 50%, #b38300 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 190, 11, 0.5);
}

/* ====== SECCIÓN BENEFICIOS EMPRESARIALES ====== */
.benefits-empresas {
    background-color: var(--fondo-blanco);
    padding: 100px 0;
}

/* Título específico "Beneficios para su Empresa" en color amarillo #D4A74E */
.benefits-empresas .section-title {
    color: #D4A74E !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background: var(--fondo-blanco);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--sombra-empresas-suave);
    transition: var(--transicion-empresas-suave-lenta);
    border: 1px solid var(--borde-claro);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--verde-aguacate-oscuro), var(--verde-aguacate-principal), var(--verde-aguacate-claro));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-empresas-fuerte);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(46, 125, 50, 0.2));
    transition: var(--transicion-empresas-suave);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(46, 125, 50, 0.3));
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 15px;
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--texto-claro);
    margin-bottom: 0;
}

/* ====== SECCIÓN CATEGORÍAS DE PRODUCTOS ====== */
.categorias-productos {
    background-color: var(--verde-aguacate-fondo);
    padding: 100px 0;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.categoria-card {
    background: var(--fondo-blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra-empresas-media);
    transition: var(--transicion-empresas-suave-lenta);
    position: relative;
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-empresas-fuerte);
}

.categoria-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transicion-empresas-suave);
}

.categoria-card:hover img {
    transform: scale(1.05);
}

.categoria-content {
    padding: 30px 25px;
}

.categoria-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categoria-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--texto-claro);
    margin-bottom: 20px;
}

.categoria-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categoria-content ul li {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    padding: 8px 0;
    padding-right: 25px;
    position: relative;
}

.categoria-content ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--verde-aguacate-principal);
    font-weight: bold;
}

/* ====== SECCIÓN SECTORES SERVIDOS ====== */
.sectores-servidos {
    background-color: var(--fondo-blanco);
    padding: 100px 0;
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.sector-card {
    background: linear-gradient(135deg, var(--verde-aguacate-fondo) 0%, var(--fondo-blanco) 100%);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--sombra-empresas-suave);
    transition: var(--transicion-empresas-suave-lenta);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sector-card:hover::before {
    opacity: 1;
}

.sector-card:hover {
    border-color: var(--verde-aguacate-claro);
    transform: translateY(-8px);
    box-shadow: var(--sombra-empresas-fuerte);
}

.sector-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(46, 125, 50, 0.2));
    transition: var(--transicion-empresas-suave);
}

.sector-card:hover .sector-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 10px rgba(46, 125, 50, 0.3));
}

.sector-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 20px;
}

.sector-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--texto-claro);
    margin-bottom: 25px;
}

.sector-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.sector-card ul li {
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    padding: 6px 0;
    padding-right: 25px;
    position: relative;
}

.sector-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--verde-aguacate-claro);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====== SECCIÓN PROCESO DE CALIDAD ====== */
.proceso-calidad {
    background-color: var(--fondo-gris-claro);
    padding: 100px 0;
}

.proceso-timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.proceso-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--verde-aguacate-oscuro), var(--verde-aguacate-claro));
    border-radius: 2px;
}

.proceso-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.proceso-step:nth-child(even) {
    flex-direction: row-reverse;
}

.proceso-step:nth-child(even) .step-content {
    text-align: right;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-aguacate-principal), var(--verde-aguacate-claro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fondo-blanco);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: var(--sombra-empresas-media);
    position: relative;
    z-index: 2;
    transition: var(--transicion-empresas-suave);
}

.proceso-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--sombra-empresas-fuerte);
}

.step-content {
    flex: 1;
    padding: 0 40px;
}

.step-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--texto-claro);
    margin-bottom: 0;
}

/* ====== SECCIÓN TESTIMONIOS DE CLIENTES ====== */
.testimonios-clientes {
    background-color: var(--fondo-blanco);
    padding: 100px 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonio-card {
    background: var(--fondo-blanco);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--sombra-empresas-suave);
    transition: var(--transicion-empresas-suave-lenta);
    border-left: 5px solid var(--verde-aguacate-principal);
    position: relative;
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--verde-aguacate-claro-extra);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-empresas-fuerte);
}

.testimonio-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonio-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--texto-oscuro);
    font-style: italic;
    margin-bottom: 0;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--borde-claro);
}

.author-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--texto-claro);
}

/* ====== SECCIÓN CONTACTO EMPRESAS ====== */
.contacto-empresas {
    background: linear-gradient(135deg, var(--verde-aguacate-oscuro) 0%, var(--verde-aguacate-principal) 100%);
    padding: 100px 0;
    color: var(--fondo-blanco);
}

.contacto-empresas .section-title {
    color: var(--fondo-blanco);
}

.contacto-empresas .section-title::after {
    background-color: var(--acento-amarillo);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: start;
}

.contacto-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--acento-amarillo);
    margin-bottom: 20px;
}

.contacto-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.contacto-icon {
    font-size: 1.3rem;
    color: var(--acento-amarillo);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.contacto-form {
    background-color: var(--fondo-blanco);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--sombra-empresas-fuerte);
}

.contacto-form .form-group {
    margin-bottom: 25px;
}

.contacto-form .form-group input,
.contacto-form .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--borde-claro);
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: var(--transicion-empresas-suave);
    color: var(--texto-oscuro);
    background-color: var(--fondo-blanco);
}

.contacto-form .form-group input:focus,
.contacto-form .form-group textarea:focus {
    outline: none;
    border-color: var(--verde-aguacate-principal);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.contacto-form .form-group input::placeholder,
.contacto-form .form-group textarea::placeholder {
    color: var(--texto-claro);
}

.contacto-form .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-aguacate-principal) 0%, var(--verde-aguacate-claro) 100%);
    color: var(--fondo-blanco);
    border: none;
    padding: 18px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transicion-empresas-suave);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.contacto-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.contacto-form .submit-btn:hover::before {
    left: 100%;
}

.contacto-form .submit-btn:hover {
    background: linear-gradient(135deg, var(--verde-aguacate-medio) 0%, var(--verde-aguacate-principal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.contacto-form .form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.contacto-form .form-message.success {
    background-color: var(--verde-aguacate-fondo);
    color: var(--verde-aguacate-principal);
    border: 1px solid var(--verde-aguacate-claro);
}

.contacto-form .form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ====== SECCIÓN CERTIFICACIONES ====== */
.certificaciones {
    background-color: var(--fondo-gris-claro);
    padding: 100px 0;
}

.certificaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.certificacion-item {
    background: var(--fondo-blanco);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--sombra-empresas-suave);
    transition: var(--transicion-empresas-suave-lenta);
    border: 1px solid var(--borde-claro);
}

.certificacion-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-empresas-fuerte);
    border-color: var(--verde-aguacate-claro);
}

.certificacion-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(46, 125, 50, 0.2));
    transition: var(--transicion-empresas-suave);
}

.certificacion-item:hover .certificacion-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(46, 125, 50, 0.3));
}

.certificacion-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 15px;
}

.certificacion-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--texto-claro);
    margin-bottom: 0;
}

/* ====== SECCIÓN PROGRAMA DE LEALTAD ====== */
.programa-lealtad {
    background-color: var(--fondo-blanco);
    padding: 100px 0;
}

.lealtad-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: center;
}

.lealtad-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--verde-aguacate-principal);
    margin-bottom: 20px;
}

.lealtad-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--texto-claro);
    margin-bottom: 30px;
}

.lealtad-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.lealtad-text ul li {
    font-size: 1rem;
    color: var(--texto-oscuro);
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
}

.lealtad-text ul li::before {
    content: '🏆';
    position: absolute;
    right: 0;
    top: 12px;
    font-size: 1.2rem;
}

.lealtad-text .cta-button {
    background: linear-gradient(135deg, var(--verde-aguacate-principal) 0%, var(--verde-aguacate-claro) 100%);
    color: var(--fondo-blanco);
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transicion-empresas-suave);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    display: inline-block;
}

.lealtad-text .cta-button:hover {
    background: linear-gradient(135deg, var(--verde-aguacate-medio) 0%, var(--verde-aguacate-principal) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.lealtad-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--sombra-empresas-fuerte);
}

.lealtad-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transicion-empresas-suave-lenta);
}

.lealtad-image:hover img {
    transform: scale(1.05);
}

/* ====== PIE DE PÁGINA EMPRESAS ====== */
.footer {
    background-color: var(--verde-aguacate-oscuro);
    color: var(--fondo-blanco);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--acento-amarillo);
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transicion-empresas-suave);
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: var(--acento-amarillo);
    transform: translateX(5px);
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--acento-amarillo);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transicion-empresas-suave);
    border: 2px solid var(--acento-amarillo);
}

.social-icon:hover {
    background-color: var(--acento-amarillo);
    color: var(--verde-aguacate-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 190, 11, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ====== ESTILOS RESPONSIVE PARA TABLETS (768px) ====== */
@media (max-width: 768px) {
    /* Ajustes generales */
    section {
        padding: 60px 0;
    }
    
    /* Héroe empresarial */
    .empresas-hero {
        min-height: 60vh;
    }
    
    .empresas-hero h1 {
        font-size: 2.5rem;
    }
    
    .empresas-hero p {
        font-size: 1.1rem;
    }
    
    /* Grids generales */
    .benefits-grid,
    .productos-grid,
    .sectores-grid,
    .testimonios-grid,
    .certificaciones-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Proceso de calidad */
    .proceso-timeline::before {
        right: 30px;
    }
    
    .proceso-step {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 80px;
    }
    
    .proceso-step .step-content {
        text-align: left !important;
        padding: 20px 0 0 0;
    }
    
    .step-number {
        position: absolute;
        right: 0;
        top: 0;
    }
    
    /* Contacto */
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Programa de lealtad */
    .lealtad-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lealtad-text {
        order: 2;
    }
    
    .lealtad-image {
        order: 1;
    }
}

/* ====== ESTILOS RESPONSIVE PARA MÓVILES (480px) ====== */
@media (max-width: 480px) {
    /* Ajustes generales */
    section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Héroe empresarial */
    .empresas-hero {
        min-height: 50vh;
    }
    
    .empresas-hero h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .empresas-hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .empresas-hero .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    /* Tarjetas generales */
    .benefit-card,
    .categoria-card,
    .sector-card,
    .testimonio-card,
    .certificacion-item {
        padding: 25px 20px;
    }
    
    /* Iconos */
    .benefit-icon,
    .certificacion-icon {
        font-size: 2.8rem;
    }
    
    .sector-icon {
        font-size: 3.2rem;
    }
    
    /* Títulos */
    .benefit-card h3,
    .categoria-content h3,
    .sector-card h3,
    .certificacion-item h3 {
        font-size: 1.2rem;
    }
    
    /* Textos */
    .benefit-card p,
    .categoria-content p,
    .sector-card p,
    .certificacion-item p {
        font-size: 0.95rem;
    }
    
    /* Contacto */
    .contacto-form {
        padding: 30px 20px;
    }
    
    .contacto-info h3 {
        font-size: 1.5rem;
    }
    
    .contacto-info p {
        font-size: 1rem;
    }
    
    .contacto-item {
        font-size: 1rem;
    }
    
    /* Programa de lealtad */
    .lealtad-text h3 {
        font-size: 1.5rem;
    }
    
    .lealtad-text p {
        font-size: 1rem;
    }
    
    .lealtad-text .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ====== ANIMACIONES ADICIONALES PARA EMPRESAS ====== */

/* Animación de entrada para tarjetas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada lateral */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de entrada derecha */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de escala */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Clases para activar animaciones */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
    animation: scaleIn 0.8s ease-out forwards;
}

/* ====== EFECTOS HOVER AVANZADOS ====== */

/* Efecto de brillo en botones */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s;
}

.shine-effect:hover::after {
    left: 100%;
}

/* Efecto de levantamiento 3D */
.lift-3d {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.lift-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* ====== OPTIMIZACIONES PARA RENDIMIENTO ====== */

/* Accelerated rendering para animaciones suaves */
.benefit-card,
.categoria-card,
.sector-card,
.testimonio-card,
.certificacion-item,
.contacto-form,
.lealtad-image {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimización para imágenes */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ====== ACCESIBILIDAD MEJORADA ====== */

/* Focus visible para mejor navegación con teclado */
.benefit-card:focus-visible,
.categoria-card:focus-visible,
.sector-card:focus-visible,
.testimonio-card:focus-visible,
.certificacion-item:focus-visible {
    outline: 3px solid var(--acento-amarillo);
    outline-offset: 2px;
}

/* Mejor contraste para texto */
.high-contrast {
    color: var(--texto-oscuro);
}

/* Reducción de movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .benefit-card,
    .categoria-card,
    .sector-card,
    .testimonio-card,
    .certificacion-item,
    .contacto-form,
    .lealtad-image,
    .empresas-hero .cta-button,
    .contacto-form .submit-btn,
    .lealtad-text .cta-button {
        transition: none;
        animation: none;
    }
    
    .benefit-card:hover,
    .categoria-card:hover,
    .sector-card:hover,
    .testimonio-card:hover,
    .certificacion-item:hover {
        transform: none;
    }
}

/* ====== IMPRESIÓN ====== */
@media print {
    .empresas-hero,
    .contacto-empresas,
    .programa-lealtad,
    .footer {
        background: none !important;
        color: black !important;
    }
    
    .benefit-card,
    .categoria-card,
    .sector-card,
    .testimonio-card,
    .certificacion-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===================================================================
   BOTÓN FLOTANTE WHATSAPP
   =================================================================== */

/* Botón flotante principal WhatsApp */
.whatsapp-float-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color verde oficial de WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    text-decoration: none;
}

/* Animación pulso sutil */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    opacity: 0.7;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Ícono de WhatsApp */
.whatsapp-float-btn i {
    color: white;
    font-size: 28px;
    line-height: 1;
}

/* Efecto hover */
.whatsapp-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background-color: #128C7E; /* Verde más oscuro al hover */
}

.whatsapp-float-btn:hover::before {
    animation-duration: 1s;
}

/* Efecto active (click) */
.whatsapp-float-btn:active {
    transform: scale(0.95);
}

/* Clase de respaldo para el botón anterior */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color verde oficial de WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    text-decoration: none;
}

.floating-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    opacity: 0.7;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

.floating-call-btn i {
    color: white;
    font-size: 28px;
    line-height: 1;
}

.floating-call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background-color: #128C7E;
}

.floating-call-btn:active {
    transform: scale(0.95);
}

/* Ocultar texto vertical si existe */
.call-btn-text {
    display: none;
}

/* ===================================================================
   MODAL "SOLICITAR LLAMADA"
   =================================================================== */

/* Overlay del modal */
.call-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.call-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del modal */
.call-modal {
    background-color: var(--fondo-blanco);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.call-modal-overlay.active .call-modal {
    transform: scale(1) translateY(0);
}

/* Header del modal */
.call-modal-header {
    background: linear-gradient(135deg, var(--verde-aguacate-principal) 0%, var(--verde-aguacate-claro) 100%);
    color: var(--fondo-blanco);
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.call-modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--fondo-blanco);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Body del modal */
.call-modal-body {
    padding: 30px;
}

/* Estilos del formulario */
#callRequestForm .form-group {
    margin-bottom: 25px;
}

#callRequestForm label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--verde-aguacate-oscuro);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#callRequestForm input,
#callRequestForm select,
#callRequestForm textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--borde-claro);
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: var(--transicion-empresas-suave);
    color: var(--texto-oscuro);
    background-color: var(--fondo-blanco);
}

#callRequestForm input:focus,
#callRequestForm select:focus,
#callRequestForm textarea:focus {
    outline: none;
    border-color: var(--verde-aguacate-principal);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

#callRequestForm input.error,
#callRequestForm select.error,
#callRequestForm textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

#callRequestForm textarea {
    resize: vertical;
    min-height: 80px;
}

/* Botón de envío */
.submit-call-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-aguacate-principal) 0%, var(--verde-aguacate-claro) 100%);
    color: var(--fondo-blanco);
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transicion-empresas-suave);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.submit-call-btn:hover::before {
    left: 100%;
}

.submit-call-btn:hover {
    background: linear-gradient(135deg, var(--verde-aguacate-medio) 0%, var(--verde-aguacate-principal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.submit-call-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mensajes de error de campo */
.field-error {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
    font-family: 'Lato', sans-serif;
}

/* Mensajes del formulario */
#callFormMessage {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
    font-family: 'Lato', sans-serif;
}

#callFormMessage.success {
    background-color: var(--verde-aguacate-fondo);
    color: var(--verde-aguacate-principal);
    border: 1px solid var(--verde-aguacate-claro);
}

#callFormMessage.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

#callFormMessage.info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* ===================================================================
   RESPONSIVE PARA BOTÓN FLOTANTE Y MODAL
   =================================================================== */

/* Para tablets */
@media (max-width: 768px) {
    .whatsapp-float-btn,
    .floating-call-btn {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float-btn i,
    .floating-call-btn i {
        font-size: 26px;
    }
    
    .call-btn-text {
        display: none; /* Ocultar completamente en móvil */
    }
    
    .call-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .call-modal-header {
        padding: 20px 25px;
    }
    
    .call-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .call-modal-body {
        padding: 25px;
    }
}

/* Para móviles */
@media (max-width: 480px) {
    .whatsapp-float-btn,
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float-btn i,
    .floating-call-btn i {
        font-size: 24px;
    }
    
    .call-btn-text {
        display: none; /* Ocultar completamente en móvil */
    }
    
    .call-modal {
        width: 98%;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .call-modal-header {
        padding: 18px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .call-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .call-modal-body {
        padding: 20px;
    }
    
    #callRequestForm label {
        font-size: 0.9rem;
    }
    
    #callRequestForm input,
    #callRequestForm select,
    #callRequestForm textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .submit-call-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Optimización para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .floating-call-btn,
    .floating-call-btn::before,
    .call-modal-overlay,
    .call-modal,
    .submit-call-btn {
        transition: none;
        animation: none;
    }
}