:root {
  --bg: #041222;
  --bg-soft: #08243f;
  --panel: rgba(8, 38, 65, .88);
  --panel-strong: #082943;
  --text: #f4f8ff;
  --muted: #bfd2e8;
  --accent: #20c8f3;
  --accent-2: #2687ff;
  --line: rgba(61, 199, 244, .28);
  --shadow: 0 20px 50px rgba(0, 0, 0, .22);
  --radius: 24px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 135, 255, .18), transparent 28%),
    linear-gradient(180deg, #06182b 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: black;
}

.skip-link:focus {
  top: 12px;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(3, 17, 31, .92);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.section,
.section-wide,
.footer-wrap {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(32, 200, 243, .25);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  color: #e8f3ff;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: white;
  font-size: 1.6rem;
  padding: 8px 12px;
}


/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section,
.section-wide {
  padding-block: clamp(70px, 9vw, 120px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}

.pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(32, 200, 243, .48);
  border-radius: 999px;
  background: rgba(32, 200, 243, .08);
  color: #dff9ff;
  font-weight: 800;
  letter-spacing: .02em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 24px 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

h1 strong {
  color: var(--accent);
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  max-width: 900px;
  font-size: clamp(2.25rem, 4.7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

h3 {
  line-height: 1.25;
}

.hero-text,
.section-head p,
.intro p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 850;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031426;
  box-shadow: 0 14px 30px rgba(22, 160, 244, .22);
}

.btn.secondary {
  border-color: rgba(48, 177, 239, .45);
  background: rgba(14, 56, 88, .9);
  color: white;
}

.hero-trust {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #c7e8f6;
  font-size: .96rem;
}

.hero-card {
  padding: 18px;
  border: 1px solid rgba(46, 196, 245, .32);
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(13, 69, 108, .55),
      rgba(4, 23, 42, .8)
    );
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
}


/* =========================================================
   INTRODUCCIÓN
   ========================================================= */

.intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.section-head {
  margin-bottom: 38px;
}


/* =========================================================
   TARJETAS DE FUNCIONES
   ========================================================= */

.grid.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.steps article,
.trust-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(
      155deg,
      rgba(10, 49, 82, .86),
      rgba(5, 28, 50, .92)
    );
}

.card {
  min-height: 220px;
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(44, 210, 255, .6);
}

.card > span {
  font-size: 2rem;
}

.card h3 {
  margin: 18px 0 10px;
}

.card p,
.steps p,
.trust-grid span,
.video-card p {
  color: var(--muted);
}


/* =========================================================
   CARRUSEL DE VIDEOS
   ========================================================= */

.carousel-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
}

.arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(32, 200, 243, .42);
  border-radius: 50%;
  background: rgba(9, 48, 77, .9);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.video-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  padding: 6px 2px 16px;
}

.video-card {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 30, 52, .94);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #0a3658;
}

.video-info {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.video-info h3 {
  min-height: 58px;
  margin-bottom: 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1.15rem;
}

.video-info p {
  flex: 1;
  margin-bottom: 18px;
}

.video-actions {
  display: grid;
  gap: 10px;
}

.video-actions .btn {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font-size: .95rem;
}

.video-link {
  text-align: center;
  color: #bcefff;
  font-size: .92rem;
  text-underline-offset: 3px;
}


/* =========================================================
   PASOS
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 24px;
}

.steps article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #031426;
  font-weight: 900;
}

.steps h3 {
  margin: 18px 0 8px;
}


/* =========================================================
   GALERÍA DE CAPTURAS
   MARCOS UNIFORMES SIN DEFORMAR NI RECORTAR
   ========================================================= */

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.shot {
  width: 100%;
  aspect-ratio: 9 / 19;
  padding: 10px;
  margin: 0;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  cursor: zoom-in;
}

.shot img {
  display: block;

  width: 100%;
  height: 100%;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;

  border-radius: 16px;

  transition: transform .25s ease;
}

.shot:hover img {
  transform: scale(1.02);
}


/* =========================================================
   CONFIANZA
   ========================================================= */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-grid > div {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px;
}

.trust-grid b {
  font-size: 1.2rem;
}


/* =========================================================
   DESCARGA
   ========================================================= */

.download-box {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 55px);
  border: 1px solid rgba(37, 205, 252, .36);
  border-radius: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(14, 69, 108, .95),
      rgba(5, 30, 53, .96)
    );
  box-shadow: var(--shadow);
}

.download-box > img {
  width: 100px;
  border-radius: 24px;
}

.download-box h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}


/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */

.faq details {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 35, 60, .8);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}


/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

footer {
  padding-block: 46px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(2, 13, 24, .75);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #cceeff;
}


/* =========================================================
   BOTONES FLOTANTES
   ========================================================= */

.whatsapp-float,
.to-top {
  position: fixed;
  z-index: 950;
  right: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 20px;
  background: #168f49;
}

.to-top {
  bottom: 82px;
  opacity: 0;
  pointer-events: none;
  background: #15507a;
  cursor: pointer;
  transition: opacity .2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}


/* =========================================================
   MODALES
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .82);
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(100%, 980px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  background: #020b14;
  box-shadow: var(--shadow);
}

.video-modal-content {
  aspect-ratio: 16 / 9;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 22px;
}

.image-modal-content {
  width: min(100%, 720px);
  padding: 18px;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: auto;
  display: block;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #071727;
  font-size: 1.7rem;
  cursor: pointer;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.delay {
  transition-delay: .12s;
}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}


/* =========================================================
   TABLET / PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 1020px) {

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    max-width: 760px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .grid.features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-carousel {
    grid-auto-columns: calc((100% - 18px) / 2);
  }

  .steps,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .download-box {
    grid-template-columns: 90px 1fr;
  }

  .download-box .actions {
    grid-column: 1 / -1;
  }

}


/* =========================================================
   TELÉFONOS
   ========================================================= */

@media (max-width: 760px) {

  .nav-wrap {
    min-height: 68px;
  }

  .menu-btn {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #06182b;
    box-shadow: var(--shadow);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px;
  }

  .section,
  .section-wide {
    padding-block: 64px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .grid.features,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .phone-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .carousel-shell {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  .video-carousel {
    grid-auto-columns: 88%;
  }

  .video-card {
    min-height: 500px;
  }

  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-box > img {
    margin-inline: auto;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }

}


/* =========================================================
   TELÉFONOS PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

  .phone-gallery {
    grid-template-columns: 1fr;
  }

  .shot {
    max-width: 320px;
    margin-inline: auto;
  }

}


@media (max-width: 420px) {

  .nav-wrap,
  .section,
  .section-wide,
  .footer-wrap {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand span {
    font-size: 1rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .video-carousel {
    grid-auto-columns: 94%;
  }

}