:root {
    --gradient-primary: linear-gradient(45deg, #0CABD3, #20C9E3);
}

/* --- Navbar --- */
/* Estilos específicos para cuando se hace scroll (manejado por JS) */
#mainNav.scrolled {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
#mainNav.scrolled a, #mainNav.scrolled button, #mainNav.scrolled i {
    color: #1A202C; /* text-gray-800 */
}
#mainNav.scrolled .nav-cta-btn { /* Botón Contactar */
    border-color: #0CABD3;
    color: #0CABD3;
}
#mainNav.scrolled .nav-cta-btn:hover {
    background-color: #0CABD3;
    color: white;
}

/* --- Hero Section --- */
.kenburns-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
}

/* Animación de zoom suave (Ken Burns) para la imagen activa */
@keyframes kenburns-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* --- Animación de Olas --- */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
    z-index: 3; /* Aseguramos que esté por encima del overlay */
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
}

.parallax > use {
    animation: move-forever 40s linear infinite; /* Aumentamos duración y usamos movimiento lineal */
}
/* Cambiamos el color de las olas al color primario */
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 15s; /* Más lento */
    fill: rgba(12, 171, 211, 0.7);
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 20s; /* Más lento */
    fill: rgba(12, 171, 211, 0.5);
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 25s; /* Más lento */
    fill: rgba(12, 171, 211, 0.3);
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 30s; /* Más lento */
    fill: #0CABD3;
}
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}



/* --- Secciones Generales --- */
section {
    min-height: 100vh; /* Ocupar siempre toda la altura de la pantalla */
    display: flex; /* Flexbox para centrar el contenido verticalmente */
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0; /* Padding reducido, el espacio lo da la altura */
    background-color: var(--light-bg); /* Fondo por defecto para todas las secciones */
    scroll-snap-align: start; /* La sección se ajustará al inicio de la pantalla */
    scroll-snap-stop: always; /* Obliga al scroll a detenerse aquí, evita saltos rápidos */
}


/* --- Secciones y Textos --- */
.bg-light {
    background-color: var(--light-bg) !important; /* Unificamos con el fondo principal */
}

.bg-surface {
    background-color: var(--light-surface) !important;
}

h2.fw-bolder, .product-showcase .display-5 {
    font-size: 2.25rem; /* Ligeramente más grande para mayor impacto */
    font-weight: 700;
    letter-spacing: -0.02em; /* Espaciado negativo sutil para un look moderno */
}

.text-muted {
    color: var(--text-muted-light) !important;
    font-size: 1.05rem; /* Ligeramente más grande para mejor lectura */
    line-height: 1.7;
}

.card {
    background-color: var(--light-surface);
    border-radius: 0.75rem; /* Bordes ligeramente más redondeados para suavidad */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: none;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.product-feature-list {
    list-style: none;
    padding-left: 0;
}

.product-feature-list li i { color: var(--bs-primary); }

/* Nueva lista de servicios */
.service-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-muted-light);
}

.service-list i {
    color: var(--bs-primary);
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 24px; /* Ancho fijo para alinear el texto */
}

section img.img-fluid.shadow-lg {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
section img.img-fluid.shadow-lg:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Círculo de fondo para los íconos de características */
.feature-icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem; /* Espacio reducido para un diseño más compacto en tarjetas */
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.feature-icon-bg i {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.col-md-4:hover .feature-icon-bg {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.25);
}

/* Distintivo Eco-Friendly */
.eco-badge {
    display: inline-flex; /* Asegura que el badge se comporte como un bloque en línea */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--bs-success);
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(var(--bs-success-rgb), 0.2);
}
.eco-badge-img {
    height: 24px; /* Altura controlada para la imagen */
    width: auto;
    /* El filtro la hace blanca para que contraste con el fondo verde del badge */
    filter: brightness(0) invert(1);
}

/* Sustainability Section Dark Theme */
.sustainability-section {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0; /* Reducimos el padding vertical */
}
.sustainability-section h2 {
    color: #fff;
}
.sustainability-section .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
.sustainability-section .service-list i {
    color: var(--bs-primary);
}
.sustainability-section .service-list li {
    margin-bottom: 1rem; /* Reducimos el espacio entre items */
}

/* Tarjetas de Sostenibilidad */
.sustainability-card {
    background-color: rgba(44, 52, 64, 0.6); /* Un poco más claro que el fondo de la sección */
    padding: 2rem;
    border-radius: 0.75rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.sustainability-card:hover {
    background-color: rgba(44, 52, 64, 1);
    transform: translateY(-5px);
}

.sustainability-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

/* --- Logo Grid (replaces Logo Slider) --- */
.logo-grid img {
    max-height: 45px; /* Ligeramente más pequeño */
    width: auto;
    max-width: 150px;
    opacity: 0.7;
    /* Este filtro convierte cualquier logo a color blanco puro */
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-grid div:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.logo-grid-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}


/* --- Client Logo Grid (in Testimonials section) --- */
.client-logo-grid .col-6 img { /* Hacemos el selector más específico */
    max-height: 45px; /* Altura unificada para los logos */
    width: auto;
    max-width: 100%;
    opacity: 0.6;
    filter: grayscale(100%) contrast(0%) brightness(1.5); /* Efecto gris claro */
    transition: all 0.3s ease;
}

.client-logo-grid .col-6:hover img { /* Hacemos el selector más específico */
    opacity: 1;
    filter: none; /* Muestra el logo a color en hover */
}

/* --- Autoplaying Client Logo Scroller --- */
@keyframes scroll {
    to {
        transform: translate(calc(-50%));
    }
}

.logo-scroller {
    max-width: 90%;
    margin: auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.logo-scroller-inner {
    display: flex;
    gap: 4rem; /* Espacio entre logos */
    width: fit-content;
    animation: scroll 40s linear infinite;
    /* Añadimos padding vertical para que el scale() no se corte */
    padding: 1.5rem 0;
}

.logo-scroller:hover .logo-scroller-inner {
    animation-play-state: paused;
}

.logo-scroller img {
    height: 45px; /* Altura unificada */
    width: auto;
    max-width: none; /* Evita que Tailwind interfiera */
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.logo-scroller img:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.1);
}

/* --- Testimonials Section --- */
.testimonial-card {
    background-color: var(--light-surface); /* Asegura fondo blanco si la sección cambia */
}

.testimonial-card .card-body {
    position: relative; /* Para que el texto esté sobre el pseudo-elemento ::before */
    z-index: 1;
    padding: 2rem; /* Más padding interno */
}
.testimonial-card .fw-bold {
    color: var(--text-dark);
}

.testimonial-card::before {
    content: '\F531'; /* Código del ícono de comillas de Bootstrap Icons */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    z-index: 0;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Testimonial Carousel (Bootstrap Override) --- */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%; /* Reducimos el área de click */
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
}

#testimonialCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--bs-primary);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.5;
}

/* Animación más lenta y suave para el carrusel de testimonios */
#testimonialCarousel .carousel-item {
    transition: transform 1.2s ease-in-out; /* Aumentamos la duración a 1.2s */
}


/* --- CTA Section --- */
.cta-section {
    position: relative;
    background-color: transparent; /* Hacemos la sección transparente para ver el gradiente */
    overflow: hidden; /* Para que el logo no se salga */
    background: var(--gradient-primary); /* Usamos el gradiente definido */
    /* Añadimos un patrón de puntos sutil */
    background-image: var(--gradient-primary), 
                      radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: cover, 20px 20px;
}

.cta-button {
    border-radius: 50rem; /* Coherente con otros botones redondeados */
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}
.cta-button:hover {
    background-color: #fff;
    color: var(--bs-primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    transform: translateY(-3px);
}
.cta-section .text-white-50 {
    color: rgba(255,255,255,0.6) !important;
}

.cta-section .container { position: relative; z-index: 1; } /* Para que el contenido esté por encima del logo */

/* Efecto de onda en botones */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s;
    pointer-events: none;
}
.btn:active::after {
    transform: scale(4);
    transition: transform 0s;
}

/* --- Mejoras en Botones --- */
.btn-primary {
    background: var(--bs-primary);
    color: #FFF;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1; /* Para que el efecto de onda esté por encima del contenido del botón */
}
.btn-primary:hover {
    background: #0a95b9; /* Un tono de azul más oscuro para el hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    color: #FFF;
    background-color: var(--bs-primary);
    transform: translateY(-2px);
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.footer {
    background-color: #1A202C; /* Usamos el color de texto oscuro para el fondo */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
    /* Borde superior con el color primario para un toque de marca */
    border-top: 3px solid var(--bs-primary);
    scroll-snap-align: start; /* El footer también debe comportarse como una sección */
    scroll-snap-stop: always;
}

.footer-grid {
    display: grid;
    /* Damos más espacio a la primera columna y el resto se ajusta */
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem; /* Aumentamos el espacio entre columnas */
    padding-bottom: 3rem;
}

.footer-brand .navbar-logo {
    height: 32px; /* Establecemos una altura fija para el logo */
    width: auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand span {
    font-weight: 500;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1rem; /* Hacemos los títulos un poco más grandes */
    font-weight: 600;
    color: #FFF;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Necesario para la transición de transform */
}
.footer-link:hover {
    color: #FFF;
    /* Efecto de movimiento sutil a la derecha */
    transform: translateX(5px);
}

.footer-email-link {
    color: rgba(255, 255, 255, 0.7); /* Unificado con otros links */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: flex; /* Para alinear el ícono y el texto, y asegurar que cada uno ocupe una línea */
    align-items: center;
    word-break: break-all; /* Evita que el correo largo rompa el layout */
}

.footer-email-link:hover {
    color: #FFF; /* Blanco puro al pasar el ratón */
}

.footer-bottom {
    padding: 2rem 0; /* Más espacio vertical */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Pricing Section --- */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--light-border);
}

.pricing-card.featured {
    border: 2px solid var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(var(--bs-primary-rgb), 0.2);
}

.pricing-card .card-header {
    background-color: transparent;
}

.pricing-card .display-4 {
    font-weight: 600;
    font-size: 2.8rem; /* Reducido */
}
.pricing-card.featured:hover {
    box-shadow: 0 20px 50px rgba(var(--bs-primary-rgb), 0.3);
    transform: scale(1.07);
}


/* --- FAQ Accordion --- */
.accordion-button {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted-light);
    line-height: 1.7;
}

.accordion-item {
    background-color: var(--light-surface);
    border-radius: 0.75rem !important; /* Sobrescribimos el estilo de Bootstrap */
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem; /* Espacio entre cada pregunta */
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.accordion-flush .accordion-item:first-child { border-top: 1px solid var(--light-border); }
.accordion-flush .accordion-item:last-child { border-bottom: 1px solid var(--light-border); }

/* --- Footer Social Icons --- */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 0.5rem;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px); /* Se eleva ligeramente */
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
    color: #fff;
}

.social-icon:hover .bi-facebook { color: #1877F2; } /* Color de Facebook */
.social-icon:hover .bi-linkedin { color: #0A66C2; } /* Color de LinkedIn */

/* --- Media Queries para Responsividad --- */

/* Para tabletas y dispositivos medianos (entre 768px y 992px) */
@media (max-width: 991.98px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Dos columnas para tabletas */
        gap: 2.5rem;
    }

    /* CORRECCIÓN: Fondo blanco para el menú móvil al hacer scroll */
    #mainNav.scrolled #navbarResponsive {
        background-color: #ffffff !important; /* Sobrescribe el fondo oscuro de Tailwind */
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #f0f0f0;
    }

    /* Mejoras para el menú móvil */
    .navbar .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar.scrolled .navbar-nav .nav-item {
        border-bottom-color: var(--light-border);
    }
    .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    .navbar .navbar-collapse .btn {
        width: 100%;
        margin-top: 1rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}



@media (max-width: 992px) {
}

/* Animación de balanceo 3D sutil */
@keyframes sway-3d {
    0%   { transform: translateZ(var(--logo-depth, 0px)) rotateY(-12deg); }
    50%  { transform: translateZ(var(--logo-depth, 0px)) rotateY(12deg); }
    100% { transform: translateZ(var(--logo-depth, 0px)) rotateY(-12deg); }
}


/* --- Certification Section --- */
#certifications {
    /* Usamos un gradiente sutil para un fondo más dinámico */
    background: linear-gradient(160deg, #232a38 0%, #1a202c 100%);
    padding: 5rem 0; /* Aumentamos ligeramente el padding para más aire */
    position: relative;
    overflow: hidden;
}

#certifications h2,
#certifications h3,
.certification-card .card-title {
    color: #FFF;
}

#certifications .lead.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.certification-col {
    perspective: 1000px; /* Establece la perspectiva para el efecto 3D */
}

.certification-card {
    background-color: rgba(44, 52, 64, 0.7); /* Hacemos la tarjeta semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil para fondos oscuros */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d; /* Permite que los hijos se posicionen en el espacio 3D */
    backdrop-filter: blur(10px); /* Efecto "Glassmorphism" */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, box-shadow; /* Optimización de rendimiento */
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
/* Animación de balanceo 3D sutil al pasar el ratón */
@keyframes sway-3d {
    0%   { transform: translateZ(0) rotateY(-8deg); }
    50%  { transform: translateZ(0) rotateY(8deg); }
    100% { transform: translateZ(0) rotateY(-8deg); }
}


.certification-logo {
    max-height: 10rem; /* Reducimos el tamaño del logo para compactar la tarjeta */
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem auto; /* Añadimos margen inferior */
    transition: transform 0.4s ease;
    will-change: transform;
}
.certification-card:hover .certification-logo {
    animation: sway-3d 5s ease-in-out infinite;
}


/* Para dispositivos móviles pequeños y medianos (menos de 768px) */
@media (max-width: 700px) {
    .hero-content-wrapper {
        padding-top: 80px;
        padding-bottom: 120px;
    }
    .hero-section-industrial .display-3 {
        font-size: 2.5rem; /* Reducimos el tamaño del título principal */
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Una sola columna para móviles */
        gap: 2rem;
        text-align: center; /* Centramos el texto de las columnas */
    }

    /* Centra los links de contacto en móvil */
    .footer-email-link {
        justify-content: center;
    }

    /* Centra el contenido de las tarjetas de servicio en móvil */
    #services .card {
        text-align: center;
    }
    #services .service-list li {
        justify-content: center;
    }

}



.validity-badge {
    background-color: rgba(var(--bs-primary-rgb), 0.1); /* Fondo con el color primario y transparencia */
    color: var(--bs-primary); /* Texto con el color primario */
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.3);
}

.personnel-cert-title {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
}



.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}


/* --- Grupo de Botones Flotantes (FAB) --- */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fab-container.show {
    opacity: 1;
    transform: translateY(0);
}

.fab-main {
    width: 60px;
    height: 60px;
    background: #0CABD3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.fab-container:hover .fab-main {
    /* Pausamos las animaciones al abrir el menú */
    animation-play-state: paused;
}


/* Animación de "Zumbido" */
@keyframes fab-buzz {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Animación de "Respiración" constante */
@keyframes fab-breathe {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.07) rotate(0); }
}

/* Clase para la animación de respiración */
.fab-main.breathing {
  animation: fab-breathe 3s ease-in-out infinite;
}

/* Clase para la animación de zumbido (tiene prioridad sobre la respiración) */
.fab-main.buzzing {
  animation: fab-buzz 0.8s cubic-bezier(.36,.07,.19,.97);
}

.fab-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.fab-container:hover .fab-option {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Delay escalonado para la animación de entrada */
.fab-container:hover .fab-option:nth-child(1) { transition-delay: 0.2s; }
.fab-container:hover .fab-option:nth-child(2) { transition-delay: 0.1s; }

.fab-label {
    background-color: #ffffff;
    color: #1A202C;
    padding: 5px 12px;
    border-radius: 5px;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.fab-option i {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.fab-whatsapp i { background-color: #25D366; }
.fab-help i { background-color: #0CABD3; }

@media (max-width: 767.98px) {
    .fab-container { right: 20px; bottom: 20px; }
}

/* Ajustes de espaciado en el footer */
.footer-grid {
    gap: 4rem; /* Aumentamos el espacio entre columnas */
}
.footer-link { margin-bottom: 0.75rem; }
.footer-email-link { margin-bottom: 0.75rem; }

/* --- Chat Widget --- */
.chat-widget {
    position: fixed;
    bottom: 110px; /* Encima del FAB */
    right: 40px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 1025;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
}

.chat-widget.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Estilos para las burbujas de chat (reemplazan los inline styles de JS) */
.message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.message-user {
    align-self: flex-end;
    background-color: #0CABD3; /* Color primario de Trekker */
    color: white;
    border-bottom-right-radius: 2px;
}

.message-assistant {
    align-self: flex-start;
    background-color: #f1f3f5; /* Un gris claro */
    color: #333;
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 0.75rem;
    border-top: 1px solid #E6EBF1;
    display: flex;
    gap: 0.5rem;
    background: #fff;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #E6EBF1;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}
.chat-input-area input:focus {
    border-color: #0CABD3;
}

.chat-input-area button {
    background: none;
    border: none;
    color: #0CABD3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.chat-input-area button:hover {
    background-color: rgba(12, 171, 211, 0.1);
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .chat-widget {
        width: 90%;
        right: 5%;
        bottom: 100px;
        height: 60vh;
    }
}

/* --- Scrollbar Personalizado (Moderno) --- */
/* Firefox */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #475569 #F7F9FC;
    /* Efecto Scroll Snap Moderno */
    scroll-snap-type: y mandatory; /* 'mandatory' fuerza el ajuste estricto estilo presentación */
    scroll-padding-top: 80px; /* Compensa la altura de tu barra de navegación fija */
    height: 100%;
    overflow-y: auto;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #F7F9FC; /* Color de fondo suave */
}
::-webkit-scrollbar-thumb {
    background-color: #475569; /* Gris oscuro */
    border-radius: 20px;       /* Bordes totalmente redondos */
    border: 3px solid #F7F9FC; /* Borde del mismo color del fondo para efecto "flotante" */
}
::-webkit-scrollbar-thumb:hover {
    background-color: #0CABD3; /* Color primario al pasar el mouse */
}