/* ============ HERO ============ */
/* Crece si el contenido no cabe (pantallas anchas y bajas): antes el antetítulo se subía debajo del menú */
.hero { position: relative; display: flex; flex-direction: column; min-height: max(100svh, 660px); color: var(--white); background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 28, .6) 0%, rgba(8, 13, 28, .05) 32%, rgba(8, 13, 28, .2) 55%, rgba(8, 13, 28, .92) 100%),
    linear-gradient(90deg, rgba(8, 13, 28, .55), transparent 60%);
}
.hero__content { position: relative; z-index: 2; flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 120px 48px; }
.hero__title {
  font: 800 clamp(50px, min(10.4vw, 15.5svh), 190px)/.86 var(--f-display);
  letter-spacing: -.055em; margin-bottom: clamp(24px, 3vw, 40px);
  font-variation-settings: 'opsz' 96;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .line > span { display: block; }
.hero__title em { padding-right: .05em; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.hero__sub { max-width: 46ch; color: rgba(255, 255, 255, .8); font-size: clamp(16px, 1.3vw, 19px); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.badge { position: absolute; z-index: 3; right: var(--gutter); top: clamp(100px, 20vh, 200px); width: clamp(116px, 11vw, 168px); aspect-ratio: 1; }
.badge__ring { width: 100%; height: 100%; animation: girar 22s linear infinite; }
.badge__ring text { fill: var(--white); font: 600 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.badge__mark { position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; object-fit: contain; padding: 11%; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .55); transform: translate(-50%, -50%); }
@keyframes girar { to { transform: rotate(360deg); } }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--white), transparent); transform-origin: top; animation: gotear 2s var(--ease) infinite; }
@keyframes gotear { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .hero__scroll { display: none; } .badge { top: 96px; width: 96px; } }

/* ============ MARQUESINA ============ */
.marquee { background: var(--red); color: var(--white); padding-block: clamp(16px, 2.2vw, 30px); overflow: hidden; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: .42em; padding-right: .42em; white-space: nowrap; font: 800 clamp(44px, 7.4vw, 124px)/1 var(--f-display); letter-spacing: -.045em; }
.marquee__item:nth-child(even) { font: italic 400 clamp(48px, 8vw, 132px)/1 var(--f-serif); letter-spacing: -.01em; color: var(--ink); }
.marquee__tri { width: .34em; height: .3em; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 50% 100%); flex: none; }

/* ============ MANIFIESTO + CIFRAS ============ */
.manifiesto { padding-block: clamp(110px, 16vw, 240px) clamp(80px, 10vw, 150px); }
.manifiesto__texto { font: 600 clamp(30px, 4.7vw, 80px)/1.06 var(--f-display); letter-spacing: -.035em; max-width: 24ch; }
.manifiesto__texto .w { opacity: .13; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(80px, 11vw, 170px); }
.stat { border-top: 1px solid rgba(8, 13, 28, .16); padding-top: 26px; }
.stat__k { display: block; min-height: 1.4em; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.stat__n { display: flex; align-items: baseline; font: 800 clamp(64px, 7.6vw, 132px)/.9 var(--f-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin-block: 6px 16px; }
.stat__n small { font-size: .45em; color: var(--red); letter-spacing: -.02em; }
.stat__l { color: var(--muted-dark); max-width: 24ch; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ============ SEGUROS ============ */
.seguros { position: relative; background: var(--ink); color: var(--white); }
.seguros__pin { height: 100svh; min-height: 680px; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 4.5vh, 60px); overflow: hidden; padding-block: 90px 30px; }
.seguros__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; width: 100%; }
.seguros__intro { max-width: 380px; color: var(--muted); }
.lema { font: italic 400 clamp(22px, 2vw, 30px)/1.1 var(--f-serif); color: var(--yellow); margin-top: 14px; }
.seguros__track { display: flex; gap: 18px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.seguros__foot { display: flex; align-items: center; gap: 24px; width: 100%; padding-right: calc(var(--gutter) + 72px); }
.seguros__progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .12); }
.seguros__progress i { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); }
.seguros__hint { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.card-seg {
  --mx: 50%; --my: 50%;
  position: relative; flex: none; display: flex; flex-direction: column;
  width: clamp(270px, 25vw, 370px); height: clamp(360px, 48vh, 470px);
  padding: 28px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .6s var(--ease), box-shadow .6s;
}
.card-seg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 194, 14, .22), transparent 45%);
}
.card-seg:hover::before { opacity: 1; }
.card-seg:hover { background: #17203d; box-shadow: inset 0 0 0 1px rgba(255, 194, 14, .35); }
.card-seg__num { position: relative; font: 500 13px/1 var(--f-body); letter-spacing: .1em; color: var(--muted); }

/* Ilustración de cada seguro: el icono dentro de tres aros de "cobertura", con halo del color de la tarjeta.
   Los tintes alternan amarillo, rojo y azul de marca (aclarados para leerse sobre el fondo oscuro). */
.card-seg--t0 { --tinte: 255 194 14; }
.card-seg--t1 { --tinte: 255 110 98; }
.card-seg--t2 { --tinte: 104 172 255; }
.card-seg__arte { position: absolute; z-index: -1; top: -20px; right: -50px; width: clamp(200px, 17vw, 250px); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.card-seg__arte::before { content: ''; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--tinte) / .28), rgb(var(--tinte) / .07) 45%, transparent 68%); transition: transform .9s var(--ease); }
.card-seg__arte::after { content: ''; position: absolute; inset: -22%; background: radial-gradient(circle, rgb(255 255 255 / .1) 1px, transparent 1.6px) 0 0 / 14px 14px; -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%); mask-image: radial-gradient(circle, #000 18%, transparent 60%); }
.card-seg__aro { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgb(var(--tinte) / .16); transition: transform .9s var(--ease); }
.card-seg__aro:nth-child(2) { width: 72%; height: 72%; border-color: rgb(var(--tinte) / .28); transition-delay: .05s; }
.card-seg__aro:nth-child(3) { width: 46%; height: 46%; border-style: dashed; border-color: rgb(var(--tinte) / .5); transition-delay: .1s; }
/* Grosor en unidades del icono (24 u ≈ 85 px → .6 u ≈ 2 px). Sin vector-effect: con pathLength, Chrome calcula mal
   el discontinuo y dejaba iconos a medio dibujar. El discontinuo solo existe durante la animación del hover. */
.card-seg__ilus { position: relative; width: 36%; height: 36%; overflow: visible; fill: none; stroke: rgb(var(--tinte)); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgb(var(--tinte) / .45)); }
.card-seg:hover .card-seg__ilus * { stroke-dasharray: 1; animation: dibujar 1.3s var(--ease) both; }
.card-seg:hover .card-seg__aro { transform: scale(1.08); }
.card-seg:hover .card-seg__aro:nth-child(3) { transform: scale(1.2) rotate(45deg); }
.card-seg:hover .card-seg__arte::before { transform: scale(1.15); }
@keyframes dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.card-seg h3 { margin-top: auto; font: 700 clamp(30px, 2.6vw, 40px)/1 var(--f-display); letter-spacing: -.035em; }
.card-seg p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.card-seg__precio { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; color: var(--yellow); }
.card-seg__precio b { font: 800 56px/.9 var(--f-display); letter-spacing: -.05em; }

.card-seg--intro { background: transparent; box-shadow: none; justify-content: flex-end; width: clamp(240px, 20vw, 300px); }
.card-seg--intro b { font: 800 clamp(64px, 7vw, 110px)/.88 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .6); }
.card-seg--divider { background: var(--red); box-shadow: none; width: clamp(300px, 32vw, 480px); justify-content: space-between; }
.card-seg--divider:hover { background: var(--red-deep); }
/* "Zure enpresarentzat" es una sola palabra muy larga: el tamaño está pensado para que quepa en euskera */
.card-seg--divider b { display: block; font: 800 clamp(40px, 4vw, 60px)/.92 var(--f-display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.card-seg--divider p { color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 28ch; }
.card-seg--fin { background: var(--yellow); color: var(--ink); box-shadow: none; justify-content: space-between; }
.card-seg--fin:hover { background: #ffd24a; }
.card-seg--fin b { font: 800 clamp(44px, 4vw, 64px)/.92 var(--f-display); letter-spacing: -.05em; }
.card-seg--fin p { color: var(--muted-dark); font-size: 17px; }

@media (max-width: 900px) {
  .seguros__pin { height: auto; min-height: 0; padding-block: 110px 60px; }
  .seguros__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .seguros__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .seguros__track::-webkit-scrollbar { display: none; }
  .card-seg { scroll-snap-align: center; width: 78vw; height: 400px; }
  .card-seg--intro { display: none; }
  .seguros__foot { display: none; }
}

/* ============ JUEGA ============ */
.juega { padding-block: clamp(100px, 14vw, 210px); }
.juega__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(16px, 2.4vw, 32px); }
.escudo, .calc { border-radius: 32px; padding: clamp(26px, 4vw, 56px); }
.escudo { background: var(--white); box-shadow: 0 40px 90px -50px rgba(8, 13, 28, .35); }
.escudo .lead { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1.5px rgba(8, 13, 28, .14);
  transition: background .4s var(--ease), color .4s, box-shadow .4s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip__mas { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); transition: background .4s, transform .5s var(--ease); }
.chip__mas::before, .chip__mas::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.8px; margin: -.9px 0 0 -4.5px; background: currentColor; border-radius: 2px; }
.chip__mas::after { transform: rotate(90deg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.chip[aria-pressed="true"] .chip__mas { background: var(--yellow); color: var(--ink); transform: rotate(135deg); }

.escudo__resultado { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; padding-top: 32px; border-top: 1px solid rgba(8, 13, 28, .1); }
.escudo__visual { display: grid; justify-items: center; gap: 12px; }
.escudo__visual svg { width: 150px; overflow: visible; }
.escudo__base { fill: var(--paper-2); }
.escudo__fill { fill: var(--red); }
.escudo__tri { fill: var(--yellow); transform-origin: 100px 90px; }
.escudo__count { text-align: center; line-height: 1.1; }
.escudo__count b { display: block; font: 800 44px/1 var(--f-display); letter-spacing: -.04em; }
.escudo__count span { font-size: 13px; color: var(--muted-dark); }
.escudo__vacio { color: var(--muted-dark); font-size: 17px; max-width: 28ch; }
.escudo__recs ul { display: grid; gap: 8px; margin-block: 10px 22px; }
.escudo__recs li { display: flex; align-items: center; gap: 12px; font: 700 21px/1.1 var(--f-display); letter-spacing: -.02em; }
.escudo__recs li svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--paper); color: var(--red); stroke-width: 1.8; flex: none; }

.calc { position: relative; overflow: hidden; background: var(--navy); color: var(--white); display: flex; flex-direction: column; gap: 18px; }
.calc::after { content: ''; position: absolute; right: -60px; top: -40px; width: 220px; height: 190px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .9; transform: rotate(12deg); pointer-events: none; }
.calc > * { position: relative; z-index: 1; }
.calc .h3 { max-width: 13ch; }
.calc__sub { color: var(--muted); max-width: 34ch; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 14px; color: var(--muted); }
.calc__label output { font: 800 clamp(38px, 3.6vw, 54px)/1 var(--f-display); letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--p, 20%), rgba(255, 255, 255, .18) var(--p, 20%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255, 194, 14, .35), 0 8px 20px rgba(0, 0, 0, .35); transition: transform .3s var(--ease); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255, 194, 14, .35); }
.bars { display: grid; gap: 14px; margin-top: 6px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.bar small { font-size: 11px; opacity: .7; }
.bar b { color: var(--white); font-variant-numeric: tabular-nums; }
.bar i { grid-column: 1 / -1; display: block; height: 14px; border-radius: 99px; background: var(--red); transform-origin: left; transition: transform .6s var(--ease); }
.bar--sm i { background: var(--yellow); }
.calc__ahorro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--muted); }
.calc__ahorro strong { font: 800 clamp(48px, 5vw, 80px)/1 var(--f-display); letter-spacing: -.05em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc__nota { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.calc__ventajas { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.calc__ventajas > .mini { margin-bottom: 10px; color: var(--muted); }
.calc__ventajas ul { display: grid; gap: 8px; }
.calc__ventajas li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.calc__ventajas li::before { content: ''; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.calc .btn { align-self: flex-start; }

@media (max-width: 1000px) { .juega__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .escudo__resultado { grid-template-columns: 1fr; justify-items: center; text-align: center; } .escudo__recs li { justify-content: center; } }

/* ============ SORTEOS ============ */
.sorteos { position: relative; background: var(--ink); color: var(--white); }
.sorteos__pin { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 84px 40px; }
.sorteos__bg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.sorteos__real { background: repeating-linear-gradient(90deg, #0a5bb0 0 64px, #0852a1 64px 128px); }
.sorteos__ath { background: repeating-linear-gradient(90deg, #d5162b 0 64px, #c10f24 64px 128px); }
.sorteos__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 28, .75), rgba(8, 13, 28, .15) 35%, rgba(8, 13, 28, .2) 65%, rgba(8, 13, 28, .85)); }
.sorteos__giant { position: absolute; z-index: 1; left: 0; top: 52%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; font: 800 clamp(120px, 21vw, 380px)/1 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .3); will-change: transform; }
.sorteos__head { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
.sorteos__head .lead { margin-top: 18px; max-width: 46ch; }
.phones { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 7vw, 140px); padding-block: 26px 64px; perspective: 1400px; }
.phone {
  /* El alto manda: así los dos móviles, sus rótulos y el pie caben siempre en la pantalla fijada */
  position: relative; display: block; height: clamp(320px, calc(100svh - 540px), 580px); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 40px;
  background: #0b0b0e; box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .75), inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  transform-style: preserve-3d; will-change: transform;
}
.phone__screen { display: block; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone__info { position: absolute; left: 50%; top: calc(100% + 16px); transform: translateX(-50%); width: max-content; display: grid; justify-items: center; line-height: 1.25; }
.phone__info b { font: 700 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.phone__info > span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.phone__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s, transform .5s var(--ease); }
.phone:hover .phone__play, .phone:focus-visible .phone__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sorteos__foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
@media (min-width: 1101px) {
  .sorteos__foot { position: absolute; left: 0; right: 0; bottom: 26px; justify-content: flex-end; }
  .sorteos__foot .hotel { margin-right: auto; }
}
.hotel, .patro { display: flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px; background: rgba(8, 13, 28, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.hotel video { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; }
.hotel__txt { display: grid; line-height: 1.25; }
.hotel__txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.hotel__txt b { font-size: 16px; }
.hotel__txt span { font-size: 13px; color: rgba(255, 255, 255, .7); max-width: 30ch; }
.patro img { width: 86px; height: 62px; object-fit: cover; border-radius: 999px; flex: none; }
.patro span { font-size: 14px; font-weight: 600; max-width: 24ch; line-height: 1.3; }

@media (max-width: 700px) {
  .phones { gap: 14px; padding-bottom: 80px; }
  .phone { width: 43vw; height: auto; border-radius: 28px; padding: 6px; }
  .phone__screen { border-radius: 23px; }
  .phone__info b { font-size: 17px; }
  .phone__info > span { font-size: 11px; }
  .phone__play { opacity: 1; transform: translate(-50%, -50%) scale(.8); padding: 10px 12px; font-size: 12px; }
  .hotel, .patro { border-radius: 22px; width: 100%; }
}
