/* 1win-ecuador-site.com — tema nocturno con violeta, azul y verde */

:root {
  --zt-noche: #0a0f1f;
  --zt-barra: #131a30;
  --zt-placa: #151c34;
  --zt-placa-2: #1d2645;
  --zt-borde: #2a3458;
  --zt-texto: #d5dbec;
  --zt-tenue: #98a2c2;
  --zt-claro: #f6f8fe;

  --zt-violeta-a: #4a35a0;
  --zt-violeta-b: #2a2063;
  --zt-azul: #2f6fd6;
  --zt-azul-hover: #2560bd;
  --zt-azul-activo: #1d4f9e;
  --zt-verde: #2a8445;
  --zt-verde-hover: #237339;
  --zt-verde-activo: #1b5c2d;
  --zt-oro: #f5c451;

  --zt-titulo: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --zt-texto-f: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --zt-max: 1220px;
  --zt-lado: clamp(1rem, 4vw, 2.5rem);
  --zt-alto: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zt-alto) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--zt-noche);
  color: var(--zt-texto);
  font-family: var(--zt-texto-f);
  font-size: 1.0625rem;
  line-height: 1.7;
}

body.zt-quieto { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--zt-oro); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.zt-saltar {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 400;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--zt-verde);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.zt-saltar:focus { top: 12px; }

.zt-marco { width: min(100% - 2 * var(--zt-lado), var(--zt-max)); margin-inline: auto; }

.zt-ico { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== botones ===== */

.zt-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: var(--zt-texto-f);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.zt-boton:active { transform: translateY(1px) scale(0.99); }

.zt-boton--verde { background: var(--zt-verde); box-shadow: 0 10px 22px -14px rgba(42, 132, 69, 0.95); }
.zt-boton--verde:hover { background: var(--zt-verde-hover); }
.zt-boton--verde:active { background: var(--zt-verde-activo); }

.zt-boton--azul { background: var(--zt-azul); box-shadow: 0 10px 22px -14px rgba(47, 111, 214, 0.95); }
.zt-boton--azul:hover { background: var(--zt-azul-hover); }
.zt-boton--azul:active { background: var(--zt-azul-activo); }

.zt-boton--grande { min-height: 56px; padding: 0.85rem 2rem; font-size: 1.05rem; }
.zt-boton--ancho { width: 100%; }

/* ===== barra superior ===== */

.zt-barra {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--zt-barra);
  border-bottom: 1px solid var(--zt-borde);
}

.zt-barra__dentro {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: var(--zt-alto);
  width: min(100% - 2 * var(--zt-lado), var(--zt-max));
  margin-inline: auto;
}

.zt-marca {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  color: var(--zt-claro);
  font-family: var(--zt-titulo);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}
.zt-marca__uno { color: var(--zt-azul); margin-right: 0.02em; }

.zt-menu ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.zt-menu__a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 10px;
  color: var(--zt-claro);
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.zt-menu__a .zt-ico { color: var(--zt-tenue); }
.zt-menu__a:hover { background: var(--zt-placa-2); }
.zt-menu__a[aria-current="true"] { background: var(--zt-placa-2); color: var(--zt-oro); }
.zt-menu__a[aria-current="true"] .zt-ico { color: var(--zt-oro); }

.zt-barra__ctas { display: flex; gap: 0.6rem; margin-left: auto; }
.zt-barra__ctas .zt-boton { min-width: 168px; }

.zt-abrir {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--zt-borde);
  border-radius: 12px;
  background: var(--zt-placa);
  color: var(--zt-claro);
  cursor: pointer;
}
.zt-abrir:hover { background: var(--zt-placa-2); }

/* ===== hoja inferior (móvil) ===== */

.zt-fondo { position: fixed; inset: 0; z-index: 150; background: rgba(4, 6, 14, 0.7); }
.zt-fondo[hidden] { display: none; }

.zt-hoja {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  max-height: 86vh;
  max-height: 86dvh;
  padding: 0.6rem var(--zt-lado) calc(1.2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  background: var(--zt-barra);
  border-top: 1px solid var(--zt-borde);
  box-shadow: 0 -24px 50px -20px rgba(0, 0, 0, 0.85);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
}
.zt-hoja.zt-hoja--abierta { transform: none; visibility: visible; }
.zt-hoja__asa { width: 46px; height: 5px; margin: 0 auto 0.6rem; border-radius: 5px; background: var(--zt-borde); }
.zt-hoja__cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.zt-hoja__titulo { color: var(--zt-tenue); font-size: 0.92rem; font-weight: 600; }
.zt-hoja__cerrar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--zt-placa-2);
  color: var(--zt-claro);
  cursor: pointer;
}
.zt-hoja__lista { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.zt-hoja__lista a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  background: var(--zt-placa);
  border: 1px solid var(--zt-borde);
  color: var(--zt-claro);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.zt-hoja__lista a .zt-ico { color: var(--zt-oro); }
.zt-hoja__lista a:hover { background: var(--zt-placa-2); }
.zt-hoja__ctas { display: grid; gap: 0.6rem; }

/* ===== portada ===== */

.zt-portada { padding: clamp(2rem, 5vw, 4rem) 0 0.5rem; }

.zt-volver { margin: 0 0 1.2rem; }
.zt-volver a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--zt-placa);
  border: 1px solid var(--zt-borde);
  color: var(--zt-claro);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
.zt-volver a::before { content: "←"; color: var(--zt-oro); }
.zt-volver a:hover { background: var(--zt-placa-2); }

.zt-h1 {
  margin: 0 0 1.3rem;
  color: var(--zt-claro);
  font-family: var(--zt-titulo);
  font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.zt-portada__intro { max-width: 82ch; font-size: 1.07rem; }

.zt-portada__foto { margin: 1.6rem 0 0; overflow: hidden; border-radius: 20px; background: var(--zt-placa); }
.zt-portada__foto img { width: 100%; aspect-ratio: 16 / 6.5; object-fit: cover; object-position: 50% 30%; }

.zt-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.4rem; }

.zt-promo {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.7rem 1.7rem;
  border-radius: 20px;
  background: linear-gradient(140deg, var(--zt-violeta-a), var(--zt-violeta-b));
  border: 1px solid rgba(160, 140, 255, 0.35);
  isolation: isolate;
}
.zt-promo::before,
.zt-promo::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, var(--zt-oro) 45%, #b8851d 100%);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}
.zt-promo::before { top: 1.2rem; right: 1.6rem; width: 74px; height: 74px; }
.zt-promo::after { top: 5.4rem; right: 4.6rem; width: 40px; height: 40px; opacity: 0.85; }
.zt-promo--cripto { background: linear-gradient(140deg, #3a3f9e, #1f2461); }

.zt-promo__titulo { margin: 0 0 0.3rem; color: var(--zt-claro); font-family: var(--zt-titulo); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.zt-promo__cifra { margin: 0; color: var(--zt-claro); font-family: var(--zt-titulo); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-weight: 700; line-height: 1.05; }
.zt-promo__extra { margin: 0.2rem 0 1.3rem; color: rgba(246, 248, 254, 0.85); font-size: 1.02rem; }

.zt-portada--doc { padding-bottom: 0; }

/* ===== índice ===== */

.zt-indice { margin: clamp(2rem, 4vw, 3rem) 0 0.5rem; }
.zt-indice__titulo { margin: 0 0 1rem; color: var(--zt-claro); font-family: var(--zt-titulo); font-size: 1.15rem; font-weight: 600; }
.zt-indice__lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zt-indice__a {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  height: 100%;
  min-height: 56px;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--zt-placa);
  border: 1px solid var(--zt-borde);
  color: var(--zt-texto);
  font-size: 0.94rem;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.zt-indice__a:hover { border-color: var(--zt-azul); background: var(--zt-placa-2); color: var(--zt-claro); }
.zt-indice__n { flex-shrink: 0; color: var(--zt-oro); font-family: var(--zt-titulo); font-weight: 700; font-size: 0.86rem; padding-top: 0.08rem; }

/* ===== secciones ===== */

.zt-seccion {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2.2rem, 4.5vw, 3.4rem) 0;
  border-top: 1px solid var(--zt-borde);
}
.zt-indice + .zt-seccion { margin-top: clamp(1.5rem, 3vw, 2.4rem); }
.zt-seccion:last-child { padding-bottom: clamp(3rem, 6vw, 5rem); }

.zt-seccion__lado { position: sticky; top: calc(var(--zt-alto) + 24px); align-self: start; }
.zt-seccion__n {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  padding: 0 0.5rem;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--zt-violeta-a), var(--zt-violeta-b));
  color: var(--zt-oro);
  font-family: var(--zt-titulo);
  font-weight: 700;
}

.zt-h2 {
  margin: 0;
  color: var(--zt-claro);
  font-family: var(--zt-titulo);
  font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.zt-seccion__texto > :last-child,
.zt-parte > :last-child { margin-bottom: 0; }

.zt-parte { margin-top: 2rem; }
.zt-parte:first-child { margin-top: 0; }
.zt-h3 {
  margin: 0 0 0.8rem;
  color: var(--zt-claro);
  font-family: var(--zt-titulo);
  font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.32rem);
  font-weight: 600;
  line-height: 1.3;
}
.zt-h3::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 0.55rem; border-radius: 3px; background: var(--zt-azul); }

.zt-imagen { margin: 1.4rem 0; }
.zt-imagen img { width: 100%; aspect-ratio: 1100 / 600; object-fit: cover; border-radius: 16px; }

.zt-llamada { margin: 1.6rem 0 0.3rem; }

/* tablas */

.zt-tabla {
  margin: 1.2rem 0;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--zt-borde);
  background: var(--zt-placa);
  -webkit-overflow-scrolling: touch;
}
.zt-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.zt-tabla--amplia table { min-width: 560px; }
.zt-tabla thead tr { background: linear-gradient(100deg, var(--zt-violeta-a), var(--zt-violeta-b)); }
.zt-tabla thead th {
  padding: 0.85rem 1rem;
  color: var(--zt-claro);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}
.zt-tabla tbody th,
.zt-tabla tbody td,
.zt-tabla tfoot th,
.zt-tabla tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.zt-tabla tbody tr + tr > * { border-top: 1px solid var(--zt-borde); }
.zt-tabla tbody th { color: var(--zt-claro); font-weight: 600; }
.zt-tabla tbody tr:hover { background: rgba(47, 111, 214, 0.08); }
.zt-tabla tfoot { background: rgba(245, 196, 81, 0.12); }
.zt-tabla tfoot th,
.zt-tabla tfoot td { color: var(--zt-oro); font-weight: 700; border-top: 1px solid rgba(245, 196, 81, 0.4); }

/* listas */

.zt-puntos { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.zt-puntos li { position: relative; padding-left: 1.5rem; line-height: 1.55; }
.zt-puntos li::before { content: ""; position: absolute; top: 0.5em; left: 0.1rem; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--zt-oro); }

.zt-orden { margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: zt-paso; }
.zt-orden li {
  position: relative;
  padding: 0 0 1.1rem 3.2rem;
  counter-increment: zt-paso;
  line-height: 1.5;
}
.zt-orden li::before {
  content: counter(zt-paso);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--zt-azul);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}
.zt-orden li::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  bottom: 0.2rem;
  left: 0.97rem;
  width: 2px;
  background: var(--zt-borde);
}
.zt-orden li:last-child { padding-bottom: 0; }
.zt-orden li:last-child::after { display: none; }

/* preguntas */

.zt-preguntas { display: grid; gap: 0.6rem; }
.zt-pregunta { border-radius: 14px; background: var(--zt-placa); border: 1px solid var(--zt-borde); }
.zt-pregunta[open] { background: var(--zt-placa-2); border-color: rgba(160, 140, 255, 0.5); }
.zt-pregunta__q {
  position: relative;
  display: block;
  padding: 1rem 3.4rem 1rem 1.1rem;
  list-style: none;
  cursor: pointer;
}
.zt-pregunta__q::-webkit-details-marker { display: none; }
.zt-pregunta__q h3 { margin: 0; color: var(--zt-claro); font-family: var(--zt-titulo); font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.zt-pregunta__q::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--zt-azul);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.zt-pregunta[open] > .zt-pregunta__q::after { content: "–"; background: var(--zt-verde); }
.zt-pregunta > p { margin: 0; padding: 0 1.1rem 1.1rem; }

/* ===== pie ===== */

.zt-pie { padding: 2.4rem 0 1.6rem; background: linear-gradient(180deg, var(--zt-barra), #0d1226); border-top: 1px solid var(--zt-borde); }
.zt-pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.zt-pie__marca { display: flex; align-items: center; gap: 1rem; }
.zt-edad {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--zt-placa-2);
  color: var(--zt-oro);
  font-size: 0.88rem;
  font-weight: 700;
}
.zt-pie__enlaces { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.zt-pie__enlaces a { display: inline-block; padding: 0.45rem 0; color: var(--zt-texto); font-weight: 600; text-decoration: none; }
.zt-pie__enlaces a:hover { color: var(--zt-oro); text-decoration: underline; text-underline-offset: 4px; }
.zt-pie__nota { margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--zt-borde); color: var(--zt-tenue); font-size: 0.9rem; }

.zt-arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--zt-azul);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(47, 111, 214, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.zt-arriba.zt-arriba--ver { opacity: 1; visibility: visible; transform: none; }
.zt-arriba:hover { background: var(--zt-azul-hover); }

/* ===== adaptación ===== */

@media (max-width: 1260px) {
  .zt-barra__extra { display: none; }
  .zt-barra__ctas .zt-boton { min-width: 0; }
}

@media (max-width: 1100px) {
  .zt-menu { display: none; }
  .zt-abrir { display: grid; }
  .zt-barra__dentro { gap: 0.8rem; }
}

@media (max-width: 900px) {
  .zt-seccion { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .zt-seccion__lado { position: static; display: flex; align-items: center; gap: 0.9rem; }
  .zt-seccion__n { margin-bottom: 0; flex-shrink: 0; }
}

@media (max-width: 640px) {
  :root { --zt-alto: 66px; }
  body { font-size: 1rem; }
  .zt-marca { font-size: 1.7rem; }
  .zt-barra__ctas .zt-boton { min-height: 44px; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
  .zt-promos { grid-template-columns: minmax(0, 1fr); }
  .zt-portada__foto img { aspect-ratio: 4 / 3; }
  .zt-hoja__lista { grid-template-columns: minmax(0, 1fr); }
  .zt-llamada .zt-boton { width: 100%; }
}
