/* ==========================================================================
   BIOLOSAR AGRIVOLTAICA - ESTILOS PRINCIPALES (CSS PERSONALIZADO)
   ========================================================================== */

/* 1. Variables y Configuración del Tema
   ========================================================================== */
:root {
    /* Paleta de Colores en HSL */
    --color-primary: hsl(150, 55%, 16%);      /* Verde esmeralda profundo (Ecológico/Bosque) */
    --color-primary-light: hsl(150, 40%, 25%);/* Verde esmeralda medio */
    --color-secondary: hsl(212, 85%, 45%);    /* Azul cobalto solar (Energía/Tecnología) */
    --color-secondary-hover: hsl(212, 90%, 55%);
    --color-accent: hsl(142, 60%, 45%);       /* Verde brillante (Renovación/Vida) */
    --color-accent-light: hsl(142, 50%, 94%); /* Fondo de alerta verde */
    
    /* Neutros */
    --color-dark: hsl(150, 15%, 7%);          /* Fondo oscuro premium (Negro con matiz verde) */
    --color-dark-card: hsl(150, 12%, 12%);    /* Tarjeta oscura */
    --color-light: hsl(90, 20%, 98%);         /* Fondo claro cálido (Arena/Salvia muy suave) */
    --color-light-card: hsl(0, 0%, 100%);     /* Tarjeta clara */
    --color-text-dark: hsl(150, 15%, 15%);    /* Texto oscuro principal */
    --color-text-light: hsl(0, 0%, 96%);      /* Texto claro principal */
    --color-text-muted: hsl(150, 8%, 55%);    /* Texto atenuado */
    
    /* Gradientes */
    --gradient-hero: linear-gradient(135deg, hsla(150, 55%, 10%, 0.9) 0%, hsla(212, 85%, 10%, 0.85) 100%);
    --gradient-light: linear-gradient(180deg, hsl(90, 20%, 98%) 0%, hsl(140, 25%, 92%) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-card: linear-gradient(145deg, hsla(150, 55%, 16%, 0.05) 0%, hsla(212, 85%, 45%, 0.02) 100%);

    /* Tipografía */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Sombras y Bordes */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max-width: 1280px;
}

/* 2. Reset y Estilos Globales
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

/* 3. Tipografía y Estructuras Comunes
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 6.5rem 0;
    position: relative;
    overflow: hidden;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-text-light);
}

.bg-light-gradient {
    background: var(--gradient-light);
}

.text-center {
    text-align: center;
}

/* Subtítulos de sección tipo Badge */
.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background-color: var(--color-secondary);
}

.light-subtitle {
    color: var(--color-accent);
}

.light-subtitle::before {
    background-color: var(--color-accent);
}

.section-description {
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.bg-dark .section-description {
    color: hsl(150, 8%, 75%);
}

.accent-text {
    color: var(--color-accent);
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 1.25rem;
}

.bg-dark .lead-text {
    color: hsl(140, 30%, 80%);
}

/* 4. Botones y Elementos de Interfaz
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    gap: 0.5rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: hsl(142, 65%, 38%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 81, 50, 0.2);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(20, 164, 77, 0.4);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-full);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.align-items-center {
    align-items: center;
}

/* 5. Cabecera (Header / Navbar)
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff; /* Fondo blanco sólido para coincidir exactamente con el logo */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
}

#main-header.scrolled {
    background-color: #ffffff; /* Fondo blanco sólido para coincidir exactamente con el logo */
    box-shadow: var(--shadow-md);
    padding: 0.35rem 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.5rem;
    transition: height var(--transition-normal);
}

#main-header.scrolled .navbar-container {
    height: 4.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 4.2rem;
    width: auto;
    object-fit: contain;
    transition: height var(--transition-normal);
}

#main-header.scrolled .logo-img {
    height: 3.4rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.85;
}

.nav-item:hover, .nav-item.active {
    color: var(--color-accent);
    opacity: 1;
}

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

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-toggle:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .lang-toggle {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}

/* 6. Sección Hero
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-top: 5rem;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

/* Animaciones del Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0;
}

.badge.fade-in { animation-delay: 0.1s; }
.hero-title.fade-in { animation-delay: 0.3s; }
.hero-subtitle.fade-in { animation-delay: 0.5s; }
.hero-actions.fade-in { animation-delay: 0.7s; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 7. Sección Desafío (Estadísticas y Glassmorphism)
   ========================================================================== */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    flex: 1;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.image-card-container {
    display: flex;
    justify-content: center;
}

.image-glass-card {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    transition: transform var(--transition-normal);
}

.image-glass-card:hover {
    transform: translateY(-5px);
}

.rounded-img {
    border-radius: var(--border-radius-md);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-caption {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.card-caption h4 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.card-caption p {
    font-size: 0.875rem;
    color: var(--color-text-dark);
    opacity: 0.8;
}

/* 8. Pilares de Impacto (Tarjetas)
   ========================================================================== */
.cards-container {
    margin-top: 1rem;
}

.card {
    background-color: var(--color-dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: left;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glass);
}

.card-hover:hover::before {
    transform: scaleX(1);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: var(--border-radius-md);
    background-color: rgba(15, 81, 50, 0.2);
    border: 1px solid rgba(15, 81, 50, 0.4);
    color: var(--color-accent);
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    transition: all var(--transition-fast);
}

.card-hover:hover .card-icon {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.card p {
    color: hsl(150, 8%, 70%);
    font-size: 0.95rem;
}

/* 9. Sección Tecnología
   ========================================================================== */
.tech-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-steps li {
    display: flex;
    gap: 1.5rem;
}

.step-num {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--border-radius-full);
    background: var(--gradient-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* 10. Carrusel / Galería de Impacto
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 2rem auto 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.carousel-track-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-normal);
    width: 300%; /* Ajustado para 3 slides */
}

.carousel-slide {
    width: 33.3333%;
    flex-shrink: 0;
    position: relative;
}

.slide-content {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 350px;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
    text-align: left;
}

.slide-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.slide-overlay p {
    font-size: 0.95rem;
    max-width: 700px;
    opacity: 0.9;
}

/* Botones del Carrusel */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--border-radius-full);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-button:hover {
    background: var(--color-accent);
    color: var(--color-dark);
}

.carousel-button--left {
    left: 1.5rem;
}

.carousel-button--right {
    right: 1.5rem;
}

.carousel-button.is-hidden {
    display: none;
}

/* Indicadores */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.carousel-indicator {
    border: 0;
    width: 1.5rem;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicator.current-indicator {
    background: var(--color-accent);
    width: 2.5rem;
}

/* 11. Sección Contacto y Formularios
   ========================================================================== */
.contact-info {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.contact-info-item i {
    font-size: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--border-radius-md);
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: var(--color-primary);
}

.contact-info-item p {
    color: var(--color-text-muted);
}

.contact-info-item p a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.contact-info-item p a:hover {
    color: var(--color-accent);
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form-container h3 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.contact-form-container > p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-primary-light);
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form input[type="number"],
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid rgba(15, 81, 50, 0.15);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    color: var(--color-text-dark);
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-feedback.success {
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    border: 1px solid rgba(15, 81, 50, 0.2);
}

.form-feedback.error {
    background-color: hsl(0, 100%, 97%);
    color: hsl(0, 80%, 35%);
    border: 1px solid hsl(0, 100%, 90%);
}

.hidden {
    display: none;
}

/* 12. Pie de Página (Footer)
   ========================================================================== */
#main-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light);
    padding-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-desc {
    color: hsl(150, 8%, 70%);
    font-size: 0.9rem;
    margin: 1.25rem 0;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: hsl(150, 8%, 75%);
    font-size: 0.9rem;
}

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

.footer-newsletter p {
    color: hsl(150, 8%, 70%);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-top-left-radius: var(--border-radius-sm);
    border-bottom-left-radius: var(--border-radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: 0;
    padding: 0 1.25rem;
    border-top-right-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: hsl(142, 65%, 38%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: hsl(150, 8%, 55%);
}

/* 13. Animaciones al hacer Scroll (Reveal Effect)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 14. Consultas de Medios (Diseño Responsivo)
   ========================================================================== */

/* Tablets grandes (hasta 1024px) */
@media (max-width: 1024px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Tablets pequeñas y móviles (hasta 768px) */
@media (max-width: 768px) {
    h2 {
        font-size: 1.85rem;
    }
    
    .section {
        padding: 4.5rem 0;
    }
    
    .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr;
    }
    
    .navbar-container {
        height: 4.5rem;
    }
    
    /* Toggle móvil */
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 2rem;
        display: none;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-cta {
        display: none; /* Se oculta para simplificar navbar móvil */
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Reordenamiento móvil para Tecnología */
    .order-1-mobile {
        order: 1;
    }
    
    .order-2-mobile {
        order: 2;
    }
    
    /* Stats */
    .stats-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .stat-item {
        border-left: none;
        border-bottom: 1.5px solid var(--color-accent);
        padding-left: 0;
        padding-bottom: 0.75rem;
    }
    
    /* Carrusel */
    .slide-content {
        min-height: 250px;
    }
    
    .carousel-button {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .carousel-button--left {
        left: 0.5rem;
    }
    
    .carousel-button--right {
        right: 0.5rem;
    }
    
    /* Formulario */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

/* Dispositivos muy pequeños (hasta 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.15rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-desc {
        max-width: 100%;
    }
}

/* 14. Botón flotante de WhatsApp
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    color: #fff;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 3.1rem;
        height: 3.1rem;
        font-size: 1.5rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }
}
