:root {
    --bs-primary: #0CABD3; /* Azul corporativo */
    --bs-primary-rgb: 12, 171, 211;
    --gradient-primary: linear-gradient(45deg, #0CABD3, #20C9E3);
    --bs-success: #198754;
    --bs-success-rgb: 25, 135, 84;
    --font-sans: 'Inter', sans-serif;

    /* Paleta Profesional con Grises Sutiles */
    --light-bg: #F7F9FC;       /* Fondo principal: Gris muy claro, casi blanco con un toque azulado */
    --light-surface: #FFFFFF;  /* Superficies (cards, etc.): Blanco puro para que destaquen */
    --text-dark: #1A202C;       /* Texto principal: Un negro más suave y moderno (charcoal) */
    --text-muted-light: #718096; /* Texto secundario: Un gris azulado que complementa la paleta */
    --light-border: #E6EBF1;   /* Bordes: Un gris suave que define sin ser duro */
}

body {
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Previene el scroll horizontal */
    color: var(--text-dark);
    line-height: 1.6; /* Mejora la legibilidad general */
}
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Contiene cualquier desbordamiento horizontal en toda la página */
}

/* --- Navbar --- */
.navbar {
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--light-surface);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 30px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.navbar.scrolled .nav-link {
    color: var(--text-muted-light);
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
    color: var(--bs-primary);
}

.navbar.scrolled .navbar-brand, .navbar.scrolled .navbar-toggler {
    color: var(--text-dark);
}

/* Soluciona que el botón "Contactar" se pierda en el fondo blanco */
.navbar.scrolled .btn-outline-light {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.navbar.scrolled .btn-outline-light:hover {
    color: #fff;
    background-color: var(--bs-primary);
}

/* Estilos para el teléfono en la navbar */
.navbar-contact-info a, .navbar-contact-info i {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}
.navbar-contact-info:hover a, .navbar-contact-info:hover i {
    color: #fff;
}

.navbar.scrolled .navbar-contact-info a, .navbar.scrolled .navbar-contact-info i {
    color: var(--text-muted-light);
}

/* --- Hero Section --- */
.hero-section-industrial {
    position: relative; /* Necesario para posicionar las olas */
    min-height: 100vh;
    overflow: hidden; /* Para que el carrusel no se desborde */
    display: flex; /* Mantenemos flex para centrar el contenido */
    align-items: center; /* Centra verticalmente el wrapper */
    background-color: transparent; /* Hacemos transparente la sección para ver el carrusel de fondo */
}

/* Nuevo wrapper para el contenido */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%; 
    padding-top: 120px; /* Aumentamos para dejar espacio a la navbar */
    padding-bottom: 150px;
}

.hero-section-industrial::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2; /* Por encima del carrusel, por debajo del texto */
}

#heroCarousel {
    position: absolute;
    position: fixed; /* Cambiado a fixed para evitar saltos en móvil */
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Capa de fondo */
    z-index: -1; /* Lo movemos detrás de todo el contenido */
    overflow: hidden; /* ¡LA CLAVE DEFINITIVA! Contiene la animación de zoom en el contenedor principal. */
}

#heroCarousel .carousel-item img {
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    height: 100%;
    width: 100%;
    position: absolute; /* La imagen llena el wrapper */
}

/* Aseguramos que el carrusel y sus items ocupen toda la altura */
#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    position: relative; /* Hacemos que el item sea el contexto de la imagen */
    height: 100%;
}

/* El nuevo wrapper que se animará */
.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);
    }
}

/* Aplicamos la animación al wrapper, no a la imagen */
#heroCarousel .carousel-item.active .kenburns-wrapper {
    animation: kenburns-zoom 12s ease-out forwards; /* Duración extendida para un efecto más sutil */
}


.hero-section-industrial .display-3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-section-industrial .lead {
    font-size: 1.25rem;
    font-weight: 400; /* Aumentamos el peso para mejor legibilidad sobre fondo oscuro */
    color: rgba(255, 255, 255, 0.85);
}

/* --- 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(var(--bs-primary-rgb), 0.7);
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 20s; /* Más lento */
    fill: rgba(var(--bs-primary-rgb), 0.5);
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 25s; /* Más lento */
    fill: rgba(var(--bs-primary-rgb), 0.3);
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 30s; /* Más lento */
    fill: var(--bs-primary);
}
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}



/* --- Secciones Generales --- */
section {
    padding: 4.5rem 0; /* Ajustamos el padding para un diseño más compacto */
    background-color: var(--light-bg); /* Fondo por defecto para todas las secciones */
}


/* --- 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 */
}

/* --- 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);
}

.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;
    }

    /* Fondo para el menú de navegación móvil cuando está desplegado y no se ha hecho scroll */
    .navbar:not(.scrolled) .navbar-collapse.collapsing,
    .navbar:not(.scrolled) .navbar-collapse.show {
        background-color: rgba(26, 32, 44, 0.9); /* Color oscuro semi-transparente (var --text-dark) */
        backdrop-filter: blur(8px); /* Efecto "glass" para un look moderno */
        margin: 0.75rem -1rem -1rem; /* Ajuste para ocupar el ancho y pegarse abajo */
        padding: 1rem 1rem 1.5rem; /* Padding interno para que no se pegue el contenido */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 0.75rem 0.75rem; /* Bordes redondeados abajo */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* 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: var(--bs-primary);
    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: var(--light-surface);
    color: var(--text-dark);
    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: var(--bs-primary); }

@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; }