/* 1win-official-ecuador.com — grafito, azul eléctrico y verde de registro */

:root {
  --nv-fondo: #111317;
  --nv-capa: #181b21;
  --nv-capa-2: #20242c;
  --nv-capa-3: #2a2f39;
  --nv-linea: #2c313b;
  --nv-texto: #d3d8e2;
  --nv-tenue: #9aa2b1;
  --nv-claro: #f5f7fa;

  --nv-azul: #3570ff;
  --nv-azul-luz: #5a8aff;
  --nv-azul-hondo: #2556d8;
  --nv-verde: #33c46c;
  --nv-verde-luz: #4fd884;
  --nv-verde-hondo: #24a556;
  --nv-sobre-verde: #062312;
  --nv-oro: #f1b544;

  --nv-titulos: "Familjen Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --nv-cuerpo: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --nv-ancho: 1220px;
  --nv-lado: clamp(1rem, 3.5vw, 2rem);
  --nv-alto: 72px;
  --nv-radio: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nv-alto) + 16px);
  -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(--nv-fondo);
  color: var(--nv-texto);
  font-family: var(--nv-cuerpo);
  font-size: 1.0625rem;
  line-height: 1.68;
}

body.nv-quieto { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: var(--nv-azul-luz); }

:focus-visible { outline: 3px solid var(--nv-azul-luz); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

.nv-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 300;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--nv-verde);
  color: var(--nv-sobre-verde);
  font-weight: 700;
  text-decoration: none;
}
.nv-salto:focus { top: 12px; }

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

/* ---------- botones ---------- */

.nv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  border: 0;
  border-radius: 16px;
  font-family: var(--nv-cuerpo);
  font-size: 0.98rem;
  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;
}
.nv-btn:active { transform: scale(0.98); }

.nv-btn--verde { background: var(--nv-verde); color: var(--nv-sobre-verde); }
.nv-btn--verde:hover { background: var(--nv-verde-luz); }
.nv-btn--verde:active { background: var(--nv-verde-hondo); }

.nv-btn--azul { background: var(--nv-azul); color: #fff; }
.nv-btn--azul:hover { background: var(--nv-azul-luz); }
.nv-btn--azul:active { background: var(--nv-azul-hondo); }

.nv-btn--oscuro { background: var(--nv-capa-3); color: var(--nv-claro); }
.nv-btn--oscuro:hover { background: #343a46; }
.nv-btn--oscuro:active { background: var(--nv-capa-2); }

.nv-btn--xl { min-height: 56px; padding: 0.85rem 1.9rem; font-size: 1.04rem; border-radius: 18px; }

.nv-cta-linea { margin: 1.6rem 0 0.4rem; }

/* ---------- cabecera ---------- */

.nv-cabecera {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 19, 23, 0.96);
  border-bottom: 1px solid var(--nv-linea);
}

.nv-cabecera__fila {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--nv-alto);
  width: min(100% - 2 * var(--nv-lado), 1360px);
  margin-inline: auto;
}

.nv-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: var(--nv-claro);
  text-decoration: none;
}

.nv-logo__w {
  font-family: var(--nv-titulos);
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.06em;
  line-height: 1;
}

.nv-logo__txt {
  padding-left: 0.6rem;
  border-left: 1px solid var(--nv-linea);
  color: var(--nv-tenue);
  font-size: 0.9rem;
  font-weight: 600;
}

.nv-grupo { margin-left: auto; }

.nv-grupo ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 18px;
  background: var(--nv-capa-2);
}

.nv-pastilla {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 14px;
  color: var(--nv-texto);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nv-pastilla:hover { background: var(--nv-capa-3); color: var(--nv-claro); }
.nv-pastilla[aria-current="true"] { background: var(--nv-azul); color: #fff; }

.nv-cabecera__ctas { display: flex; gap: 0.5rem; }
.nv-cabecera__ctas .nv-btn { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.94rem; }

.nv-hamburguesa {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: var(--nv-capa-3);
  cursor: pointer;
}
.nv-hamburguesa span { display: block; height: 2.5px; border-radius: 2px; background: var(--nv-claro); transition: transform 0.2s ease, opacity 0.2s ease; }
.nv-hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nv-hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nv-hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nv-desplegable {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--nv-alto));
  max-height: calc(100dvh - var(--nv-alto));
  padding: 0.8rem var(--nv-lado) 1.4rem;
  overflow-y: auto;
  background: var(--nv-capa);
  border-bottom: 1px solid var(--nv-linea);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
}
.nv-desplegable[hidden] { display: none; }
.nv-desplegable ul { display: grid; gap: 4px; margin: 0 0 1rem; padding: 0; list-style: none; }
.nv-desplegable ul a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 1rem;
  border-radius: 14px;
  background: var(--nv-capa-2);
  color: var(--nv-claro);
  font-weight: 600;
  text-decoration: none;
}
.nv-desplegable ul a:hover { background: var(--nv-azul); }
.nv-desplegable__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

/* ---------- héroe ---------- */

.nv-heroe { padding: clamp(1.2rem, 3vw, 2.2rem) 0 0; }

.nv-heroe__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.2rem, 3.5vw, 2.6rem);
  border-radius: 28px;
  background:
    radial-gradient(600px 360px at 0% 0%, rgba(53, 112, 255, 0.2), transparent 70%),
    linear-gradient(160deg, #1d2129, #15171c);
  border: 1px solid var(--nv-linea);
}

.nv-volver { margin: 0 0 0.9rem; }
.nv-volver a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 12px;
  background: var(--nv-capa-3);
  color: var(--nv-claro);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.nv-volver a::before { content: "←"; margin-right: 0.45rem; }
.nv-volver a:hover { background: var(--nv-azul); }

.nv-h1 {
  margin: 0 0 1rem;
  color: var(--nv-claro);
  font-family: var(--nv-titulos);
  font-size: clamp(2rem, 1.25rem + 2.8vw, 3.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.nv-heroe__texto p { color: var(--nv-texto); }
.nv-heroe__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.nv-heroe__foto { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.9); }
.nv-heroe__foto img { width: 100%; aspect-ratio: 1400 / 764; object-fit: cover; }

.nv-atajos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.nv-atajo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 128px;
  padding: 1.2rem 1.3rem;
  overflow: hidden;
  border-radius: var(--nv-radio);
  color: var(--nv-claro);
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.18s ease;
}
.nv-atajo:hover { transform: translateY(-3px); }
.nv-atajo::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(24deg);
}
.nv-atajo--verde { background: linear-gradient(135deg, #3f7a6c, #22403a); }
.nv-atajo--acero { background: linear-gradient(135deg, #546985, #283242); }
.nv-atajo--violeta { background: linear-gradient(135deg, #5c4bc2, #2a2463); }
.nv-atajo__titulo { font-family: var(--nv-titulos); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.nv-atajo__mas {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  font-weight: 600;
}

.nv-heroe--texto { padding: clamp(1.6rem, 4vw, 3rem) 0 0.5rem; }
.nv-heroe--texto .nv-marco { padding-bottom: clamp(1.4rem, 3vw, 2.2rem); border-bottom: 1px solid var(--nv-linea); }
.nv-heroe__intro { max-width: 75ch; color: var(--nv-texto); font-size: 1.08rem; }

.nv-migas ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.93rem; color: var(--nv-tenue); }
.nv-migas li + li::before { content: "/"; margin-right: 0.4rem; color: var(--nv-linea); }
.nv-migas a { display: inline-block; padding: 0.4rem 0; color: var(--nv-azul-luz); font-weight: 600; }

/* ---------- cuerpo con índice ---------- */

.nv-cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.nv-cuerpo__lateral { position: sticky; top: calc(var(--nv-alto) + 18px); }

.nv-indice {
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--nv-radio);
  background: var(--nv-capa);
  border: 1px solid var(--nv-linea);
}

.nv-indice__cabeza { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nv-indice__titulo { margin: 0; color: var(--nv-claro); font-family: var(--nv-titulos); font-size: 1.05rem; font-weight: 700; }
.nv-indice__boton { display: none; }

.nv-indice__lista {
  display: grid;
  gap: 2px;
  max-height: calc(100vh - var(--nv-alto) - 120px);
  margin: 0.8rem 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  counter-reset: nv-ind;
}

.nv-indice__lista li { counter-increment: nv-ind; }

.nv-indice__lista a {
  display: flex;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  color: var(--nv-tenue);
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nv-indice__lista a::before { content: counter(nv-ind, decimal-leading-zero); flex-shrink: 0; color: var(--nv-verde); font-weight: 700; font-size: 0.82rem; padding-top: 0.08rem; }
.nv-indice__lista a:hover { background: var(--nv-capa-2); color: var(--nv-claro); }
.nv-indice__lista a[aria-current="true"] { background: var(--nv-capa-3); color: var(--nv-claro); }

/* ---------- secciones de texto ---------- */

.nv-seccion {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 24px;
  background: var(--nv-capa);
  border: 1px solid var(--nv-linea);
}
.nv-seccion + .nv-seccion { margin-top: 1.2rem; }
.nv-seccion > :last-child,
.nv-sub > :last-child { margin-bottom: 0; }

.nv-h2 {
  margin: 0 0 1rem;
  color: var(--nv-claro);
  font-family: var(--nv-titulos);
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nv-h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--nv-azul), var(--nv-verde));
}

.nv-sub {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--nv-linea);
}

.nv-h3 {
  margin: 0 0 0.75rem;
  color: var(--nv-claro);
  font-family: var(--nv-titulos);
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
}

.nv-foto { margin: 1.4rem 0; border-radius: 18px; overflow: hidden; }
.nv-foto img { width: 100%; aspect-ratio: 1100 / 600; object-fit: cover; }

/* ---------- tablas ---------- */

.nv-tabla {
  margin: 1.2rem 0;
  overflow-x: auto;
  border-radius: 16px;
  background: var(--nv-capa-2);
  border: 1px solid var(--nv-linea);
  -webkit-overflow-scrolling: touch;
}
.nv-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.nv-tabla--ancha table { min-width: 560px; }

.nv-tabla thead th {
  padding: 0.8rem 1rem;
  background: var(--nv-capa-3);
  color: var(--nv-tenue);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.nv-tabla tbody th,
.nv-tabla tbody td,
.nv-tabla tfoot th,
.nv-tabla tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }

.nv-tabla tbody tr + tr > * { border-top: 1px solid var(--nv-linea); }
.nv-tabla tbody th { color: var(--nv-claro); font-weight: 600; }
.nv-tabla tbody tr:hover { background: rgba(53, 112, 255, 0.07); }
.nv-tabla tfoot { background: rgba(51, 196, 108, 0.14); }
.nv-tabla tfoot th,
.nv-tabla tfoot td { color: var(--nv-verde-luz); font-weight: 700; border-top: 1px solid rgba(51, 196, 108, 0.4); }

/* ---------- listas ---------- */

.nv-lista { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.nv-lista li { position: relative; padding-left: 1.5rem; line-height: 1.55; }
.nv-lista li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0.15rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--nv-verde);
  transform: rotate(45deg);
}

.nv-pasos { display: grid; gap: 0.6rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: nv-paso; }
.nv-pasos li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 3.2rem;
  border-radius: 14px;
  background: var(--nv-capa-2);
  counter-increment: nv-paso;
  line-height: 1.5;
}
.nv-pasos li::before {
  content: counter(nv-paso);
  position: absolute;
  top: 0.62rem;
  left: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9px;
  background: var(--nv-azul);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- preguntas ---------- */

.nv-seccion--faq { background: linear-gradient(180deg, rgba(53, 112, 255, 0.08), transparent 40%), var(--nv-capa); }

.nv-faq { display: grid; gap: 0.6rem; }
.nv-faq__item { border-radius: 16px; background: var(--nv-capa-2); border: 1px solid var(--nv-linea); }
.nv-faq__item:has([aria-expanded="true"]) { border-color: var(--nv-azul); }
.nv-faq__titulo { margin: 0; }

.nv-faq__boton {
  position: relative;
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 1rem 3.4rem 1rem 1.1rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--nv-claro);
  font-family: var(--nv-titulos);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.nv-faq__boton::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 10px;
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--nv-capa-3);
  transition: transform 0.2s ease;
}
.nv-faq__boton[aria-expanded="true"]::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--nv-azul);
}
.nv-faq__respuesta { padding: 0 1.1rem 1.1rem; }
.nv-faq__respuesta p { margin: 0; }

/* ---------- pie ---------- */

.nv-pie { padding: 2.4rem 0 1.8rem; background: #0b0d10; border-top: 1px solid var(--nv-linea); }

.nv-pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.nv-pie__marca { display: flex; align-items: center; gap: 0.9rem; }

.nv-edad {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--nv-oro);
  color: var(--nv-oro);
  font-size: 0.85rem;
  font-weight: 700;
}

.nv-pie__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.nv-pie__nav a { display: inline-block; padding: 0.45rem 0; color: var(--nv-texto); font-weight: 600; text-decoration: none; }
.nv-pie__nav a:hover { color: var(--nv-claro); text-decoration: underline; text-underline-offset: 4px; }

.nv-pie__copy { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--nv-linea); color: var(--nv-tenue); font-size: 0.9rem; }

.nv-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--nv-azul);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(53, 112, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nv-subir.nv-subir--ver { opacity: 1; visibility: visible; transform: none; }
.nv-subir:hover { background: var(--nv-azul-luz); }

/* ---------- adaptación ---------- */

@media (max-width: 1240px) {
  .nv-cabecera__extra { display: none; }
}

@media (max-width: 1120px) {
  .nv-grupo { display: none; }
  .nv-cabecera__ctas { margin-left: auto; }
  .nv-hamburguesa { display: flex; }
}

@media (max-width: 960px) {
  .nv-heroe__panel { grid-template-columns: minmax(0, 1fr); }
  .nv-heroe__foto { order: -1; }
  .nv-cuerpo { grid-template-columns: minmax(0, 1fr); padding-top: 1.4rem; }
  .nv-cuerpo__lateral { position: static; }
  .nv-indice__boton {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.95rem;
    border: 0;
    border-radius: 12px;
    background: var(--nv-capa-3);
    color: var(--nv-claro);
    font-family: var(--nv-cuerpo);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }
  .nv-indice__lista { display: none; max-height: none; }
  .nv-indice--abierto .nv-indice__lista { display: grid; }
}

@media (max-width: 700px) {
  .nv-atajos { grid-template-columns: minmax(0, 1fr); }
  .nv-atajo { min-height: 0; flex-direction: row; align-items: center; }
  .nv-atajo__titulo { font-size: 1.1rem; }
  .nv-atajo__mas { align-self: center; flex-shrink: 0; }
}

@media (max-width: 560px) {
  :root { --nv-alto: 64px; }
  body { font-size: 1rem; }
  .nv-logo__txt { display: none; }
  .nv-cabecera__ctas .nv-btn { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
  .nv-heroe__panel { padding: 0.75rem 0.75rem 1.3rem; border-radius: 22px; }
  .nv-heroe__texto { padding: 0 0.35rem; }
  .nv-heroe__ctas .nv-btn,
  .nv-cta-linea .nv-btn { width: 100%; }
  .nv-seccion { padding: 1.15rem; border-radius: 20px; }
  .nv-desplegable__ctas { grid-template-columns: minmax(0, 1fr); }
}
