/*
 * Galería de revisión de diseños (app/index.html).
 * Mobile-first. Marca Proactivanet: azules #00A0DF y #82C5EC, marino #081627, sin violeta.
 * Contrastes: texto marino sobre #00A0DF = 6,2:1; texto #0075A3 sobre blanco = 5,2:1;
 * texto #4A5B70 sobre #F3F7FB = 6,5:1.
 */
:root {
  --azul: #00a0df;
  --azul-2: #82c5ec;
  --azul-texto: #0075a3;
  --azul-hover: #33b4e8;
  --marino: #081627;
  --marino-2: #0f2a46;
  --texto: #081627;
  --suave: #4a5b70;
  --linea: #dde6ef;
  --fondo: #f3f7fb;
  --blanco: #fff;
  --radio: 18px;
  --radio-g: 28px;
  --sombra: 0 1px 2px rgba(8, 22, 39, 0.05), 0 24px 48px -26px rgba(8, 22, 39, 0.28);
  --sombra-s: 0 1px 2px rgba(8, 22, 39, 0.05), 0 10px 24px -14px rgba(8, 22, 39, 0.22);
  --foco: #0075a3;
  --ancho: 1180px;
  --pad: clamp(16px, 4.5vw, 36px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  min-height: 100vh;
  overflow-x: hidden;
}
img,
video,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: var(--azul-texto);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 6px;
}
.oscuro :focus-visible,
.visor :focus-visible {
  outline-color: var(--azul-2);
}

.solo-lectores {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.saltar {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 50;
  background: var(--marino);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.saltar:focus {
  top: 12px;
}

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--pad));
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Cabecera ---------- */
.cabecera {
  background: #fff;
  border-bottom: 1px solid var(--linea);
  position: relative;
  overflow: hidden;
}
.cabecera::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(900px, 120vw);
  height: 620px;
  background: radial-gradient(closest-side, rgba(0, 160, 223, 0.16), rgba(130, 197, 236, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  font-size: 14px;
  color: var(--suave);
}
.barra__inicio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--suave);
  text-decoration: none;
  font-weight: 600;
}
.barra__inicio img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}
.barra__usuario {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portada {
  position: relative;
  padding-block: clamp(28px, 6vw, 72px) clamp(36px, 6.5vw, 76px);
}
.portada__logo {
  display: block;
  width: auto;
  height: clamp(30px, 5vw, 40px);
  margin-bottom: clamp(22px, 4vw, 40px);
}
.sobretitulo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--azul-texto);
}
.portada h1 {
  margin-top: 10px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14em;
  text-wrap: balance;
}
.portada__lead {
  margin-top: clamp(14px, 2.4vw, 22px);
  max-width: 40em;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--suave);
}
.portada__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--fondo);
  border: 1px solid var(--linea);
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
}
.etiqueta svg {
  flex: none;
  color: var(--azul-texto);
}
.atajos {
  margin-top: clamp(22px, 4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.atajos a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: #fff;
  color: var(--texto);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.atajos a:hover {
  border-color: var(--azul);
  color: var(--azul-texto);
}

/* ---------- Secciones ---------- */
.seccion {
  padding-block: clamp(44px, 7vw, 92px);
}
.seccion__cab {
  margin-bottom: clamp(22px, 4vw, 38px);
  max-width: 44em;
}
.seccion__cab h2 {
  margin-top: 8px;
  font-size: clamp(27px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
.seccion__cab p {
  margin-top: 12px;
  color: var(--suave);
  font-size: clamp(16px, 1.9vw, 18px);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg {
  flex: none;
}
.btn--primario {
  background: var(--azul);
  color: var(--marino);
}
.btn--primario:hover {
  background: var(--azul-hover);
}
.btn--secundario {
  background: #fff;
  color: var(--azul-texto);
  border-color: var(--azul-texto);
}
.btn--secundario:hover {
  background: #eaf6fc;
}
.btn--sobre-oscuro {
  background: transparent;
  color: #fff;
  border-color: var(--azul-2);
}
.btn--sobre-oscuro:hover {
  background: rgba(130, 197, 236, 0.16);
}
.txt-ancho {
  display: none;
}

/* ---------- Finalistas ---------- */
.finalistas {
  display: grid;
  gap: clamp(26px, 4.5vw, 48px);
}
.finalista {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio-g);
  box-shadow: var(--sombra);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.finalista__media {
  padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(14px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, #e3f2fb 0%, #f3f8fc 70%);
  color: var(--texto);
}
.finalista--oscura .finalista__media {
  background: radial-gradient(120% 90% at 20% 0%, #14385c 0%, var(--marino-2) 45%, var(--marino) 100%);
  color: #e8f1f9;
}
.media__pie {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 4px;
}
.media__pie .pie-captura {
  flex: 1 1 180px;
}
.vistas {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(8, 22, 39, 0.07);
}
.finalista--oscura .vistas {
  background: rgba(255, 255, 255, 0.12);
}
.vistas[hidden] {
  display: none;
}
.vistas button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.vistas button[aria-pressed='true'] {
  background: #fff;
  color: var(--marino);
  box-shadow: 0 2px 8px rgba(8, 22, 39, 0.18);
}
.escena {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 2.4vw, 24px);
}
.navegador {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(8, 22, 39, 0.14), 0 22px 40px -18px rgba(8, 22, 39, 0.5);
}
.navegador__barra {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #e6edf5;
}
.navegador__barra i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b4c2d3;
}
.navegador img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  background: #dfe8f0;
}
.navegador img[hidden] {
  display: none;
}
.telefono {
  flex: 0 0 clamp(84px, 20%, 200px);
  padding: clamp(4px, 0.8vw, 7px);
  border-radius: clamp(15px, 2.8vw, 28px);
  background: #0b1726;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 22px 40px -16px rgba(8, 22, 39, 0.6);
}
.telefono img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border-radius: clamp(11px, 2.2vw, 21px);
  background: #dfe8f0;
}
.pie-captura {
  font-size: 13px;
  color: var(--suave);
}
.finalista--oscura .pie-captura {
  color: #b9cadb;
}

.finalista__texto {
  padding: clamp(22px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 30px) clamp(32px, 5vw, 72px);
}
.finalista__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.finalista__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 32px;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--linea);
}
.finalista__cab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.numero {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--azul-texto);
}
.insignia {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--azul);
  color: var(--marino);
  font-size: 13px;
  font-weight: 800;
}
.finalista h3 {
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.finalista__desc {
  color: var(--suave);
  font-size: 17px;
}
.finalista__desc strong {
  color: var(--texto);
  font-weight: 700;
}
.sub {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--suave);
  margin-bottom: 10px;
}
.probar {
  counter-reset: paso;
  display: grid;
  gap: 10px;
}
.probar li {
  counter-increment: paso;
  position: relative;
  padding: 2px 0 2px 40px;
  font-size: 16px;
  line-height: 1.5;
}
.probar li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e1f3fb;
  color: var(--azul-texto);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.interiores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interiores a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: var(--fondo);
  color: var(--texto);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.interiores a:hover {
  border-color: var(--azul);
  color: var(--azul-texto);
  background: #fff;
}

/* ---------- Comparativa ---------- */
.comparativa {
  background: #fff;
  border-block: 1px solid var(--linea);
}
.tabla {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  box-shadow: var(--sombra-s);
  overflow: hidden;
  font-size: 16px;
}
.tabla caption {
  text-align: left;
  padding: 0 0 12px;
  color: var(--suave);
  font-size: 14px;
  caption-side: bottom;
  padding-top: 12px;
}
.tabla th,
.tabla td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--linea);
}
.tabla thead th {
  background: var(--marino);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 0;
}
.tabla thead th small {
  display: block;
  font-weight: 600;
  color: var(--azul-2);
  font-size: 13px;
}
.tabla tbody th {
  font-weight: 800;
  width: 17%;
  background: #f8fbfd;
  color: var(--texto);
}
.tabla tbody tr:last-child th,
.tabla tbody tr:last-child td {
  border-bottom: 0;
}
.tabla td {
  width: 41.5%;
}

/* ---------- Qué más hay ---------- */
.mas {
  display: grid;
  gap: 16px;
}
.mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  color: var(--texto);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(8, 22, 39, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.mini:hover {
  border-color: var(--azul);
  box-shadow: var(--sombra-s);
}
.mini__k {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azul-texto);
}
.mini strong {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mini__d {
  font-size: 15px;
  color: var(--suave);
}
.mini__ir {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--azul-texto);
}
.mini video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: var(--marino);
  margin-bottom: 6px;
}
.anteriores {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
}
.anteriores summary {
  min-height: 56px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.anteriores summary::-webkit-details-marker {
  display: none;
}
.anteriores summary::after {
  content: '';
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--azul-texto);
  border-bottom: 2.5px solid var(--azul-texto);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.anteriores[open] summary::after {
  transform: rotate(-135deg);
}
.anteriores__lista {
  display: grid;
  gap: 12px;
  padding: 4px 22px 22px;
}
.antigua {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--linea);
  border-radius: 14px;
  background: var(--fondo);
  color: var(--texto);
  text-decoration: none;
}
.antigua:hover {
  border-color: var(--azul);
}
.antigua img {
  display: block;
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.antigua strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.antigua span {
  font-size: 14px;
  color: var(--suave);
  line-height: 1.4;
}

/* ---------- Pie ---------- */
.pie {
  padding-block: 32px 48px;
  font-size: 14px;
  color: var(--suave);
  text-align: center;
}
.pie p {
  max-width: 44em;
  margin: 0 auto;
}
.pie__enlaces a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 700;
}

/* ---------- Visor «Ver en móvil» ---------- */
.visor {
  --k: 1;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: 100vw;
  height: 100dvh;
  overflow: auto;
  color: #fff;
}
.visor::backdrop {
  background: rgba(8, 22, 39, 0.86);
}
.visor__panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px;
}
.visor__barra {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.visor__titulo {
  flex: 1 1 200px;
  font-size: 17px;
  font-weight: 800;
}
.visor__titulo small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #b9cadb;
}
.visor .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.visor__caja {
  position: relative;
  flex: none;
  width: calc((390px + 20px) * var(--k));
  height: calc((844px + 20px) * var(--k));
}
.visor__movil {
  position: absolute;
  inset: 0 auto auto 0;
  width: 410px;
  height: 864px;
  padding: 10px;
  border-radius: 48px;
  background: #0b1726;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  transform: scale(var(--k));
  transform-origin: 0 0;
}
.visor__movil iframe {
  display: block;
  width: 390px;
  height: 844px;
  border: 0;
  border-radius: 38px;
  background: #fff;
}
.visor__estado {
  position: absolute;
  inset: 10px;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 28px;
  border-radius: 38px;
  background: #f3f7fb;
  color: var(--texto);
  text-align: center;
  font-weight: 600;
}
.visor__estado[hidden] {
  display: none;
}
.visor__estado p {
  font-size: 16px;
}

/* ---------- Pantallas anchas ---------- */
@media (min-width: 720px) {
  .txt-ancho {
    display: inline;
  }
  .txt-estrecho {
    display: none;
  }
  .mas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anteriores__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .finalista__texto {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .finalista__pie {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .anteriores__lista {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .antigua {
    grid-template-columns: minmax(0, 1fr);
  }
  .antigua img {
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
  }
}

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 719px) {
  [data-ver-movil] {
    display: none;
  }
  .acciones {
    flex: 1 1 100%;
  }
  .acciones .btn {
    flex: 1 1 100%;
  }
  .tabla,
  .tabla tbody,
  .tabla tr,
  .tabla th,
  .tabla td {
    display: block;
    width: 100%;
  }
  .tabla thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .tabla {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .tabla tbody tr {
    background: #fff;
    border: 1px solid var(--linea);
    border-radius: var(--radio);
    box-shadow: var(--sombra-s);
    overflow: hidden;
    margin-bottom: 14px;
  }
  .tabla tbody th {
    width: 100%;
    padding: 12px 18px;
    background: var(--marino);
    color: #fff;
    border-bottom: 0;
  }
  .tabla td {
    padding: 14px 18px;
  }
  .tabla td::before {
    content: attr(data-etiqueta);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--azul-texto);
  }
  .tabla tbody tr:last-child td {
    border-bottom: 0;
  }
  .tabla tbody tr:last-child td:not(:last-child) {
    border-bottom: 1px solid var(--linea);
  }
  .tabla caption {
    padding-top: 0;
  }
  .visor__barra .btn {
    flex: 1 1 auto;
  }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
