/* 1win-ecuador-app.com — carbón, azul real y un punto verde */

:root {
  --ax-negro: #141518;
  --ax-carbon: #1c1d21;
  --ax-panel: #24262b;
  --ax-panel-alto: #2d3036;
  --ax-borde: #353840;
  --ax-texto: #e3e6ec;
  --ax-gris: #a2a7b2;
  --ax-blanco: #fbfcfe;

  --ax-azul: #2b68f0;
  --ax-azul-claro: #4a80ff;
  --ax-azul-oscuro: #1c50cf;
  --ax-azul-tenue: rgba(43, 104, 240, 0.16);
  --ax-azul-texto: #9cbcff;
  --ax-verde: #3fd06b;

  --ax-display: "Geologica", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ax-lectura: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;

  --ax-max: 1240px;
  --ax-columna: 860px;
  --ax-margen: clamp(1rem, 4vw, 2.5rem);
  --ax-barra: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ax-barra) + 18px);
  -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(--ax-negro);
  color: var(--ax-texto);
  font-family: var(--ax-lectura);
  font-size: 1.0625rem;
  line-height: 1.7;
}

body.ax-fijo { overflow: hidden; }

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

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

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

.ax-ancho { width: min(100% - 2 * var(--ax-margen), var(--ax-max)); margin-inline: auto; }

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

.ax-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 10px;
  font-family: var(--ax-lectura);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ax-boton--azul { background: var(--ax-azul); color: #fff; }
.ax-boton--azul:hover { background: var(--ax-azul-claro); box-shadow: 0 10px 24px -12px rgba(74, 128, 255, 0.95); }
.ax-boton--azul:active { background: var(--ax-azul-oscuro); box-shadow: none; }

.ax-boton--suave { background: var(--ax-azul-tenue); color: var(--ax-azul-texto); box-shadow: inset 0 0 0 1px rgba(74, 128, 255, 0.45); }
.ax-boton--suave:hover { background: rgba(43, 104, 240, 0.28); color: #fff; }
.ax-boton--suave:active { background: rgba(43, 104, 240, 0.4); }

.ax-boton--grande { min-height: 58px; font-size: 1.08rem; }

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

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

.ax-barra__linea {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--ax-barra);
  width: min(100% - 2 * var(--ax-margen), var(--ax-max));
  margin-inline: auto;
}

.ax-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.ax-menu:hover { background: var(--ax-panel); }
.ax-menu__raya { display: block; height: 2.5px; border-radius: 2px; background: var(--ax-gris); }
.ax-menu:hover .ax-menu__raya { background: var(--ax-blanco); }

.ax-marca { display: inline-flex; align-items: baseline; gap: 0.35rem; color: var(--ax-blanco); text-decoration: none; }
.ax-marca__nombre { font-family: var(--ax-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ax-marca__punto { width: 9px; height: 9px; border-radius: 50%; background: var(--ax-verde); transform: translateY(-14px); }
.ax-marca__pais { color: var(--ax-gris); font-size: 0.9rem; font-weight: 600; }

.ax-barra__botones { display: flex; justify-content: center; gap: 0.6rem; padding-right: 6rem; }
.ax-barra__botones .ax-boton { min-width: 180px; }

/* ===== cajón lateral ===== */

.ax-velo { position: fixed; inset: 0; z-index: 150; background: rgba(6, 7, 9, 0.66); }
.ax-velo[hidden] { display: none; }

.ax-cajon {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  padding: 1rem 1.1rem 1.4rem;
  overflow-y: auto;
  background: var(--ax-carbon);
  border-right: 1px solid var(--ax-borde);
  box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.ax-cajon.ax-cajon--abierto { transform: none; visibility: visible; }

.ax-cajon__cabeza { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 0.6rem; }
.ax-cajon__titulo { color: var(--ax-gris); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }
.ax-cajon__cerrar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--ax-panel);
  color: var(--ax-blanco);
  cursor: pointer;
}
.ax-cajon__cerrar:hover { background: var(--ax-panel-alto); }

.ax-cajon__lista { margin: 0; padding: 0; list-style: none; }
.ax-cajon__lista a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--ax-texto);
  font-size: 0.98rem;
  line-height: 1.35;
  text-decoration: none;
}
.ax-cajon__lista a:hover { background: var(--ax-panel); color: var(--ax-blanco); }
.ax-cajon__lista a[aria-current="true"] { background: var(--ax-azul-tenue); color: var(--ax-azul-texto); }

.ax-cajon__botones { display: grid; gap: 0.6rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--ax-borde); }

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

.ax-portada {
  padding: clamp(2rem, 5vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--ax-carbon);
}

.ax-portada__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.ax-volver { margin: 0 0 1rem; }
.ax-volver a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--ax-panel);
  color: var(--ax-texto);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}
.ax-volver a::before { content: "‹"; font-size: 1.3rem; line-height: 1; color: var(--ax-azul-texto); }
.ax-volver a:hover { background: var(--ax-panel-alto); color: var(--ax-blanco); }

.ax-h1 {
  margin: 0 0 1.1rem;
  color: var(--ax-blanco);
  font-family: var(--ax-display);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ax-portada__lead { color: var(--ax-texto); font-size: 1.08rem; }

.ax-oferta {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 1.6rem 0 1.4rem;
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(43, 104, 240, 0.2), rgba(63, 208, 107, 0.08));
  border: 1px solid rgba(74, 128, 255, 0.35);
  text-align: center;
}
.ax-oferta__rotulo { color: var(--ax-gris); font-size: 1rem; font-weight: 500; }
.ax-oferta__valor { color: var(--ax-blanco); font-family: var(--ax-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.2; }

.ax-portada__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.ax-portada__foto { position: relative; margin: 0; }
.ax-portada__foto::after {
  content: "";
  position: absolute;
  inset: auto 10% -14px 10%;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 104, 240, 0.55), transparent);
  filter: blur(6px);
  z-index: 0;
}
.ax-portada__foto img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1400 / 764;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--ax-borde);
}

.ax-portada--doc { padding-bottom: 2rem; }
.ax-portada__doc { max-width: var(--ax-columna); }

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

.ax-indice {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0.9rem 1rem 0.9rem 1.6rem;
  border-radius: 16px;
  background: var(--ax-carbon);
  border: 1px solid var(--ax-borde);
}
.ax-indice__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; }
.ax-indice__titulo { margin: 0; color: var(--ax-blanco); font-family: var(--ax-display); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 600; }
.ax-indice__alternar {
  min-height: 46px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ax-blanco);
  font-family: var(--ax-lectura);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.ax-indice__alternar:hover { background: var(--ax-panel); }

.ax-indice__lista {
  columns: 3 240px;
  column-gap: 2rem;
  margin: 0.6rem 0 0.6rem;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--ax-borde);
  list-style: none;
  counter-reset: ax-ind;
}
.ax-indice__lista[hidden] { display: none; }
.ax-indice__lista li { break-inside: avoid; counter-increment: ax-ind; }
.ax-indice__lista a {
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0;
  color: var(--ax-texto);
  font-size: 0.96rem;
  line-height: 1.4;
  text-decoration: none;
}
.ax-indice__lista a::before { content: counter(ax-ind) "."; min-width: 1.6rem; color: var(--ax-azul-texto); font-weight: 600; }
.ax-indice__lista a:hover { color: var(--ax-blanco); text-decoration: underline; text-underline-offset: 3px; }

/* ===== columna de lectura ===== */

.ax-columna {
  max-width: var(--ax-columna);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
  counter-reset: ax-sec;
}

.ax-seccion {
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-top: 1px solid var(--ax-borde);
  counter-increment: ax-sec;
}
.ax-seccion:first-child { border-top: 0; padding-top: 0; }
.ax-seccion > :last-child { margin-bottom: 0; }

.ax-h2 {
  position: relative;
  margin: 0 0 1.1rem;
  padding-left: 3.4rem;
  color: var(--ax-blanco);
  font-family: var(--ax-display);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ax-h2::before {
  content: counter(ax-sec, decimal-leading-zero);
  position: absolute;
  top: 0.12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--ax-azul);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ax-bloque { margin-top: 2rem; }
.ax-bloque > :last-child { margin-bottom: 0; }

.ax-h3 {
  margin: 0 0 0.8rem;
  color: var(--ax-blanco);
  font-family: var(--ax-display);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.38rem);
  font-weight: 600;
  line-height: 1.3;
}
.ax-h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.6rem; border-radius: 50%; background: var(--ax-verde); vertical-align: 0.18em; }

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

.ax-llamado { margin: 1.6rem 0 0.2rem; }
.ax-llamado .ax-boton { min-width: min(100%, 320px); }

/* ===== tablas ===== */

.ax-tabla {
  margin: 1.3rem 0;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--ax-borde);
  background: var(--ax-carbon);
  -webkit-overflow-scrolling: touch;
}
.ax-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.ax-tabla--ancha table { min-width: 560px; }

.ax-tabla thead th {
  padding: 0.85rem 1rem;
  background: var(--ax-panel);
  color: var(--ax-gris);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid var(--ax-azul);
}

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

.ax-tabla tbody tr + tr > * { border-top: 1px solid var(--ax-borde); }
.ax-tabla tbody th { color: var(--ax-blanco); font-weight: 600; }
.ax-tabla tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.ax-tabla tfoot { background: var(--ax-azul-tenue); }
.ax-tabla tfoot th,
.ax-tabla tfoot td { color: var(--ax-blanco); font-weight: 700; border-top: 1px solid rgba(74, 128, 255, 0.5); }

/* ===== listas ===== */

.ax-vinetas { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.ax-vinetas li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.ax-vinetas li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.2rem;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--ax-azul-claro);
}

.ax-numerada { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: ax-num; }
.ax-numerada li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 3.3rem;
  border-radius: 12px;
  background: var(--ax-carbon);
  border: 1px solid var(--ax-borde);
  counter-increment: ax-num;
  line-height: 1.5;
}
.ax-numerada li::before {
  content: counter(ax-num);
  position: absolute;
  top: 0.7rem;
  left: 0.9rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ax-azul-claro);
  color: var(--ax-blanco);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== dudas ===== */

.ax-dudas { display: grid; gap: 0.6rem; margin-top: 0.4rem; }

.ax-duda { border-radius: 12px; background: var(--ax-carbon); border: 1px solid var(--ax-borde); }
.ax-duda[open] { border-color: var(--ax-azul); }

.ax-duda__pregunta {
  position: relative;
  display: block;
  padding: 1rem 3.4rem 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.ax-duda__pregunta::-webkit-details-marker { display: none; }
.ax-duda__pregunta h3 { margin: 0; color: var(--ax-blanco); font-family: var(--ax-display); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.ax-duda__pregunta::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.2rem;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2.5px solid var(--ax-azul-texto);
  border-bottom: 2.5px solid var(--ax-azul-texto);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}
.ax-duda[open] > .ax-duda__pregunta::after { transform: rotate(-135deg); margin-top: -2px; }
.ax-duda__pregunta:hover h3 { color: var(--ax-azul-texto); }
.ax-duda__respuesta { padding: 0 1.1rem 1.1rem; }
.ax-duda__respuesta p { margin: 0; }

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

.ax-pie { padding: 2.4rem 0 1.6rem; background: var(--ax-carbon); border-top: 1px solid var(--ax-borde); }
.ax-pie__rejilla { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.ax-pie__marca { display: flex; align-items: center; gap: 1rem; }
.ax-mayores {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 2px solid var(--ax-gris);
  color: var(--ax-gris);
  font-size: 0.88rem;
  font-weight: 700;
}
.ax-pie__enlaces { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.ax-pie__enlaces a { display: inline-block; padding: 0.45rem 0; color: var(--ax-texto); font-weight: 500; text-decoration: none; }
.ax-pie__enlaces a:hover { color: var(--ax-azul-texto); text-decoration: underline; text-underline-offset: 4px; }
.ax-pie__nota { margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--ax-borde); color: var(--ax-gris); font-size: 0.9rem; }

.ax-arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--ax-panel-alto);
  color: var(--ax-blanco);
  box-shadow: 0 0 0 1px var(--ax-borde), 0 14px 26px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.ax-arriba.ax-arriba--visible { opacity: 1; visibility: visible; transform: none; }
.ax-arriba:hover { background: var(--ax-azul); }

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

@media (max-width: 1100px) {
  .ax-barra__botones { justify-content: flex-end; padding-right: 0; }
  .ax-barra__botones .ax-boton { min-width: 0; }
}

@media (max-width: 960px) {
  .ax-portada__rejilla { grid-template-columns: minmax(0, 1fr); }
  .ax-portada__foto { order: -1; }
}

@media (max-width: 720px) {
  .ax-barra__segundo { display: none; }
}

@media (max-width: 560px) {
  :root { --ax-barra: 66px; }
  body { font-size: 1rem; }
  .ax-barra__linea { gap: 0.5rem; }
  .ax-marca__pais { display: none; }
  .ax-marca__nombre { font-size: 1.6rem; }
  .ax-barra__botones .ax-boton { min-height: 44px; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
  .ax-portada__botones { grid-template-columns: minmax(0, 1fr); }
  .ax-h2 { padding-left: 0; }
  .ax-h2::before { position: static; display: grid; margin-bottom: 0.7rem; }
  .ax-indice { padding-left: 1.1rem; }
  .ax-llamado .ax-boton { width: 100%; }
}
