/**
 * Archivo: public/css/aire-ocupacional.css
 * Proyecto: Aire Ocupacional - Portal Web Corporativo
 *
 * Propósito:
 *   CSS personalizado del sitio web con paleta de colores institucional.
 *   Diseño inspirado en EngineX con identidad propia.
 *
 * Paleta de Colores:
 *   - Azul Marino Oscuro: #1a2332 (headers, footer, elementos principales)
 *   - Azul Institucional: #2c3e50 (acentos secundarios)
 *   - Rojo Corporativo: #dc3545 (CTAs, destacados)
 *   - Blanco: #ffffff (fondo predominante)
 *   - Gris Claro: #f8f9fa (fondos sutiles)
 *
 * Versionado:
 * - v1.0.7: CSS personalizado inicial del portal público.
 */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    /* Colores Principales */
    --ao-azul: #14408d;
    --ao-azul-hover: #2b4dbe;
    --ao-navy: #1a2332;
    --ao-blue: #2c3e50;
    --ao-red: #dc3545;
    --ao-white: #ffffff;
    --ao-light-gray: #f8f9fa;
    --ao-light-blue: #f0f5ff;

    /* Colores de Texto */
    --ao-text-dark: #212529;
    --ao-text-muted: #6c757d;
    --ao-text-light: #fff;

    /* Sombras */
    --ao-shadow-sm: 0 2px 4px rgba(26, 35, 50, 0.08);
    --ao-shadow: 0 4px 6px rgba(26, 35, 50, 0.1);
    --ao-shadow-lg: 0 10px 30px rgba(26, 35, 50, 0.15);
    --ao-shadow-hover: 0 12px 40px rgba(26, 35, 50, 0.2);

    /* Transiciones */
    --ao-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ao-transition-fast: all 0.15s ease;

    /* Tipografía */
    --ao-font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --ao-font-secondary: 'Roboto', Arial, sans-serif;
}

/* ========================================
   ESTILOS GLOBALES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Fix critical para evitar scroll horizontal */
    width: 100%;
}

body {
    font-family: var(--ao-font-family);
    color: var(--ao-text-dark);
    background-color: var(--ao-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ========================================
   TIPOGRAFÍA
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--ao-navy);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--ao-text-muted);
}

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

a:hover {
    color: var(--ao-red);
}

/* ========================================
   BOTONES
======================================== */
.btn-ao-primary {
    background: linear-gradient(135deg, var(--ao-red) 0%, #c82333 100%);
    color: var(--ao-white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--ao-shadow);
    transition: var(--ao-transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-ao-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, var(--ao-red) 100%);
    box-shadow: var(--ao-shadow-hover);
    transform: translateY(-2px);
    color: var(--ao-white);
}

.btn-ao-secondary {
    background: transparent;
    color: var(--ao-navy);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--ao-navy);
    transition: var(--ao-transition);
    display: inline-block;
}

.btn-ao-secondary:hover {
    background: var(--ao-navy);
    color: var(--ao-white);
    transform: translateY(-2px);
}

/* ========================================
   NAVEGACIÓN (Estilo Claro)
======================================== */
.navbar-ao {
    background-color: #f5f6f8;
    box-shadow: var(--ao-shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--ao-transition);
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.navbar-ao.scrolled {
    background-color: var(--ao-white);
    box-shadow: var(--ao-shadow);
}

.navbar-ao .navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: var(--ao-transition);
}

.navbar-ao .nav-link {
    color: var(--ao-navy) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    transition: var(--ao-transition);
    position: relative;
}

/* Fix: Evitar conflicto con el caret de Bootstrap en dropdowns */
.navbar-ao .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ao-red);
    transition: var(--ao-transition);
    transform: translateX(-50%);
}

.navbar-ao .nav-link:not(.dropdown-toggle):hover::after,
.navbar-ao .nav-link:not(.dropdown-toggle).active::after {
    width: 80%;
}

.navbar-ao .nav-link:hover {
    color: var(--ao-red) !important;
}

.navbar-ao .nav-link.active {
    color: var(--ao-red) !important;
}

/* Ajuste específico para el toggle del dropdown */
.navbar-ao .dropdown-toggle.active {
    color: var(--ao-red) !important;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
    transition: var(--ao-transition);
}

.navbar-brand-text {
    color: var(--ao-navy);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-toggler {
    border-color: rgba(26, 35, 50, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 35, 50, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu-ao {
    background: var(--ao-white);
    border: none;
    box-shadow: var(--ao-shadow-lg);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

/* Fix: Desktop adjustments */
@media (min-width: 992px) {
    .dropdown-menu-ao {
        min-width: 320px; /* Más ancho en PC para evitar quiebres feos */
    }

    .dropdown-menu-ao .dropdown-item {
        font-size: 0.9rem; /* Fuente más pequeña en PC */
    }
}

/* Fix: Submenú en móviles (Accordion style) para evitar overflow */
@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu-ao {
        position: static; /* Flujo normal, empuja el contenido */
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem; /* Indentación */
    }

    .dropdown-menu-ao .dropdown-item {
        color: var(--ao-text-dark);
        padding: 0.5rem 1rem;
    }

    .dropdown-menu-ao .dropdown-item:hover {
        background-color: rgba(0,0,0,0.05); /* Fondo sutil en hover móvil */
        color: var(--ao-red);
    }
}

/* Fix: Text Wrapping en submenús */
.dropdown-menu-ao .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--ao-text-dark);
    transition: var(--ao-transition-fast);
    font-weight: 500;
    white-space: normal; /* Permitir que el texto largo baje a segunda línea */
    display: flex;       /* Mejor alineación con iconos */
    align-items: flex-start; /* Alinear icon arriba si hay varias líneas */
}

.dropdown-menu-ao .dropdown-item i {
    color: var(--ao-navy);
    width: 25px; /* Espacio fijo para el icono */
    margin-top: 3px; /* Ajuste óptico para alinearse con la primera línea de texto */
    flex-shrink: 0; /* Evitar que el icono se aplaste */
    transition: var(--ao-transition-fast);
}

.dropdown-menu-ao .dropdown-item:hover {
    background: var(--ao-light-gray);
    color: var(--ao-red);
    padding-left: 1.75rem;
}



.dropdown-menu-ao .dropdown-item:hover i {
    color: var(--ao-red);
}

.dropdown-menu-ao .dropdown-divider {
    margin: 0.25rem 0;
    border-color: rgba(26, 35, 50, 0.1);
}

.btn-whatsapp-nav {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--ao-white);
    padding: 14px 32px; /* Aumentado para igualar a btn-ao-primary */
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--ao-transition);
    font-size: 0.9rem;
    display: inline-flex; /* Fix: Centrado vertical perfecto */
    align-items: center;
    justify-content: center;
}

.btn-whatsapp-nav:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: var(--ao-shadow);
    color: var(--ao-white);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ao-navy) 0%, var(--ao-blue) 100%);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* ... existing code ... */

/* ========================================
   SLIDER TEXT ANIMATIONS
   ======================================== */
.hero-content > *, 
.hero-content-visual > * {
    opacity: 0; /* Hidden by default until animated */
    animation-duration: 1.2s; /* Slower content entry */
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother ease */
}

.hero-slide.active {
    opacity: 1;
}

/* Fix: Target specific class instead of generic img to avoid affecting content images */
.hero-slide .hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.85) 0%, rgba(44, 62, 80, 0.75) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--ao-white);
    z-index: 2;
    padding: 2rem;
}

/* Fix: Duplicate class for Image Mode to avoid conflicts */
.hero-content-visual {
    text-align: center;
    color: var(--ao-white);
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--ao-white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content .tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--ao-light-gray);
    font-weight: 300;
}

/* Fix: Apply same styles to visual content wrapper tagline */
.hero-content-visual .tagline {
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    margin-bottom: 2rem;
    color: var(--ao-white); /* User explicitly asked for white */
    font-weight: 400;
}

/* FIX CRITICAL: Force visibility of visual content (User requested NO animation) */
.hero-content-visual,
.hero-content-visual > div,
.hero-content-visual img,
.hero-content-visual p {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}

/* ========================================
   SECCIONES
======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ao-navy);
    margin-bottom: 0.5rem;
}

/* Divisor personalizado con imagen */
.section-title .section-divider {
    max-width: 300px;
    height: auto;
    margin: 1rem auto 0;
    display: block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ao-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Alternancia de fondos */
.section-light {
    background-color: var(--ao-white);
}

.section-gray {
    background-color: var(--ao-light-gray);
}

.section-blue {
    background-color: var(--ao-light-blue);
}

/* ========================================
   CARDS DE SERVICIOS
======================================== */
.service-card {
    background: var(--ao-white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--ao-shadow);
    transition: var(--ao-transition);
    height: 100%;
    border: 1px solid rgba(26, 35, 50, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ao-shadow-hover);
    border-color: var(--ao-red);
}

.service-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ao-navy) 0%, var(--ao-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: var(--ao-transition);
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, var(--ao-red) 0%, #c82333 100%);
    transform: scale(1.1);
}

.service-card-icon i {
    font-size: 2rem;
    color: var(--ao-white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ao-navy);
}

.service-card p {
    color: var(--ao-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========================================
   FOOTER (Estilo Claro)
======================================== */
.footer-ao {
    background: #f5f6f8;
    color: var(--ao-text-dark);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(26, 35, 50, 0.1);
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
}

.footer-title {
    color: var(--ao-navy);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-text {
    color: var(--ao-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-contact-item {
    color: var(--ao-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-item i {
    margin-top: 3px;
    color: var(--ao-red);
}

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

.footer-contact-item a:hover {
    color: var(--ao-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--ao-text-muted);
    font-size: 0.95rem;
    transition: var(--ao-transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--ao-red);
    padding-left: 5px;
}

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

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ao-navy);
    border-radius: 50%;
    transition: var(--ao-transition);
}

.footer-social .social-icon:hover {
    background: var(--ao-red);
    transform: translateY(-3px);
}

.footer-social .social-icon i {
    font-size: 1.1rem;
    color: var(--ao-white);
}

.footer-bottom {
    border-top: 1px solid rgba(26, 35, 50, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    color: var(--ao-text-muted);
    font-size: 0.9rem;
}

/* ========================================
   WHATSAPP FLOTANTE
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ao-shadow-lg);
    transition: var(--ao-transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--ao-shadow-hover);
}

.whatsapp-btn i {
    font-size: 2rem;
    color: var(--ao-white);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 15px; /* Reducir margen en móviles para ganar espacio */
    }

    .whatsapp-btn {
        width: 50px; /* Ligeramente más pequeño en móviles */
        height: 50px;
    }

    .whatsapp-btn i {
        font-size: 1.75rem;
    }
}

/* ========================================
   HERO CTA BUTTONS
======================================== */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   SPLIT MEDIA BLOCK
======================================== */
.split-media-img {
    width: 90% !important; /* Forzar con !important para vencer img-fluid */
    max-width: 90% !important;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem auto; /* Centrado en móvil */
}

@media (min-width: 768px) {
    .split-media-img {
        width: auto !important; /* Resetear width en desktop */
        max-width: 45% !important;
        margin-bottom: 1rem;
        display: inline-block; /* Para permitir float */
    }
}

/* ========================================
   PAGE HEADER (INTERNAL PAGES)
======================================== */
.page-header {
    padding: 100px 0 60px;
    position: relative;
}

.page-header h1 {
    color: var(--ao-white);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--ao-transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--ao-white);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   SERVICE DETAIL
======================================== */
.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ao-navy) 0%, var(--ao-blue) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: var(--ao-white);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--ao-text-muted);
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.service-list li:last-child {
    border-bottom: none;
}

/* ========================================
   CONTACT PAGE
======================================== */
.contact-info {
    background: var(--ao-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--ao-shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ao-navy) 0%, var(--ao-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.25rem;
    color: var(--ao-white);
}

.contact-info-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--ao-navy);
}

.contact-info-content p {
    margin: 0;
    color: var(--ao-text-muted);
    font-size: 0.95rem;
}

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

.contact-info-content a:hover {
    color: var(--ao-red);
}

.social-icon-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--ao-navy) 0%, var(--ao-blue) 100%);
    border-radius: 12px;
    transition: var(--ao-transition);
}

.social-icon-contact:hover {
    background: linear-gradient(135deg, var(--ao-red) 0%, #c82333 100%);
    transform: translateY(-3px);
    box-shadow: var(--ao-shadow);
}

.social-icon-contact i {
    font-size: 1.1rem;
    color: var(--ao-white);
}

.contact-form-wrapper {
    background: var(--ao-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--ao-shadow);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--ao-navy);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid rgba(26, 35, 50, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--ao-transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--ao-navy);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 50, 0.1);
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: var(--ao-red);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-map {
    width: 100%;
    overflow: hidden;
}

.contact-map iframe {
    filter: grayscale(20%);
    transition: var(--ao-transition);
}

.contact-map iframe:hover {
    filter: grayscale(0%);
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-image img {
    border-radius: 12px;
    box-shadow: var(--ao-shadow-lg);
}

.about-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ========================================
   UTILIDADES
======================================== */
.text-ao-navy { color: var(--ao-navy); }
.text-ao-red { color: var(--ao-red); }
.bg-ao-navy { background-color: var(--ao-navy); }
.bg-ao-red { background-color: var(--ao-red); }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
    .navbar-ao .navbar-collapse {
        background: var(--ao-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--ao-shadow);
        border: 1px solid rgba(26, 35, 50, 0.08);
    }

    .section {
        padding: 60px 0;
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn i {
        font-size: 1.5rem;
    }
}

/* ========================================
   SLIDER TEXT ANIMATIONS
   ======================================== */
.hero-content > * {
    opacity: 0; /* Hidden by default until animated */
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* Animation Classes */
.anim-fade-up { animation-name: fadeUp; }
.anim-fade-down { animation-name: fadeDown; }
.anim-zoom-in { animation-name: zoomIn; }
.anim-slide-left { animation-name: slideInLeft; }
.anim-slide-right { animation-name: slideInRight; }
.anim-flip-in { animation-name: flipInX; }

/* Keyframes */
@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translate3d(0, -40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    50% { opacity: 1; }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translate3d(-100px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translate3d(100px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes flipInX {
    from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; }
    40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; }
    60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
    to { transform: perspective(400px); opacity: 1; }
}

/* FIX: Prevent invisible slides from blocking clicks */
.hero-slide:not(.active) {
    pointer-events: none;
}

/* ========================================
   CARDS DE NOTICIAS (Basado en Service Card)
======================================== */
.news-card {
    background: var(--ao-white);
    border-radius: 16px;
    text-align: left;
    box-shadow: var(--ao-shadow);
    transition: var(--ao-transition);
    height: 100%;
    border: 1px solid rgba(26, 35, 50, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ao-shadow-hover);
    border-color: var(--ao-red);
}

.news-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ao-transition);
}

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

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ao-navy);
}

.news-card-text {
    color: var(--ao-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ========================================
   FIX SWIPER SHADOW CLIPPING
======================================== */
.noticias-swiper {
    padding: 20px 10px 30px 10px !important; /* Arriba, Derecha, Abajo (espacio para hover), Izquierda */
    margin: -20px -10px -30px -10px; /* Opcional: para no afectar el flujo negar el padding */
}

/* ========================================
   CLIENTS CAROUSEL NAVIGATION FIXES
   ======================================== */
.clients-swiper .swiper-button-next,
.clients-swiper .swiper-button-prev {
    width: 45px; /* Smaller size (default is 44px) */
    height: 45px;
    color: var(--ao-azul);
}

.clients-swiper .swiper-button-next::after,
.clients-swiper .swiper-button-prev::after {
    font-size: 1.2rem; /* Smaller icon (default is 2rem+) */
    font-weight: bold;
    color: var(--ao-azul-hover);
}
