/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --navy: #0A1B45;
    --navy-deep: #060F2C;
    --cyan: #00A6FF;
    --teal: #00D9A6;
    --grad: linear-gradient(90deg, var(--cyan) 0%, var(--teal) 100%);
    --bg-soft: #F4F7FC;
    --ink: #0A1B45;
    --ink-soft: #5B6478;
    --line: #E3E8F2;
    --radius: 18px;
    font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: 'Nunito', sans-serif; cursor: pointer; border: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Tipografía Base */
.eyebrow {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--cyan);
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   2. BOTONES
   ========================================================================== */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 15px;
    padding: 15px 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 28px rgba(0,166,255,0.30); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,166,255,0.4); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-2px); }

/* ==========================================================================
   3. HEADER Y MENÚ (ESCRITORIO)
   ========================================================================== */
.navbar {
    position: sticky; top: 0; z-index: 500;
    background: rgba(10,27,69,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 34px; }
.nav-links a { color: #cdd7ef; font-weight: 700; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { color: #cdd7ef; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

.nav-burger { display: none; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.mobile-menu { display: none; } /* Oculto en escritorio */

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, rgba(6,15,44,0.55) 0%, rgba(18, 27, 65, 0.88) 55%, var(--navy-deep) 100%),
                url('../img/Control-de-Flotas-Geosatelital.webp') center 30%/cover no-repeat,
                var(--navy-deep);
    padding: 56px 0 40px;
    overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(0,166,255,0.18), transparent 45%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Más espacio al texto */
    gap: 40px;
    align-items: center;
    position: relative; 
    z-index: 2;
}

.hero-copy .eyebrow { margin-bottom: 14px; display: block; }
.hero-copy h1 {
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 900;
    color: #fff;
    line-height: 1.06;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero-copy h1 em { 
    font-style: normal; 
    background: var(--grad); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
    color: transparent; 
    display: inline-block;
}

.hero-copy p {
    color: #c3cfe8;
    font-size: 16.5px;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 580px; /* Para forzar las 2 líneas en PC */
    font-weight: 600;
}

.hero-icons {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px 18px;
    margin-top: 34px;
    max-width: 460px;
}
.hero-icon-item { display: flex; align-items: center; gap: 12px; }
.hero-icon-item .ic {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,166,255,0.25), rgba(0,217,166,0.18));
    border: 1px solid rgba(0,166,255,0.4);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 15px;
}
.hero-icon-item span { color: #dbe4f7; font-size: 13.5px; font-weight: 700; line-height: 1.25; }

/* Formulario del Hero */
.form-contact {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 400px; /* Más angosto */
    justify-self: end; /* Alineado a la derecha */
}
.form-contact h2 { font-size: 21px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.form-contact p.form-sub { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }
.form-contact form { display: flex; flex-direction: column; gap: 12px; }

.hero-input {
    font-family: 'Nunito', sans-serif; width: 100%; padding: 13px 16px;
    border: 1.5px solid var(--line); border-radius: 12px;
    font-size: 14.5px; font-weight: 700; color: var(--ink); background: #F9FBFF; outline: none;
    transition: border-color .2s;
}
.hero-input:focus { border-color: var(--cyan); background: #fff; }
.hero-input::placeholder { color: #9aa5bd; font-weight: 600; }

.form-contact select.hero-input {
  color: #9aa5bd;
  font-weight: 600;
  cursor: pointer;
}

/* Cuando el usuario ya eligió una opción: texto normal como los inputs */
.form-contact select.hero-input:required:valid {
  color: var(--ink);
  font-weight: 700;
}

/* Opciones del desplegable siempre legibles (no heredan el gris) */
.form-contact select.hero-input option {
  color: var(--ink);
  font-weight: 700;
  background: #fff;
}
.form-contact button[type=submit] {
    margin-top: 6px; background: var(--grad); color: #fff; font-weight: 900;
    font-size: 15px; letter-spacing: 0.5px; padding: 15px; border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0,166,255,0.35); transition: transform .2s ease;
}
.form-contact button[type=submit]:hover { transform: translateY(-2px); }

.form-contact p.legal { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; font-weight: 600; }
.form-contact p.legal a { color: var(--cyan); font-weight: 800; }

/* ==========================================================================
   CONSENTIMIENTO DE MARKETING - CSS
   ========================================================================== */
.form-consent {
    margin: 14px 0 18px 0;
    text-align: left;
    width: 100%;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    line-height: 1.45;
}

.consent-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 5px;
    background: #F9FBFF;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 1px;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}

.consent-label input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

.consent-label input[type="checkbox"]:checked {
    background: var(--cyan);
    border-color: var(--cyan);
}

.consent-label input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}

.consent-label a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration: underline;
}

.consent-label a:hover {
    color: var(--navy);
}

/* Hero WhatsApp card */
.hero-wsp-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  text-align: center;
  position: relative; z-index: 3;
}
.wsp-icon {
  width: 68px; height: 68px;
  background: rgba(37,211,102,0.12);
  color: #25D366;
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(37,211,102,0.2);
}
.hero-wsp-card h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
.hero-wsp-card p {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 26px;
  padding: 0 6px;
}
.btn-wsp-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 16px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37,211,102,0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.btn-wsp-big:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,0.5); background: #20BA56; color: #fff; }
.card-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.card-trust span {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-trust i { color: #f59e0b; }
.card-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.card-alt-label {
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 14px;
}
/* Mini form inside card */
.mini-form { display: flex; flex-direction: column; gap: 10px; }
.mini-input {
  font-family: 'Nunito', sans-serif;
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #F9FBFF;
  outline: none;
  transition: border-color .2s;
}
.mini-input:focus { border-color: var(--cyan); background: #fff; }
.mini-input::placeholder { color: #9aa5bd; font-weight: 600; }
.mini-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath fill='%235B6478' d='M0 0l7 9 7-9z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mini-submit {
  font-family: 'Nunito', sans-serif;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  font-size: 14.5px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,166,255,0.3);
  transition: transform .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mini-submit:hover { transform: translateY(-2px); }
.form-legal {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}
.form-legal a { color: var(--cyan); font-weight: 800; }

/* ==========================================================================
   5. TRUST BAR (Indicadores)
   ========================================================================== */
.trust { background: var(--line); padding: 34px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.trust-item b { display: block; font-size: 26px; font-weight: 900; color: var(--navy); }
.trust-item span { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }

/* ==========================================================================
   6. CLIENTS SLIDER INFINITO
   ========================================================================== */
.clients-slider {
    padding: 80px 0; background: #ffffff; border-bottom: 1px solid var(--line); overflow: hidden;
}
.clients-header { text-align: center; margin-bottom: 40px; }
.clients-header .eyebrow { display: inline-block; margin-bottom: 12px; }
.clients-header h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; color: var(--navy); max-width: 800px; margin: 0 auto; line-height: 1.25; }

.slider-container {
    width: 100%; position: relative; padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.slider-track { display: flex; align-items: center; gap: 70px; width: max-content; }
.slide { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.slide img {
    height: 60px; width: auto; object-fit: contain;
    filter: grayscale(100%) opacity(0.5); transition: filter 0.3s ease, transform 0.3s ease;
}
.slide img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

@keyframes scrollSlider { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 35px)); } }
.slider-track.animate { animation: scrollSlider 30s linear infinite; }
.slider-track.animate:hover { animation-play-state: paused; }

/* ==========================================================================
   7. SECCIÓN B: INTRODUCCIÓN (4 TARJETAS + IMAGEN)
   ========================================================================== */
.intro-band { position: relative; background: var(--navy); padding: 100px 0; }
.intro-header { max-width: 800px; margin: 0 auto 50px auto; }
.intro-header h2 { color: #fff; font-size: clamp(28px, 3.5vw, 42px); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.intro-header p { color: #c3cfe8; font-size: 17px; line-height: 1.6; font-weight: 600; }

.intro-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch; /* Alineación perfecta */
    margin-bottom: 30px;
}
.intro-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-content: stretch; }

.intro-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 35px 25px; border-radius: 20px;
    display: flex; flex-direction: column; justify-content: flex-start; height: 100%; 
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.intro-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06); border-color: rgba(0,166,255,0.4); }

.intro-card-icon {
    width: 56px; height: 56px; border-radius: 16px; margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0,166,255,0.15), rgba(0,217,166,0.15));
    color: var(--cyan); font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.intro-card h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.intro-card p { color: #9aa5bd; font-size: 15px; line-height: 1.6; font-weight: 600; }

.intro-image {
    position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex; height: 100%; /* Alineación perfecta con las tarjetas */
}
.intro-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.6s ease; }
.intro-image:hover img { transform: scale(1.04); }
.intro-image-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, var(--navy) 0%, transparent 50%); pointer-events: none; }

/* ==========================================================================
   8. SECCIÓN APAGADO REMOTO (Reemplazo de Plataforma)
   ========================================================================== */
.remote-action-section {
    padding: 100px 0;
    background: var(--bg-soft);
}

.remote-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: center; 
}

/* Estilo de la imagen */
.remote-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 27, 69, 0.15);
}

.remote-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Estilos del texto */
.remote-content h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.remote-content p {
    color: var(--ink-soft);
    font-size: 17.5px;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Estilos de las viñetas */
.remote-bullets {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.remote-bullets li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--navy);
}

.remote-bullets .check-icon {
    background: var(--grad); /* Usamos tu degradado base */
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(0, 166, 255, 0.25);
}

/* ==========================================================================
   9. SECCIÓN TECNOLOGÍA (6 TARJETAS)
   ========================================================================== */
.tech-section { padding: 100px 0; background: #fff; }
.tech-header { max-width: 750px; margin: 0 auto 50px auto; }
.tech-header h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; color: var(--navy); line-height: 1.25; margin-top: 10px; }

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.tech-card {
    background: #fff; border-radius: 20px; padding: 30px 24px; text-align: center;
    box-shadow: 0 10px 30px rgba(10,27,69,0.05); border: 1px solid var(--line);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tech-card:hover { background-color: var(--ink); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,166,255,0.12); border-color: rgba(0,166,255,0.3); }

.tech-icon {
    width: 64px; height: 64px; border-radius: 50%; background: rgba(0,166,255,0.1); color: var(--cyan);
    font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto;
}
.tech-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.tech-card:hover h3 { color: #fff; }
.tech-card p { font-size: 14px; color: var(--ink-soft); font-weight: 600; line-height: 1.6; }
.tech-card:hover p { color: #c3cfe8; }
.tech-cta { margin-top: 20px; }

/* ==========================================================================
   10. CTA FINAL WSP (Degradado Azul Oscuro con Fondo Integrado)
   ========================================================================== */
.cta-final-section {
    position: relative; 
    padding: 120px 0; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background-color: var(--navy-deep);
}

.cta-final-bg { 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
}

.cta-final-bg img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center 40%;
    opacity: 0.35; /* Reduce el brillo de la imagen clara para integrarla con el azul */
}

/* Overlay de degradado azul idéntico a la paleta del Hero */
.cta-final-overlay { 
    position: absolute; 
    inset: 0; 
    z-index: 2;
    background: linear-gradient(180deg, rgba(6, 15, 44, 0.95) 0%, rgba(10, 27, 69, 0.88) 60%, var(--navy-deep) 100%);
}

/* Destello radial sutil en cian (igual al efecto del Hero) */
.cta-final-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 166, 255, 0.18), transparent 80%);
    pointer-events: none;
    z-index: 2;
}

.cta-final-content { 
    position: relative; 
    z-index: 3; /* Asegura que el texto e interactivos estén sobre todas las capas */
    max-width: 850px; 
    margin: 0 auto; 
}

.cta-final-content h2 { 
    color: #ffffff; 
    font-size: clamp(30px, 4vw, 48px); 
    font-weight: 900; 
    line-height: 1.15; 
    margin-bottom: 24px; 
}

.cta-final-content p { 
    color: #c3cfe8; 
    font-size: 18px; 
    line-height: 1.6; 
    font-weight: 600; 
    margin-bottom: 40px; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

.btn-wsp-cta {
    background: #25D366; 
    color: #ffffff !important; 
    font-size: 17px; 
    padding: 18px 36px;
    box-shadow: 0 12px 28px rgba(37,211,102,0.35);
}

.btn-wsp-cta:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 16px 34px rgba(37,211,102,0.5); 
    background: #20BA56; 
}
/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer { background: var(--navy-deep); padding: 56px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; }
.footer-logo img { max-width: 200px; height: auto; object-fit: contain; margin: 0 auto; }

.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center; color: #cdd7ef; transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--grad); color: #fff; }

.footer-copyright { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px 0; width: 100%; }
.footer-copyright .line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.footer-copyright p { color: #8fa3d6; font-size: 13px; font-weight: 700; white-space: nowrap; text-align: center; }

.footer-links { text-align: center; }
.footer-links a { color: #8fa3d6; font-size: 12.5px; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-links .separator { color: #3c4a76; margin: 0 10px; font-size: 12px; }

/* ==========================================================================
   12. MEDIA QUERIES UNIFICADAS (El Responsivo Mágico)
   ========================================================================== */

/* Tablets Horizontales y Pantallas Medianas */
@media (max-width: 1080px) {
    .intro-layout { grid-template-columns: 1fr; gap: 40px; }
    .intro-image { min-height: 400px; order: -1; } /* Sube la imagen arriba en tablet */
    
    /* Ajuste para Apagado Remoto en Tablets/Móviles */
    .remote-action-grid { grid-template-columns: 1fr; gap: 40px; }
    .remote-media { order: -1; } /* Asegura que la imagen siempre quede arriba del texto en móviles */
}

/* Tablets Verticales */
@media (max-width: 992px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Celulares Grandes (Aquí ocurre la mayor reestructuración) */
@media (max-width: 768px) {
    /* 1. Header y Menú Móvil */
    .nav-links, .nav-phone, .nav-cta { display: none !important; }
    .navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .brand img { max-width: 160px; height: auto; }
    .nav-burger { display: block; font-size: 24px; padding: 5px 10px; color: #fff; background: transparent; cursor: pointer; }
    
    .mobile-menu {
        display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; width: 100%;
        background: rgba(10,27,69,0.98); padding: 0 24px; max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .mobile-menu.open { max-height: 400px; padding: 20px 24px 30px; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .mobile-menu a { color: #fff; font-size: 16px; font-weight: 700; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .mobile-menu .btn-mobile-wsp { background: #25D366; margin-top: 15px; text-align: center; border-radius: 10px; border-bottom: none; padding: 14px; }

    /* 2. Hero Section */
    .hero { padding: 34px 0 30px; }
    .hero-grid { grid-template-columns: 1fr; gap: 0; }
    .hero-copy h1 br, .hero-copy p br { display: none; } /* Oculta saltos de línea forzados */
    .form-contact { justify-self: center; max-width: 100%; margin-top: 30px; }
    
    /* 3. Indicadores de Confianza */
    .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
    
    /* 4. Clients Slider */
    .clients-slider { padding: 50px 0; }
    .slider-track { gap: 40px; }
    .slide img { height: 35px; }
    
    /* 5. Intro Section */
    .intro-band { padding: 60px 0; }
    .intro-cards-grid { grid-template-columns: 1fr; }
    .intro-card { padding: 30px 24px; }
    .intro-image { min-height: 280px; }
    
    /* 6. CTA Final */
    .cta-final-section { padding: 80px 0; }
    .cta-final-content p { font-size: 16px; margin-bottom: 30px; }
    .btn-wsp-cta { width: 100%; justify-content: center; }

    /* 7. Footer */
    .footer-top { flex-direction: column; gap: 18px; text-align: center; }
    .footer-copyright { flex-direction: column; justify-content: center !important; align-items: center !important; gap: 8px; }
    .footer-copyright .line { display: none; }
    .footer-copyright p { margin: 0 auto; }
    .footer-links a { display: inline-block; margin: 4px 0; }
}

/* ==========================================================================
   13. MODAL DE ÉXITO
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(6, 15, 44, 0.85); /* Azul oscuro translúcido */
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 400px; width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 60px;
    color: #25D366; /* Verde de éxito / WhatsApp */
    margin-bottom: 20px;
}

.modal-box h3 {
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 26px;
}

.modal-box button {
    width: 100%;
    justify-content: center;
}

/* Celulares Pequeños */
@media (max-width: 576px) {
    .platform-features { grid-template-columns: 1fr; }
    .tech-section { padding: 60px 0; }
    .tech-grid { grid-template-columns: 1fr; }
}

