/* Página de un paquete u oferta */
.narrow { max-width: 860px; }
.offer section { padding-block: clamp(3rem, 6vw, 5rem); }
.offer .offer-hero { position: relative; color: #fff; background: #07213f; padding: 0; overflow: hidden; }
.offer-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.offer-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,24,52,.92), rgba(0,45,98,.7) 50%, rgba(0,45,98,.15)); }
.offer-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2rem; align-items: center; min-height: min(68vh, 560px); padding-block: 3rem; }
.country { display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1rem; padding: .45rem 1rem .45rem .5rem; background: rgba(255,255,255,.14); border-radius: 999px; font: 700 .85rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.country img { border-radius: 4px; }
.offer-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
.offer-hero h1 b { display: block; color: #ffb37f; font-weight: 300; }
.offer-hero .sub { color: #e3eefb; margin: 1rem 0 1.6rem; max-width: 44ch; font-size: 1.1rem; }
.offer-hero .ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.offer-hero .btn-ghost { color: #fff; }
.offer-price { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 1.8rem 1.6rem; text-align: center; border-top: 6px solid #ce1126; box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); }
.offer-price span { display: block; font: 700 .8rem/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.offer-price strong { display: block; font: 800 clamp(2.8rem, 6vw, 3.8rem)/1.15 var(--font-display); color: var(--sun); }
.offer-price em { font-style: normal; font-size: 1.2rem; }
.offer-price small { display: block; color: var(--muted); margin-top: .8rem; font-size: .85rem; }
.ico { width: 34px; height: 34px; flex: none; color: var(--sea); }
.incl { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.incl li { background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1rem; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.incl .ico { width: 64px; height: 64px; padding: 15px; border-radius: 50%; background: var(--navy); color: #fff; margin-bottom: .4rem; }
.incl strong { font-family: var(--font-display); line-height: 1.25; }
.incl span { color: var(--muted); font-size: .88rem; }
.alt-bg { background: var(--surface); }
/* Mosaico de 8 fotos: las áreas suman filas completas (5 de 4 columnas). Si cambia el número
   de fotos, hay que revisar estos tamaños para que no queden huecos. */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 210px); gap: .8rem; margin-top: 1.8rem; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--navy); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(4), .gallery a:nth-child(5) { grid-row: span 2; }
.gallery a:nth-child(6) { grid-column: span 2; }
.gallery a:nth-child(7) { grid-column: span 3; grid-row: span 2; }
.gallery a:nth-child(8) { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); border: 0; background: rgba(3,12,26,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 64px minmax(0, 1fr) 72px; align-items: center; }
.lightbox::backdrop { background: rgba(3,12,26,.96); }
.lightbox button { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 2rem/1 var(--font-body); cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { grid-area: 1 / 3; margin-right: 12px; }
.lb-stage { grid-area: 2 / 1 / 3 / 4; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 0; padding-inline: 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-prev { grid-area: 3 / 1; margin-left: 12px; }
.lb-count { grid-area: 3 / 2; margin: 0; text-align: center; font-size: .85rem; color: #cfdbec; padding-inline: 8px; }
.lb-next { grid-area: 3 / 3; margin-right: 12px; }
.lb-open, .lb-open body { overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.fact { display: flex; gap: 1rem; background: var(--surface); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.fact strong { display: block; font-family: var(--font-display); }
.fact span { color: var(--muted); }
.alert { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 10px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; align-items: start; }
.req .card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem; }
.req h3 { font-size: 1.05rem; margin-bottom: .9rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.downloads a { display: flex; align-items: center; gap: 1rem; min-height: 72px; text-decoration: none; padding: 1rem 1.2rem; border: 1.5px solid var(--sea); border-radius: var(--radius); }
.downloads strong { display: block; font-family: var(--font-display); }
.terms { margin-top: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.4rem; }
.terms summary { cursor: pointer; font: 700 1rem/1.4 var(--font-display); padding-block: .9rem; }
.terms h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.offer section.closing { background: linear-gradient(135deg, #002d62, #07213f); color: #fff; text-align: center; }
.closing img { margin: 0 auto 1rem; border-radius: 5px; }
.closing p { color: #d4e2f4; }
.buybar { display: none; }

/* Destacado en la portada */
.featured { padding-block: clamp(2rem, 4vw, 3rem) 0; }
.featured a { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; text-decoration: none; background: var(--navy); color: #fff; border-radius: 22px; padding: 1.4rem 1.8rem; box-shadow: var(--shadow); }
.featured span.eyebrow { color: #7fe0ec; margin-bottom: .4rem; }
.featured strong { display: block; font: 800 clamp(1.2rem, 2.6vw, 1.8rem)/1.2 var(--font-display); }
.featured .amount { font: 800 2rem/1 var(--font-display); color: #ffb37f; white-space: nowrap; }
.featured .amount small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #c9d8ec; }

@media (max-width: 900px) {
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .offer-hero .wrap, .facts, .downloads, .featured a { grid-template-columns: minmax(0, 1fr); }
  .offer-hero .wrap { min-height: 0; padding-block: 2.2rem; }
  .offer-hero::after { background: linear-gradient(rgba(4,24,52,.82), rgba(0,45,98,.78)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: .6rem; }
  .gallery a:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery a:nth-child(1), .gallery a:nth-child(8) { grid-column: 1 / -1; grid-row: span 2; }
  .gallery a:nth-child(4), .gallery a:nth-child(5) { grid-row: span 2; }
  .gallery a:nth-child(6), .gallery a:nth-child(7) { grid-column: 1 / -1; }
  .buybar { display: flex; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border-top: 1px solid var(--line); padding: .7rem max(16px, env(safe-area-inset-right, 0px)) calc(.7rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .buybar small { display: block; color: var(--muted); font-size: .75rem; }
  .buybar strong { font: 800 1.35rem/1.2 var(--font-display); color: var(--sun); }
  body:has(.buybar) footer { padding-bottom: 90px; }
}
