/* cazaehipicavalverde.com — salón de juego: grafito azulado, azul eléctrico y verde esmeralda */

:root {
  --g-0: #0c0f14;
  --g-1: #101318;
  --g-2: #161a21;
  --g-3: #1c212a;
  --g-4: #252b36;
  --linea: rgba(150, 170, 210, 0.13);
  --linea-fuerte: rgba(150, 170, 210, 0.26);
  --texto: #e7ebf2;
  --gris: #9aa4b6;
  --azul: #3f86ff;
  --azul-hover: #5b98ff;
  --azul-hondo: #2563d9;
  --verde: #33c46e;
  --verde-hover: #46d881;
  --verde-hondo: #27a35a;
  --turquesa: #1e8f7c;
  --oro: #f2c14e;
  --blanco: #ffffff;
  --negro: #07090c;

  --f-tit: "Sora", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-txt: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --alto-barra: 66px;
  --ancho-lateral: 264px;
  --r: 16px;
}

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

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

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

body { margin: 0; background: var(--g-1); color: var(--texto); font-family: var(--f-txt); font-size: 1.02rem; line-height: 1.7; }
body.cv-sin-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
strong { color: var(--blanco); font-weight: 600; }

:focus-visible { outline: 2px solid var(--azul-hover); outline-offset: 3px; border-radius: 8px; }
section:focus { outline: none; }

.cv-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cv-saltar { position: absolute; top: -90px; left: 1rem; z-index: 999; padding: 0.7rem 1rem; border-radius: 10px; background: var(--verde); color: var(--negro); font-weight: 700; text-decoration: none; }
.cv-saltar:focus { top: 1rem; }

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

.cv-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  border: 0;
  border-radius: 12px;
  font-family: var(--f-txt);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.cv-boton:active { transform: translateY(1px); }
.cv-boton--verde { background: var(--verde); color: var(--negro); }
.cv-boton--verde:hover { background: var(--verde-hover); box-shadow: 0 8px 22px -10px rgba(51, 196, 110, 0.9); }
.cv-boton--verde:active { background: var(--verde-hondo); }
.cv-boton--azul { background: var(--g-4); color: var(--blanco); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.cv-boton--azul:hover { background: var(--azul); box-shadow: 0 8px 22px -10px rgba(63, 134, 255, 0.9); }
.cv-boton--azul:active { background: var(--azul-hondo); }
.cv-boton--xl { min-height: 52px; padding: 0.8rem 1.7rem; font-size: 1rem; }

/* ---------- barra superior ---------- */

.cv-barra { position: sticky; top: 0; z-index: 300; background: rgba(12, 15, 20, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.cv-barra__fila { display: flex; align-items: center; gap: 1rem; height: var(--alto-barra); padding: 0 clamp(0.9rem, 2.5vw, 1.8rem); }

.cv-logo { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blanco); text-decoration: none; flex-shrink: 0; }
.cv-logo__chip { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--azul), var(--verde)); color: var(--negro); font-family: var(--f-tit); font-size: 1rem; font-weight: 800; }
.cv-logo__txt { font-family: var(--f-tit); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.cv-logo__pais { padding: 0.05rem 0.4rem; border-radius: 6px; background: var(--g-4); color: var(--oro); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }

.cv-rapido { margin-left: 1rem; }
.cv-rapido ul { display: flex; gap: 0.2rem; margin: 0; padding: 0.25rem; list-style: none; border-radius: 14px; background: var(--g-2); border: 1px solid var(--linea); }
.cv-pildora { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.95rem; border-radius: 10px; color: var(--gris); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background-color 0.18s ease, color 0.18s ease; }
.cv-pildora:hover { color: var(--blanco); background: var(--g-3); }
.cv-pildora[aria-current="true"] { background: var(--azul); color: var(--blanco); }

.cv-barra__ctas { display: flex; gap: 0.6rem; margin-left: auto; }
.cv-barra__ctas .cv-boton { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.88rem; white-space: nowrap; }

.cv-hamb { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--g-3); color: var(--blanco); cursor: pointer; }
.cv-hamb__l { position: relative; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.cv-hamb__l::before,
.cv-hamb__l::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.cv-hamb__l::before { top: -6px; }
.cv-hamb__l::after { top: 6px; width: 11px; background: var(--verde); }

/* ---------- marco con lateral ---------- */

.cv-marco { display: grid; grid-template-columns: var(--ancho-lateral) minmax(0, 1fr); align-items: start; }
.cv-columna { min-width: 0; padding: clamp(1rem, 2.5vw, 1.8rem) clamp(0.9rem, 2.5vw, 1.8rem) 0; }
main { max-width: 1120px; }

.cv-lateral {
  position: sticky;
  top: var(--alto-barra);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--alto-barra));
  padding: 1rem 0.85rem 1.2rem;
  overflow-y: auto;
  background: var(--g-0);
  border-right: 1px solid var(--linea);
  scrollbar-width: thin;
  scrollbar-color: var(--g-4) transparent;
}
.cv-lateral__cab { display: none; }
.cv-lateral__lista { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.cv-lateral__a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  color: var(--texto);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.cv-lateral__a:hover { background: var(--g-3); }
.cv-lateral__a[aria-current="true"] { background: var(--g-3); box-shadow: inset 3px 0 0 var(--azul); }
.cv-lateral__ico { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--g-3); color: var(--azul-hover); font-size: 0.95rem; font-weight: 700; }
.cv-lateral__a[aria-current="true"] .cv-lateral__ico { background: var(--azul); color: var(--blanco); }
.cv-lateral__promo { margin-top: 1rem; padding: 1rem; border-radius: var(--r); background: linear-gradient(140deg, #22675c, #1a3b47); border: 1px solid var(--linea); }
.cv-lateral__promo-t { margin: 0 0 0.8rem; color: var(--blanco); font-family: var(--f-tit); font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.cv-lateral__promo .cv-boton { width: 100%; }

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

/* ---------- portada ---------- */

.cv-escaparate { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 1rem; }
.cv-escaparate__foto { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--linea); background: var(--g-2); }
.cv-escaparate__foto img { width: 100%; height: 100%; aspect-ratio: 1380 / 752; object-fit: cover; }
.cv-escaparate__lado { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.cv-tesela {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--linea);
  color: var(--blanco);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.cv-tesela::after { content: ""; position: absolute; top: -30px; right: -30px; width: 130px; height: 130px; border-radius: 30px; transform: rotate(25deg); background: rgba(255, 255, 255, 0.07); }
.cv-tesela:hover { transform: translateY(-2px); border-color: var(--linea-fuerte); }
.cv-tesela--verde { background: linear-gradient(150deg, #2a7f6c, #1a4a45 70%); }
.cv-tesela--azul { background: linear-gradient(150deg, #34507f, #1f2c45 70%); }
.cv-tesela__k { font-family: var(--f-tit); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1; }
.cv-tesela__t { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; font-weight: 500; line-height: 1.35; }

.cv-portada__texto { margin-top: clamp(1.4rem, 3vw, 2.2rem); padding: clamp(1.3rem, 3vw, 2.2rem); border-radius: 22px; background: var(--g-2); border: 1px solid var(--linea); }
.cv-portada h1 { margin: 0 0 1rem; color: var(--blanco); font-family: var(--f-tit); font-size: clamp(1.7rem, 1.15rem + 2.1vw, 2.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.cv-intro-lista { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.cv-intro-lista li { padding: 0.5rem 0.9rem 0.5rem 2rem; border-radius: 999px; background: var(--g-3); position: relative; font-size: 0.95rem; line-height: 1.4; }
.cv-intro-lista li::before { content: ""; position: absolute; left: 0.85rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 3px rgba(51, 196, 110, 0.25); }
.cv-portada__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- bloques ---------- */

.cv-bloque { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.cv-bloque__cab { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.cv-bloque__ico { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--g-3); border: 1px solid var(--linea-fuerte); color: var(--verde); font-size: 1.2rem; font-weight: 700; }
.cv-bloque__eti { display: block; color: var(--gris); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.cv-bloque__cab h2 { margin: 0.1rem 0 0; color: var(--blanco); font-family: var(--f-tit); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.cv-bloque__cuerpo { padding: clamp(1.2rem, 2.8vw, 1.9rem); border-radius: 22px; background: var(--g-2); border: 1px solid var(--linea); }
.cv-bloque__cuerpo > :last-child { margin-bottom: 0; }

.cv-fichas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.cv-fichas:first-child { margin-top: 0; }
.cv-fichas:last-child { margin-bottom: 0; }
.cv-ficha { min-width: 0; padding: 1.15rem 1.2rem; border-radius: var(--r); background: var(--g-3); border: 1px solid var(--linea); }
.cv-ficha--ancha { grid-column: 1 / -1; }
.cv-ficha h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.65rem; color: var(--blanco); font-family: var(--f-tit); font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.cv-ficha h3::before { content: ""; flex-shrink: 0; width: 6px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, var(--azul), var(--verde)); }
.cv-ficha > :last-child { margin-bottom: 0; }

.cv-impulso { margin: 1.4rem 0 0; }

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

.cv-numeros { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: cv-n; }
.cv-numeros li { position: relative; padding: 0.6rem 0.9rem 0.6rem 3rem; border-radius: 12px; background: var(--g-1); border: 1px solid var(--linea); counter-increment: cv-n; line-height: 1.45; }
.cv-numeros li::before { content: counter(cv-n); position: absolute; left: 0.65rem; top: 50%; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-top: -0.85rem; border-radius: 8px; background: var(--azul); color: var(--blanco); font-size: 0.85rem; font-weight: 700; }

.cv-tabla { margin: 0.9rem 0 1.1rem; overflow-x: auto; border-radius: 14px; border: 1px solid var(--linea-fuerte); background: var(--g-1); -webkit-overflow-scrolling: touch; }
.cv-tabla table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.cv-tabla--larga table { min-width: 540px; }
.cv-tabla thead th { padding: 0.75rem 0.95rem; background: var(--g-4); color: var(--gris); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
.cv-tabla tbody th,
.cv-tabla tbody td,
.cv-tabla tfoot th,
.cv-tabla tfoot td { padding: 0.68rem 0.95rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.cv-tabla tbody tr + tr > * { border-top: 1px solid var(--linea); }
.cv-tabla tbody th { color: var(--blanco); font-weight: 600; }
.cv-tabla tbody tr:hover { background: rgba(63, 134, 255, 0.07); }
.cv-tabla tfoot { background: linear-gradient(90deg, var(--verde), #2fb58f); }
.cv-tabla tfoot th,
.cv-tabla tfoot td { color: var(--negro); font-weight: 800; }

.cv-dudas { display: grid; gap: 0.6rem; }
.cv-dudas__item { border-radius: 14px; background: var(--g-3); border: 1px solid var(--linea); }
.cv-dudas__item[open] { border-color: var(--azul); }
.cv-dudas__item summary { display: flex; align-items: center; gap: 0.8rem; min-height: 58px; padding: 0.75rem 1rem; list-style: none; cursor: pointer; }
.cv-dudas__item summary::-webkit-details-marker { display: none; }
.cv-dudas__item summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border-radius: 9px; background: var(--g-4); color: var(--verde); font-size: 1.15rem; font-weight: 700; transition: transform 0.2s ease; }
.cv-dudas__item[open] summary::after { transform: rotate(45deg); }
.cv-dudas__n { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--azul); color: var(--blanco); font-size: 0.85rem; font-weight: 700; }
.cv-dudas__q { color: var(--blanco); font-family: var(--f-tit); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.cv-dudas__r { margin: 0; padding: 0 1rem 1rem calc(1rem + 30px + 0.8rem); }

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

.cv-pie { max-width: 1120px; margin-top: clamp(2rem, 4vw, 3rem); padding: 2rem 0 1.4rem; border-top: 1px solid var(--linea); }
.cv-pie__rej { display: grid; grid-template-columns: 1fr 1.8fr 1fr; gap: 1.6rem; align-items: start; }
.cv-pie__edad { display: flex; align-items: center; gap: 0.6rem; margin: 0.9rem 0 0; color: var(--gris); font-size: 0.9rem; }
.cv-edad { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--oro); color: var(--oro); font-size: 0.78rem; font-weight: 800; }
.cv-pie__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; margin: 0; padding: 0; list-style: none; }
.cv-pie__lista a { display: inline-flex; align-items: center; min-height: 38px; color: var(--gris); font-size: 0.92rem; text-decoration: none; }
.cv-pie__lista a:hover { color: var(--blanco); }
.cv-pie__ctas { display: grid; gap: 0.7rem; }
.cv-pie__copy { margin: 1.4rem 0 0; color: var(--gris); font-size: 0.85rem; }

.cv-subir { position: fixed; right: 1rem; bottom: 1rem; z-index: 250; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--azul); color: var(--blanco); font-size: 1.2rem; font-weight: 700; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.8); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.cv-subir.cv-subir--ver { opacity: 1; visibility: visible; }

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

@media (max-width: 1180px) {
  .cv-rapido { display: none; }
}

@media (max-width: 1060px) {
  .cv-hamb { display: grid; }
  .cv-marco { grid-template-columns: minmax(0, 1fr); }
  .cv-lateral {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 400;
    width: min(86vw, 330px);
    height: 100%;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }
  .cv-lateral.cv-lateral--abierto { transform: none; visibility: visible; }
  .cv-lateral__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .cv-lateral__cerrar { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--g-3); color: var(--blanco); font-size: 1.6rem; line-height: 1; cursor: pointer; }
}

@media (max-width: 860px) {
  .cv-escaparate { grid-template-columns: minmax(0, 1fr); }
  .cv-escaparate__lado { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cv-fichas { grid-template-columns: minmax(0, 1fr); }
  .cv-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --alto-barra: 60px; }
  .cv-barra__sec { display: none; }
  .cv-barra__reg { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .cv-logo__pais { display: none; }
  .cv-escaparate__lado { gap: 0.7rem; }
  .cv-tesela { padding: 0.9rem; border-radius: 16px; }
  .cv-tesela__k { font-size: 1.45rem; }
  .cv-tesela__t { font-size: 0.82rem; }
  .cv-portada__ctas .cv-boton,
  .cv-impulso .cv-boton { width: 100%; }
  .cv-bloque__cuerpo { padding: 1rem 0.9rem; border-radius: 18px; }
  .cv-ficha { padding: 1rem 0.9rem; }
  .cv-pie__lista { grid-template-columns: minmax(0, 1fr); }
  .cv-dudas__r { padding-left: 1rem; }
}
