/* Páginas de mundo de Black Friday World: cabecera con el fondo del mundo, Nivel 1 (abierto) y Nivel 2 (bloqueado) */
:root {
  --color-buc-primary: #CA002F;
  --color-buc-primary-dark: #a10025;          /* hover; verificar contra Colors/BUC/primary-dark */
  --color-basic-light: #ffffff;
  --color-principals-secondary-darker: #222222;
  --color-principals-secondary-dark: #737373;
  --color-principals-secondary-medium: #9e9e9e;
  --color-principals-secondary: #cccccc;
  --color-principals-secondary-light: #eaeaea;
  --color-principals-secondary-lighter: #f7f7f7;

  --bf-bg: #0076E5;                          /* off-token: fondo campaña */
  --bf-card: linear-gradient(180deg, #1C29E0 0%, #0F279D 50%, #08267B 75%, #012559 100%); /* off-token */
  --bf-cta: linear-gradient(90deg, #0713BF 0%, #13139E 25%, #1F137C 50%, #2B125A 75%, #361239 100%); /* off-token */
  --bf-lock: #012559;
  --bf-gold: #FFD23F;
  --text-ink: #282828;
  --form-label: #3C4858;
  --form-help: #8390A4;
  --form-border: #cfd5df;

  --gap-s: 10px; --gap-m: 15px; --gap-l: 25px; --gap-xl: 50px;
  --pad-card: 20px; --pad-side: 50px;
  --radius-xs: 3px; --radius-m: 10px; --radius-l: 20px; --radius-pill: 1000px;
  --max: 1325px;
  --f-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bf-bg); color: var(--color-basic-light); font-family: var(--f-body); font-size: 16px; line-height: 1.43; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
a { color: inherit; }

/* Cabecera con el fondo del mundo */
.world-hero { position: relative; isolation: isolate; padding-inline: var(--pad-side); padding-block: 28px 70px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.world-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.world-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(1, 37, 89, .55) 0%, rgba(1, 37, 89, .25) 45%, var(--bf-bg) 100%); }
.world-hero > a { display: block; }
.back { font-weight: 600; text-decoration: none; background: rgba(1, 37, 89, .55); padding: 8px 16px; border-radius: var(--radius-pill); }
.back:hover { background: rgba(1, 37, 89, .8); }
.world-hero__logo { width: 142px; }
.world-hero__spacer { width: 120px; }
.world-hero h1 { width: 100%; display: flex; justify-content: center; }
.world-hero__title { width: min(720px, 100%); margin-block: 18px 2px; }
.world-hero h1 > a { display: block; width: min(720px, 100%); }
.world-hero h1 > a .world-hero__title { width: 100%; display: block; }
.world-hero__pill { background: var(--bf-card); border-radius: var(--radius-l); padding: 4px 14px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.world-hero__dates { margin-top: 2px; }
.world-hero__dates img { width: min(200px, 54vw); height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }

.page { max-width: calc(var(--max) + 2 * var(--pad-side)); margin: 0 auto; padding-inline: var(--pad-side); padding-block: 10px 40px; display: flex; flex-direction: column; gap: var(--gap-xl); }

/* Niveles */
.level { display: flex; flex-direction: column; gap: var(--gap-l); }
.level__head { display: flex; align-items: center; gap: var(--gap-m); flex-wrap: wrap; }
.level__head h2 { font-size: 30px; font-weight: 600; line-height: 1.3; }
.level__tag { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--radius-pill); }
.level__tag--open { background: var(--bf-gold); color: var(--bf-lock); }
.level__tag--locked { background: var(--bf-lock); color: var(--color-basic-light); }
.level__lead { font-size: 18px; font-weight: 500; margin-top: -12px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-l); align-items: stretch; }

/* Viajes del mundo: activos primero, después próximamente y al final caducados */
.ruta { display: flex; flex-direction: column; gap: var(--gap-l); }
.ruta__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap-l); flex-wrap: wrap; }
.ruta__head h2 { font-size: 30px; font-weight: 600; line-height: 1.3; }
.ruta__lead { font-size: 18px; font-weight: 500; max-width: 60ch; margin-top: 4px; }
@media (max-width: 768px) { .ruta__head h2 { font-size: 24px; } }
.more { align-self: center; display: inline-flex; text-decoration: none; background: var(--color-basic-light); color: var(--text-ink); font: 550 17px/1.43 var(--f-body); padding: 14px 28px; border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.more:hover { transform: translateY(-2px); }
.more:focus-visible, .chollo__btn:focus-visible, .back:focus-visible { outline: 3px solid var(--color-basic-light); outline-offset: 3px; }

/* Chollo destacado del mundo: foto grande con título y precio + "Más detalles del viaje" en 3 tarjetas */
.deal { display: flex; flex-direction: column; gap: var(--gap-m); }
.deal__hero { position: relative; isolation: isolate; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 28px; border: 3px solid #012559; border-radius: 6px; box-shadow: 0 6px 0 #012559; color: #fff; }
.deal__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.deal__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 37, 89, 0) 35%, rgba(1, 37, 89, .88) 100%); }
.deal__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.deal__tag { font-size: 13px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 4px; background: #fff; color: #012559; border: 2px solid #0b0f1e; box-shadow: 0 3px 0 #0b0f1e; }
.deal__tag--bf { background: #FFC81A; color: #0b0f1e; text-transform: uppercase; letter-spacing: .04em; }
.deal__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap-l); flex-wrap: wrap; }
.deal__title { margin: 0; max-width: 22ch; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.15; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.deal__buy { display: flex; align-items: flex-end; gap: 16px; }
.deal__hero .chollo__price small, .deal__hero .chollo__price span { color: rgba(255, 255, 255, .85); }
.deal__hero .chollo__price b { color: #fff; font-size: 32px; }
.deal__subtitle { margin: 10px 0 0; font-size: 26px; font-weight: 600; }
.deal__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap-l); align-items: stretch; } /* 2 o 3 tarjetas según los datos que haya */
.deal__box { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; background: #fff; color: var(--text-ink);
  border: 3px solid #012559; border-radius: 6px; box-shadow: 0 6px 0 #012559; }
.deal__box h4 { margin: 0; font-size: 18px; font-weight: 700; color: #012559; display: flex; align-items: center; gap: 8px; }
.deal__hotel { margin: 0; font-size: 15px; line-height: 1.35; }
.deal__stars { color: #FFC81A; letter-spacing: 1px; text-shadow: 0 1px 0 #d98a0b; white-space: nowrap; }
.deal__box .chollo__tags { margin: 0; }
.deal__quote { margin: 0; flex: 1; font-size: 16px; line-height: 1.5; color: var(--text-ink); }
.deal__quote::before { content: "“"; } .deal__quote::after { content: "”"; }
.deal__cal { width: 26px; height: 26px; flex: none; }
.deal__dates { margin: 0; font-size: 16px; font-weight: 600; }
.deal__rating { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; background: var(--color-principals-secondary-lighter); border: 1px solid var(--color-principals-secondary-light); font-size: 14px; }
.deal__rating b { font-size: 20px; color: #fff; background: #012559; padding: 2px 8px; border-radius: 4px; }
.deal__rating small { color: var(--color-principals-secondary-dark); font-size: 13px; }
.deal__box .deal__buy { margin-top: auto; padding-top: 12px; border-top: 3px dotted var(--color-principals-secondary-light); justify-content: space-between; }
/* Destacado próximamente: fondo del mundo borroso en blanco y negro (como las cards), sin candado ni datos del chollo */
.deal--locked .deal__bg { filter: grayscale(1) blur(4px) brightness(.85); transform: scale(1.08); }
.deal--locked .deal__hero .chollo__btn { cursor: default; color: #c9cdd2; text-shadow: none; filter: none; background: linear-gradient(180deg, #4a4f56, #33373d); box-shadow: 0 3px 0 #0b0d10; }
.deal--locked .deal__box .chollo__price b { color: var(--color-principals-secondary); }
.deal--locked .deal__quote::before, .deal--locked .deal__quote::after { content: none; }
@media (max-width: 1024px) { .deal__grid { grid-auto-flow: row; } }
@media (max-width: 768px) {
  .deal__hero { min-height: 340px; padding: 16px; }
  .deal__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .deal__subtitle { font-size: 22px; }
}

/* Descubre el resto de mundos (mismas cards que la home) */
.others { display: flex; flex-direction: column; gap: var(--gap-l); }
.others__title { font-size: 30px; font-weight: 600; line-height: 1.3; }
.others__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-l); } /* 7 mundos: 4 + 3 centrados */
.others__grid > .world { flex: 0 0 calc((100% - 3 * var(--gap-l)) / 4); }
.world { position: relative; overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 16 / 10; max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--gap-s); text-decoration: none; color: var(--color-basic-light); isolation: isolate; }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.world::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); z-index: -1; }
.world:hover img { transform: scale(1.06); }
.world:focus-visible { outline: 3px solid var(--color-basic-light); outline-offset: 3px; }
.world b { font-size: 20px; font-weight: 600; line-height: 1.43; }
.world span { background: var(--color-basic-light); color: var(--color-principals-secondary-darker); font-size: 16px; font-weight: 500; padding: 0 10px; border-radius: 100px; }

/* Banner y pie (igual que la home) */
.cta { background: var(--bf-cta); border-radius: var(--radius-l); min-height: 100px; padding: 0 var(--pad-card) 0 10px; display: flex; align-items: center; gap: var(--gap-m); }
.cta__coin { width: 80px; flex: none; }
.cta__text { flex: 1 1 auto; min-width: 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
.btn-light { flex: none; display: inline-flex; background: var(--color-basic-light); color: var(--text-ink); font: 550 17px/1.43 var(--f-body); padding: 16px 25px; border-radius: var(--radius-pill); text-decoration: none; }
/* Suscripción (mismo formulario que la home) */
.subscribe { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 40px; scroll-margin-top: 24px; }
.subscribe h2 { font-size: 30px; font-weight: 550; line-height: 1.3; }
.subscribe__lead { font-size: 20px; font-weight: 500; }
.form { margin-top: 60px; width: min(540px, 100%); background: var(--color-basic-light); border-radius: var(--radius-m); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--form-label); font-weight: 700; font-size: 16px; }
.field label i { color: var(--color-buc-primary); font-style: normal; }
.field input { font: 16px var(--f-body); color: var(--text-ink); border: 1px solid var(--form-border); border-radius: var(--radius-xs); padding: 8px; height: 40px; width: 100%; }
.field input:focus { outline: 2px solid var(--bf-bg); outline-offset: 0; border-color: transparent; }
.field small { color: var(--form-help); font-size: 12px; }
.field small.err { color: var(--color-buc-primary); }
.btn-red { align-self: center; background: var(--color-buc-primary); color: var(--color-basic-light); font: 700 16px/23px var(--f-body); border: 0; border-radius: var(--radius-m); padding: 8px 18px; cursor: pointer; }
.btn-red:hover { background: var(--color-buc-primary-dark); }
.btn-red[disabled] { opacity: .7; cursor: wait; }
.form__ok { color: var(--form-label); font-weight: 600; text-align: center; }
.form__ok.err { color: var(--color-buc-primary); }
.form__legal { color: var(--form-help); font-size: 12px; text-align: center; }
.form__legal a { color: inherit; text-decoration: underline; }
.foot { display: flex; flex-direction: column; align-items: center; gap: var(--gap-m); text-align: center; padding-top: 60px; }
.foot__logo { width: 142px; }
.foot p { font-size: 18px; font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap-l); }
.badge { display: grid; place-items: center; }
.badge > * { grid-area: 1 / 1; }
.badge--gp img:first-child { width: 214px; }
.badge--gp img:last-child { width: 134px; margin-left: 45px; transform: scaleY(-1); }
.badge--as img { width: 189px; }

@media (max-width: 1024px) {
  :root { --pad-side: 32px; }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-side: 16px; --gap-xl: 40px; }
  .others__title { font-size: 24px; }
  .others__grid { gap: var(--gap-m); }
  .others__grid > .world { flex-basis: calc((100% - var(--gap-m)) / 2); }
  .world { aspect-ratio: 1; }
  .world b { font-size: 17px; }
  .world span { font-size: 14px; }
  .world-hero { padding-block: 16px 48px; }
  .world-hero__spacer { display: none; }
  .world-hero__logo { width: 110px; }
  .back { font-size: 14px; }
  .level__head h2 { font-size: 24px; }
  .cta { flex-wrap: wrap; justify-content: center; text-align: center; padding: 20px; }
  .cta__coin { width: 64px; }
  .cta__text { flex-basis: 100%; font-size: 20px; }
  .subscribe { padding-top: 20px; }
  .subscribe h2 { font-size: 24px; }
  .form { margin-top: 28px; }
}
@media (max-width: 768px) {
  .chollo { flex-direction: column; }
  .chollo__img { flex: none; min-height: 0; aspect-ratio: 16 / 10; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .world img { transition: none; }
  .more:hover { transform: none; }
}

/* Toque retro en etiquetas de nivel y botón "Mostrar más" */
.level__tag { border-radius: 2px; border: 2px solid #012559; box-shadow: 2px 2px 0 #012559; }
.more { border-radius: 6px; border: 3px solid #012559; box-shadow: 0 5px 0 #012559; }
.more:active { transform: translateY(3px); box-shadow: 0 2px 0 #012559; }
@media (prefers-reduced-motion: reduce) {
  .chollo, .chollo__btn { transition: none; }
  .chollo:not(.is-expired):not(.chollo--locked):hover { transform: none; }
}
