:root {
    --bg-dark: #00003f; /* Azul ultra oscuro, casi negro */
    --bg-darker: #000026; /* Fondo base para tarjetas y secciones alternas */
    --mcm-beige: #ede8d0;
    --text-white: #ffffff;
    --text-muted: #a6a6c0;
    --gradient-accent: linear-gradient(135deg, #00f2ff 0%, #ff00ff 100%); 
    --transition-suave: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UTILIDADES */
.text-center { text-align: center; }
.text-justify {text-align: justify;}
.mt-medium { margin-top: 40px; }
.mb-large { margin-bottom: 80px; }
.bg-alt { background-color: var(--bg-darker); }

.txt-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--mcm-beige);
    margin-bottom: 1.5rem;
}

/* HEADER */
.main-header {
    padding: 1.2rem 0;
    background-color: #000026;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 4rem; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-white); text-decoration: none; font-size: 0.9rem; transition: var(--transition-suave); opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: #00f2ff; }

.btn-outline { 
    display: inline-block; /* Súper importante para que los enlaces respeten el padding */
    padding: 0.8rem 2.5rem; 
    color: var(--text-white); /* Esto mata el color morado por defecto */
    text-decoration: none;    /* Esto elimina la línea de subrayado */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Borde un poco más sutil y elegante */
    border-radius: 8px;       /* Un pelín más redondeado para modernizarlo */
    font-weight: 600; 
    transition: all 0.3s ease; 
}

.btn-outline:hover { 
    background: var(--text-white); 
    color: #00081a; /* El color de tu fondo oscuro para que el texto resalte al hacer hover */
    border-color: var(--text-white);
    transform: translateY(-3px); /* Pequeño saltito hacia arriba */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); /* Sombra suave para dar relieve */
}
/* HERO */
.hero { padding: 150px 0 100px; }
.hero-image {z-index: 1;}
.grid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-text h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;}
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }
.hero-btns { display: flex; gap: 1rem; }

.btn-primary, .btn-secondary { display: inline-block; padding: 1rem 2rem; text-decoration: none; border-radius: 5px; font-weight: 600; transition: var(--transition-suave); }
.btn-primary { background: var(--gradient-accent); color: #000; }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3); transform: translateY(-2px); }
.btn-secondary { background: rgba(255, 255, 255, 0.05); color: var(--text-white); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn-large {
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}   

.mix-blend-img { width: 100%; height: auto; mix-blend-mode: screen; filter: contrast(1.2); }
.rounded-glow { border-radius: 20px; box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15); }

/* NOSOTROS & ESTADÍSTICAS */
.about-stats { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.02); }
.about-stats h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { max-width: 700px; margin: 0 auto 50px; color: var(--text-muted); }
.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { padding: 30px; background: var(--bg-dark); border-radius: 10px; border: 1px solid rgba(255,255,255,0.03); }
.stat-box h3 { font-size: 2.5rem; margin-bottom: 5px; font-weight: 800; }
.stat-box p { color: var(--text-muted); font-size: 0.9rem; }

/* SERVICIOS */
.services { padding: 100px 0; }
.services h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.service-card { text-decoration: none; background: var(--bg-darker); padding: 40px 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-suave); }
.service-card:hover { transform: translateY(-10px); border-color: #00f2ff; background: rgba(0, 242, 255, 0.02); cursor: pointer; }
.icon-box { margin-bottom: 20px; color: #00f2ff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text-white); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }
.img-content {z-index: 1;}

/* ECOSISTEMA (PRODUCTOS) */

/* =========================================
    CARRUSEL AUTOMÁTICO (Fade sin botones)
   ========================================= */
.auto-fade-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Fija un tamaño estándar para que la página no salte */
    overflow: hidden;
    border-radius: 15px;
}

.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out; /* Transición ultra suave de 1 segundo */
}

/* Solo la imagen con la clase 'active' se mostrará */
.fade-img.active {
    opacity: 1;
    visibility: visible;
}



.badge-eco{
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    font-size: 0.8rem;
    border-color: #f59e0b;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.products-featured { padding: 100px 0; }
.product-graphic {z-index: 1;}
.products-featured h2 { font-size: 2.8rem; margin-bottom: 20px; }
.grid-products, .grid-products-reverse { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.grid-products-reverse .product-text { grid-column: 2; grid-row: 1; }
.grid-products-reverse .product-graphic { grid-column: 1; grid-row: 1; }
.product-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

/* POR QUÉ ELEGIRNOS */
.why-us { padding: 100px 0; }
.why-us h2 { font-size: 2.5rem; margin-bottom: 50px; }
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* El nuevo diseño de la tarjeta */
.feature-card { 
    padding: 35px 30px; /* Un poco más de aire vertical */
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%); /* Efecto cristal */
    border: 1px solid rgba(255,255,255,0.05); /* Borde ultra sutil */
    border-left: 3px solid #00f2ff; /* Mantenemos tu línea cyan identitaria */
    border-radius: 10px; /* Redondeamos todo suavemente */
    text-align: left; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación súper fluida */
}

/* La magia ocurre al pasar el mouse */
.feature-card:hover {
    transform: translateY(-10px); /* La tarjeta "flota" hacia arriba */
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.15); /* Resplandor cyan debajo */
    border-left: 4px solid #b200ff; /* La línea cambia al morado de tu marca */
}

.feature-card h4 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* FOOTER */
.main-footer { padding: 80px 0 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.grid-footer { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { height: 40px; margin-bottom: 20px; }
.footer-info p { color: var(--text-muted); font-size: 0.9rem; max-width: 250px; }
.footer-links h4, .footer-tech h4, .footer-contact h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover { color: #00f2ff; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags span { background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; color: var(--mcm-beige); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* =========================================
    ESTILOS PÁGINA CLIENTES
   ========================================= */

/* Grilla de Logos */
.grid-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    opacity: 0.7; /* Ligeramente opacos para que no distraigan tanto */
    transition: var(--transition-suave);
}

.grid-logos:hover {
    opacity: 1; /* Se iluminan cuando pasas el mouse por la zona */
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-suave);
    cursor: default;
}

.logo-placeholder:hover {
    color: var(--text-white);
    transform: scale(1.05);
}

/* Grilla de Testimonios */

/* 1. El contenedor: Cambiamos tu antiguo "grid" por "flex" para poder deslizar */
.carousel-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Mantiene todo en 1 sola fila infinita */
    gap: 30px;
    margin-top: 50px; /* Tu margen superior original */
    padding-bottom: 20px; 
    overflow-x: auto;
    
    /* Efecto de encaje suave */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Ocultar scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.carousel-container::-webkit-scrollbar {
    display: none; 
}

/* 2. Tu tarjeta exacta, con las reglas de tamaño del carrusel */
.testimonial-card {
    /* Reglas para el carrusel (3 por fila en PC) */
    flex: 0 0 calc(33.333% - 20px); 
    min-width: 300px; 
    scroll-snap-align: start; 
    
    /* TU DISEÑO ORIGINAL INTÁCTO */
    background: var(--bg-section-dark);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: var(--transition-suave);
}

/* TU HOVER ORIGINAL INTÁCTO */
.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-bright);
    box-shadow: 0 15px 30px rgba(0, 8, 26, 0.5);
}

/* 3. Estilo de los botones (Flechas) para que combinen con tu marca */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-carousel {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-white);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-suave);
}

.btn-carousel:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--blue-bright);
    color: var(--blue-bright);
}


.quote-icon {
    font-size: 4rem;
    font-family: serif;
    color: var(--blue-bright);
    position: absolute;
    top: 10px;
    right: 30px;
    opacity: 0.3;
    line-height: 1;
}

.t-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-mcm-beige);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--blue-bright);
}

/* =========================================
    ESTILOS PÁGINA CONTACTO
   ========================================= */

.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Bloque de Información */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--blue-bright);
    background: rgba(33, 102, 245, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(33, 102, 245, 0.2);
}

.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--bg-section-dark);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-suave);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-btn:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    transform: translateY(-3px);
}

/* Formulario */
.contact-form-block {
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0, 8, 26, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-mcm-beige-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.mcm-form input,
.mcm-form select,
.mcm-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-ultra-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-suave);
}

.mcm-form input::placeholder,
.mcm-form textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.mcm-form input:focus,
.mcm-form select:focus,
.mcm-form textarea:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(33, 102, 245, 0.2);
}

/* Estilo para el select */
.mcm-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.mcm-form select option {
    background: var(--bg-ultra-dark);
    color: var(--text-white);
}

/* =========================================
    ESTILOS PÁGINA NOSOTROS
   ========================================= */

/* Historia */
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-highlights {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.highlight-item {
    flex: 1;
}

/* Misión y Visión */
.grid-mv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--bg-section-dark);
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-suave);
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-bright);
    box-shadow: 0 15px 30px rgba(0, 8, 26, 0.5);
}

.mv-icon {
    font-size: 3.5rem;
    color: var(--blue-bright);
    margin-bottom: 20px;
    opacity: 0.9;
}

.mv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.mv-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Valores */
.grid-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: var(--bg-ultra-dark);
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-suave);
}

.value-card:hover {
    background: rgba(33, 102, 245, 0.05);
    border-color: rgba(33, 102, 245, 0.3);
}

.v-icon {
    font-size: 2.5rem;
    color: var(--text-mcm-beige);
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =========================================
    PANTALLA DE CARGA (LOADER)
   ========================================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-ultra-dark); /* Tu fondo azul profundo */
    z-index: 99999; /* Tiene que estar por encima de TODO */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Esta clase se añadirá con JS para ocultarlo */
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* El círculo giratorio */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1); /* Borde opaco */
    border-top-color: var(--blue-bright); /* Borde superior brillante */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Animación infinita */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
    BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 35px; /* Distancia desde abajo */
    right: 35px;  /* Distancia desde la derecha */
    background-color: #e4e4e4; /* El verde exacto de WhatsApp */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); /* Sombra difuminada */
    z-index: 9999; /* Para que NUNCA se esconda detrás de nada */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-suave);
    animation: pulse-wa 2.5s infinite; /* Activa la animación del latido */
}

/* El tamaño exacto del ícono */
.whatsapp-icon {
    width: 38px;
    height: 38px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Hover: El botón se levanta un poco y el ícono gira sutilmente */
.whatsapp-float:hover {
    transform: translateY(-5px);
    background-color:#25d366; /* Un verde un poco más oscuro */
    box-shadow: 0 10px 25px rgba(37, 127, 211, 0.6);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1);
}

/* La Animación de Latido (Pulse) */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 89, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
    ESTILOS DEL MODAL (AVISO)
   ========================================= */
.mcm-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 8, 26, 0.85); /* Azul muy oscuro casi negro */
    backdrop-filter: blur(8px); /* Desenfoca el fondo de la web */
    z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; visibility: visible;
    transition: all 0.3s ease;
}

/* Estado oculto */
.mcm-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mcm-modal-content {
    background: var(--bg-section-dark);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto de rebote suave */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.mcm-modal.hidden .mcm-modal-content {
    transform: translateY(30px) scale(0.95);
}

.mcm-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mcm-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}