/* 1win-ecuador-apuestas.com — gris grafito, verde cancha y amarillo marcador */

:root {
  --ap-fondo: #1b1c1f;
  --ap-fondo-2: #222327;
  --ap-placa: #2a2c31;
  --ap-placa-2: #33363c;
  --ap-borde: #3c3f46;
  --ap-texto: #dcdfe5;
  --ap-gris: #a5a9b3;
  --ap-blanco: #fafafa;

  --ap-verde: #2fc15d;
  --ap-verde-luz: #4fd879;
  --ap-verde-osc: #24a14c;
  --ap-sobre-verde: #03200d;
  --ap-amarillo: #ffcc2f;
  --ap-amarillo-luz: #ffd95c;
  --ap-amarillo-osc: #e6b100;
  --ap-sobre-amarillo: #2a1e00;

  --ap-t: "Red Hat Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ap-c: "Karla", "Segoe UI", Roboto, Arial, sans-serif;

  --ap-max: 1220px;
  --ap-texto-max: 880px;
  --ap-pad: clamp(1rem, 4vw, 2.5rem);
  --ap-fila: 68px;
  --ap-menu: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ap-fila) + var(--ap-menu) + 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(--ap-fondo);
  color: var(--ap-texto);
  font-family: var(--ap-c);
  font-size: 1.075rem;
  line-height: 1.7;
}

body.ap-quieto { overflow: hidden; }

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

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

.ap-saltar {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 500;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--ap-amarillo);
  color: var(--ap-sobre-amarillo);
  font-weight: 700;
  text-decoration: none;
}
.ap-saltar:focus { top: 12px; }

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

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

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border: 0;
  border-radius: 6px;
  font-family: var(--ap-t);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ap-btn:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.22); }

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

.ap-btn--amarillo { background: var(--ap-amarillo); color: var(--ap-sobre-amarillo); }
.ap-btn--amarillo:hover { background: var(--ap-amarillo-luz); }
.ap-btn--amarillo:active { background: var(--ap-amarillo-osc); }

.ap-btn--xl { min-height: 56px; padding: 0.85rem 1.9rem; font-size: 1.04rem; }

/* ---------- cabecera de dos filas ---------- */

.ap-cab {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #141518;
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.95);
}

.ap-cab__fila {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--ap-fila);
  width: min(100% - 2 * var(--ap-pad), var(--ap-max));
  margin-inline: auto;
}

.ap-marca { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ap-blanco); text-decoration: none; }
.ap-marca__dado {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--ap-verde);
  color: var(--ap-sobre-verde);
  font-family: var(--ap-t);
  font-size: 1.35rem;
  font-weight: 900;
  transform: rotate(-6deg);
}
.ap-marca__txt { display: flex; flex-direction: column; font-family: var(--ap-t); font-size: 1.55rem; font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; }
.ap-marca__txt em { color: var(--ap-amarillo); font-size: 0.66rem; font-style: normal; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }

.ap-cab__ctas { display: flex; gap: 0.5rem; margin-left: auto; }

.ap-abrir {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ap-placa);
  cursor: pointer;
}
.ap-abrir span { display: block; height: 3px; border-radius: 2px; background: var(--ap-blanco); }
.ap-abrir span:nth-child(2) { width: 70%; background: var(--ap-amarillo); }
.ap-abrir:hover { background: var(--ap-placa-2); }

.ap-menu { background: var(--ap-fondo-2); border-top: 1px solid var(--ap-borde); border-bottom: 1px solid var(--ap-borde); }
.ap-menu__lista {
  display: flex;
  gap: 0.2rem;
  width: min(100% - 2 * var(--ap-pad), var(--ap-max));
  height: var(--ap-menu);
  margin: 0 auto;
  padding: 0;
  overflow-x: auto;
  align-items: stretch;
  list-style: none;
  scrollbar-width: none;
}
.ap-menu__lista::-webkit-scrollbar { display: none; }
.ap-menu__a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.95rem;
  color: var(--ap-gris);
  font-family: var(--ap-t);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease;
}
.ap-menu__a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ap-verde);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}
.ap-menu__a:hover { color: var(--ap-blanco); }
.ap-menu__a[aria-current="true"] { color: var(--ap-blanco); }
.ap-menu__a[aria-current="true"]::after,
.ap-menu__a:hover::after { transform: scaleX(1); }

/* cajón lateral derecho */

.ap-sombra { position: fixed; inset: 0; z-index: 150; background: rgba(8, 8, 10, 0.7); }
.ap-sombra[hidden] { display: none; }

.ap-cajon {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  padding: 0.8rem 1.1rem 1.4rem;
  overflow-y: auto;
  background: var(--ap-fondo-2);
  border-left: 4px solid var(--ap-verde);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}
.ap-cajon.ap-cajon--ver { transform: none; visibility: visible; }
.ap-cajon__cab { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 0.5rem; }
.ap-cajon__t { color: var(--ap-amarillo); font-family: var(--ap-t); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ap-cajon__x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--ap-placa);
  color: var(--ap-blanco);
  cursor: pointer;
}
.ap-cajon__lista { margin: 0; padding: 0; list-style: none; }
.ap-cajon__lista a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 0.6rem;
  border-bottom: 1px solid var(--ap-borde);
  color: var(--ap-blanco);
  font-family: var(--ap-t);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.ap-cajon__lista a::before { content: "›"; margin-right: 0.7rem; color: var(--ap-verde); font-size: 1.4rem; line-height: 1; }
.ap-cajon__lista a:hover { background: var(--ap-placa); }
.ap-cajon__ctas { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1.4rem; }

/* ---------- héroe a sangre ---------- */

.ap-heroe {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 72vh, 700px);
  overflow: hidden;
  isolation: isolate;
}
.ap-heroe__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}
.ap-heroe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 21, 24, 0.96) 0%, rgba(20, 21, 24, 0.86) 38%, rgba(20, 21, 24, 0.25) 70%, rgba(20, 21, 24, 0.1) 100%),
    linear-gradient(0deg, var(--ap-fondo) 0%, transparent 28%);
}
.ap-heroe__in { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ap-heroe__caja { max-width: 620px; }

.ap-volver { margin: 0 0 1rem; }
.ap-volver a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 6px;
  background: rgba(42, 44, 49, 0.9);
  border: 1px solid var(--ap-borde);
  color: var(--ap-blanco);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}
.ap-volver a::before { content: "←"; color: var(--ap-verde); }
.ap-volver a:hover { border-color: var(--ap-verde); }

.ap-h1 {
  margin: 0 0 1rem;
  color: var(--ap-blanco);
  font-family: var(--ap-t);
  font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ap-h1::before { content: ""; display: block; width: 64px; height: 6px; margin-bottom: 1rem; border-radius: 3px; background: linear-gradient(90deg, var(--ap-verde) 50%, var(--ap-amarillo) 50%); }
.ap-heroe__caja p { color: var(--ap-texto); }
.ap-heroe__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.ap-datos {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.8rem;
  margin: -2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.ap-dato {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--ap-placa);
  border: 1px solid var(--ap-borde);
  border-top: 4px solid var(--ap-gris);
}
.ap-dato--verde { border-top-color: var(--ap-verde); }
.ap-dato--amarillo { border-top-color: var(--ap-amarillo); }
.ap-dato__k { color: var(--ap-gris); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ap-dato__v { color: var(--ap-blanco); font-family: var(--ap-t); font-size: 1.12rem; font-weight: 800; line-height: 1.3; }

.ap-heroe--doc { min-height: 0; display: block; padding: clamp(2.2rem, 5vw, 3.6rem) 0 1rem; background: linear-gradient(180deg, #141518, var(--ap-fondo)); }

/* ---------- índice ---------- */

.ap-indice {
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  border-radius: 10px;
  background: var(--ap-placa);
  border: 1px solid var(--ap-borde);
}
.ap-indice__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 0.8rem 1.2rem;
  list-style: none;
  cursor: pointer;
}
.ap-indice__sum::-webkit-details-marker { display: none; }
.ap-indice__t { color: var(--ap-blanco); font-family: var(--ap-t); font-size: 1.2rem; font-weight: 800; }
.ap-indice__n { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ap-gris); font-size: 0.92rem; font-weight: 600; }
.ap-indice__n::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--ap-amarillo);
  border-bottom: 3px solid var(--ap-amarillo);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.ap-indice[open] .ap-indice__n::after { transform: rotate(-135deg) translateY(-3px); }
.ap-indice__l {
  columns: 2 260px;
  column-gap: 2rem;
  margin: 0;
  padding: 0.4rem 1.2rem 1.2rem 2.6rem;
  border-top: 1px solid var(--ap-borde);
}
.ap-indice__l li { break-inside: avoid; padding: 0.2rem 0; }
.ap-indice__l li::marker { color: var(--ap-verde); font-weight: 700; }
.ap-indice__l a { color: var(--ap-texto); font-size: 0.97rem; text-decoration: none; }
.ap-indice__l a:hover { color: var(--ap-amarillo); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- secciones en franjas ---------- */

.ap-secciones { padding: clamp(1.6rem, 3vw, 2.4rem) 0 0; }

.ap-sec { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.ap-sec--franja { background: var(--ap-fondo-2); border-top: 1px solid var(--ap-borde); border-bottom: 1px solid var(--ap-borde); }
.ap-sec .ap-ancho > :last-child,
.ap-bloque > :last-child { margin-bottom: 0; }

.ap-h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin: 0 0 1.1rem;
  color: var(--ap-blanco);
  font-family: var(--ap-t);
  font-size: clamp(1.55rem, 1.2rem + 1.35vw, 2.3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ap-h2::before { content: ""; flex-shrink: 0; width: 8px; align-self: stretch; min-height: 1.1em; border-radius: 4px; background: var(--ap-verde); }
.ap-sec--franja .ap-h2::before { background: var(--ap-amarillo); }

.ap-bloque { margin-top: 1.8rem; }
.ap-h3 {
  margin: 0 0 0.75rem;
  color: var(--ap-blanco);
  font-family: var(--ap-t);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.38rem);
  font-weight: 800;
  line-height: 1.3;
}
.ap-h3::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 0.45rem; background: var(--ap-amarillo); }

.ap-img { margin: 1.4rem 0; }
.ap-img img { width: 100%; aspect-ratio: 1100 / 600; object-fit: cover; border-radius: 10px; border: 1px solid var(--ap-borde); }

.ap-llamar { margin: 1.5rem 0 0.4rem; }

/* tablas */

.ap-tbl {
  margin: 1.2rem 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--ap-borde);
  background: var(--ap-placa);
  -webkit-overflow-scrolling: touch;
}
.ap-tbl table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.ap-tbl--ancha table { min-width: 580px; }
.ap-tbl thead th {
  padding: 0.85rem 1rem;
  background: #17181b;
  color: var(--ap-amarillo);
  font-family: var(--ap-t);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.ap-tbl tbody th,
.ap-tbl tbody td,
.ap-tbl tfoot th,
.ap-tbl tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.ap-tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.ap-tbl tbody tr + tr > * { border-top: 1px solid var(--ap-borde); }
.ap-tbl tbody th { color: var(--ap-blanco); font-weight: 700; }
.ap-tbl tbody tr:hover { background: rgba(47, 193, 93, 0.08); }
.ap-tbl tfoot { background: var(--ap-verde); }
.ap-tbl tfoot th,
.ap-tbl tfoot td { color: var(--ap-sobre-verde); font-weight: 800; }

/* listas */

.ap-lista { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ap-lista li { position: relative; padding-left: 1.7rem; line-height: 1.55; }
.ap-lista li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 3px solid var(--ap-verde);
}

.ap-pasos { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: ap-p; }
.ap-pasos li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: var(--ap-placa);
  border-left: 4px solid var(--ap-amarillo);
  counter-increment: ap-p;
  line-height: 1.5;
}
.ap-sec--franja .ap-pasos li { background: var(--ap-placa-2); }
.ap-pasos li::before {
  content: counter(ap-p, decimal-leading-zero);
  color: var(--ap-amarillo);
  font-family: var(--ap-t);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

/* preguntas */

.ap-faq { display: grid; gap: 0.6rem; }
.ap-faq__it { border-radius: 10px; background: var(--ap-placa); border: 1px solid var(--ap-borde); }
.ap-faq__it[open] { border-color: var(--ap-verde); }
.ap-faq__it summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0.9rem 1.1rem;
  list-style: none;
  cursor: pointer;
}
.ap-faq__it summary::-webkit-details-marker { display: none; }
.ap-faq__q { margin: 0; color: var(--ap-blanco); font-family: var(--ap-t); font-size: 1.04rem; font-weight: 800; line-height: 1.4; }
.ap-faq__ico {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--ap-amarillo);
}
.ap-faq__ico::before,
.ap-faq__ico::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 3px;
  background: var(--ap-sobre-amarillo);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.ap-faq__ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.ap-faq__it[open] .ap-faq__ico { background: var(--ap-verde); }
.ap-faq__it[open] .ap-faq__ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.ap-faq__it summary:hover .ap-faq__q { color: var(--ap-amarillo); }
.ap-faq__a { padding: 0 1.1rem 1.1rem; }
.ap-faq__a p { margin: 0; }

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

.ap-pie { margin-top: clamp(1rem, 3vw, 2rem); padding: 2.4rem 0 1.6rem; background: #141518; border-top: 4px solid var(--ap-verde); }
.ap-pie__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--ap-borde); }
.ap-pie__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ap-pie__bajo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.2rem; }
.ap-pie__nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.6rem; }
.ap-pie__nav a { display: inline-block; padding: 0.45rem 0; color: var(--ap-texto); font-weight: 600; text-decoration: none; }
.ap-pie__nav a:hover { color: var(--ap-amarillo); text-decoration: underline; text-underline-offset: 4px; }
.ap-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 0; color: var(--ap-gris); font-size: 0.93rem; }
.ap-edad {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--ap-amarillo);
  color: var(--ap-amarillo);
  font-size: 0.82rem;
  font-weight: 800;
}
.ap-pie__copy { margin: 1.4rem 0 0; color: var(--ap-gris); font-size: 0.9rem; }

.ap-arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--ap-verde);
  color: var(--ap-sobre-verde);
  box-shadow: 0 12px 24px -12px 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;
}
.ap-arriba.ap-arriba--ver { opacity: 1; visibility: visible; transform: none; }
.ap-arriba:hover { background: var(--ap-verde-luz); }

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

@media (max-width: 960px) {
  :root { --ap-menu: 0px; }
  .ap-menu { display: none; }
  .ap-abrir { display: flex; }
  .ap-datos { grid-template-columns: minmax(0, 1fr); margin-top: -1.5rem; }
}

@media (max-width: 720px) {
  .ap-cab__alt { display: none; }
  .ap-heroe { min-height: 0; align-items: flex-end; padding-top: 220px; }
  .ap-heroe__fondo { height: 340px; object-position: 50% 25%; }
  .ap-heroe::before {
    background: linear-gradient(180deg, rgba(27, 28, 31, 0) 0, rgba(27, 28, 31, 0.55) 160px, var(--ap-fondo) 330px);
  }
  .ap-heroe__in { padding-top: 0; }
  .ap-heroe--doc { padding-top: 2rem; }
}

@media (max-width: 560px) {
  :root { --ap-fila: 62px; }
  body { font-size: 1rem; }
  .ap-marca__txt { font-size: 1.35rem; }
  .ap-cab__ctas .ap-btn { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.9rem; }
  .ap-heroe__ctas .ap-btn,
  .ap-llamar .ap-btn,
  .ap-pie__btns .ap-btn { width: 100%; }
  .ap-pie__btns { width: 100%; }
  .ap-indice__l { padding-left: 2.2rem; }
}
