/* ==========================================================================
   BLACK FRIDAY RCDE 2026 · /blackfriday
   Mismo criterio que el resto de secciones de front.css (#business, #hospitality…):
   selectores por id de sección, grid de Foundation y .btnPrimary.
   Usa las fuentes que ya sirve la web (maison_neue*, pericolight) y añade solo
   Perico Display, que no está en el servidor.
   ========================================================================== */

@font-face { font-family: "perico_displaybold"; src: url("/css/frontend/fonts/perico/PericoDisplay-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "perico_displaylight"; src: url("/css/frontend/fonts/perico/PericoDisplay-Light.woff2") format("woff2"); font-display: swap; }

/* 1px del diseño (artboard de 1920) = 1 unidad; escala con la pantalla hasta 1920 */
#blackfriday { --u: calc(min(100vw, 1920px) / 1920); position: relative; overflow: hidden; background: #262626 url("/assets/images/blackfriday/bg.jpg") center top / min(100%, 1920px) auto no-repeat; color: #fff; }
/* La web aplica "* { color: #000 }" y "ul li { color: … }": se fija el blanco en todo el bloque */
#blackfriday, #blackfriday * { color: #fff; }
#blackfriday .oferta .btnPrimary *, #blackfriday .oferta .codigo * { color: inherit; }
#blackfriday img { display: block; max-width: 100%; height: auto; }
#blackfriday h1, #blackfriday h2, #blackfriday h3, #blackfriday p { margin: 0; color: #fff; }
#blackfriday h1, #blackfriday #ofertas h2, #blackfriday .oferta h3, #blackfriday .oferta .hasta, #blackfriday .oferta .detalle { text-transform: uppercase; font-feature-settings: "calt" 1, "liga" 1; }
/* Perico Display mete la O dentro de la C o la D ("CO", "DO"): se desactiva en los textos de las cards
   y, en los titulares, con <span class="sinlig"> alrededor de esas letras (como hace el PSD en "PERICO") */
#blackfriday .oferta .hasta, #blackfriday .oferta .detalle { font-feature-settings: "calt" 0, "liga" 0, "clig" 0, "dlig" 0; }
#blackfriday .sinlig { color: inherit; font-feature-settings: "calt" 0, "liga" 0, "clig" 0, "dlig" 0; }

/* Franja blanquiazul */
#blackfriday .stripes { display: block; width: calc(185 * var(--u)); height: calc(15 * var(--u)); min-width: 120px; min-height: 10px; margin: 0 auto; background: linear-gradient(90deg, #fff 0 17.5%, #3965a9 17.5% 30%, #fff 30% 41%, #3965a9 41% 58%, #fff 58% 70%, #3965a9 70% 82.5%, #fff 82.5% 100%); }

/* ---------- Ticker ---------- */
#blackfriday #ticker { position: relative; z-index: 3; display: flex; align-items: center; height: calc(61 * var(--u)); min-height: 44px; overflow: hidden; background: #242424; }
#blackfriday #ticker:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #fff 0 14.2857%, #0069e1 0 28.5714%, #fff 0 42.8571%, #0069e1 0 57.1428%, #fff 0 71.4285%, #0069e1 0 85.7142%, #fff 0); }
#blackfriday #ticker ul { display: flex; flex-shrink: 0; margin: 0; padding: 0 0 5px; list-style: none; white-space: nowrap; animation: blackfriday-ticker 60s linear infinite; }
#blackfriday #ticker:hover ul { animation-play-state: paused; }
#blackfriday #ticker li { padding-right: max(32px, calc(52 * var(--u))); font: max(13px, calc(20 * var(--u))) maison_neuebook, sans-serif; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
#blackfriday #ticker li:nth-child(odd) { font-family: maison_neuedemi, sans-serif; }
@keyframes blackfriday-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cabecera (hero) ---------- */
#blackfriday #portada { position: relative; width: min(100%, 1920px); height: calc(918 * var(--u)); margin: 0 auto; }
#blackfriday #portada .lines { position: absolute; left: calc(888 * var(--u)); top: calc(-50 * var(--u)); width: calc(1032 * var(--u)); max-width: none; pointer-events: none; }
#blackfriday #portada figure { position: absolute; left: calc(846 * var(--u)); top: calc(52 * var(--u)); z-index: 1; width: calc(774 * var(--u)); margin: 0; }
#blackfriday #portada figure img { width: 100%; aspect-ratio: 774 / 764; object-fit: cover; }
#blackfriday #portada header { position: absolute; left: calc(250 * var(--u)); top: calc(120 * var(--u)); z-index: 2; width: calc(478 * var(--u)); text-align: center; }
#blackfriday #portada h1 { font-family: perico_displaybold, pericobold, sans-serif; line-height: .8; }
#blackfriday #portada h1 > span { display: block; }
#blackfriday #portada h1 .l1 { font-size: calc(197 * var(--u)); margin-top: calc(22 * var(--u)); }
#blackfriday #portada h1 .l2 { font-size: calc(166 * var(--u)); margin-top: calc(6 * var(--u)); }
#blackfriday #portada h1 .l3 { font-size: calc(144 * var(--u)); margin-top: calc(4 * var(--u)); }
#blackfriday #portada h1 .l3 span { font-family: pericobold, sans-serif; }
#blackfriday #portada .off { width: calc(353 * var(--u)); margin: calc(30 * var(--u)) auto 0; transform: translateX(calc(-2 * var(--u))); }

/* ---------- Ofertas ---------- */
#blackfriday #ofertas { max-width: calc(1704 * var(--u)); margin: 0 auto; padding: calc(40 * var(--u)) 0 calc(113 * var(--u)); }
#blackfriday #ofertas > article > header { margin-bottom: calc(115 * var(--u)); text-align: center; }
#blackfriday #ofertas h2.center { margin-bottom: calc(49 * var(--u)); font: calc(90 * var(--u)) / .85 perico_displaylight, pericolight, sans-serif; }
#blackfriday #ofertas h2.center strong { font-family: perico_displaybold, pericobold, sans-serif; font-weight: normal; }
#blackfriday #ofertas ul.grid-x { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(56 * var(--u)); margin: 0; padding: 0; list-style: none; }
#blackfriday #ofertas ul.grid-x > li.cell { width: auto; margin: 0; }

/* Card */
#blackfriday .oferta { container-type: inline-size; position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #313131; border: 2px solid #363636; border-radius: 20px; transition: transform .25s, box-shadow .25s; }
#blackfriday .oferta:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
#blackfriday .oferta figure { margin: 0; }
#blackfriday .oferta figure img { width: 100%; aspect-ratio: 531 / 457; object-fit: cover; }
#blackfriday .oferta .contenido { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; margin-top: -30px; padding: 5.1cqi 4.4cqi 9.2cqi 7.2cqi; background: #313131; border-radius: 20px 20px 0 0; }
#blackfriday .oferta .contenido > header { align-self: stretch; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 3cqi; margin-bottom: 3.4cqi; }
#blackfriday .oferta .logo { flex-shrink: 0; width: auto; height: 19.6cqi; }
#blackfriday .oferta .fecha { flex: 0 0 auto; display: inline-flex; align-items: center; max-width: 100%; min-height: max(28px, 8.1cqi); margin: 0 3cqi 1.9cqi 0; padding: .35em 4.4cqi; border: 2px solid #fff; border-radius: 2em; font: max(11px, 3.05cqi) maison_neuebook, sans-serif; text-transform: uppercase; white-space: normal; text-align: left; }
#blackfriday .oferta .hasta { font: 6.2cqi / 1 perico_displaylight, pericolight, sans-serif; }
#blackfriday .oferta .hasta.vacio { visibility: hidden; }
#blackfriday .oferta h3 { margin: 1.8cqi 0 1.6cqi; color: #0069e1; font: 10.9cqi / 1 perico_displaybold, pericobold, sans-serif; overflow-wrap: anywhere; }
#blackfriday .oferta .detalle { font: 6.6cqi / 1.23 perico_displaylight, pericolight, sans-serif; }
#blackfriday .oferta .detalle.text { font-family: pericolight, sans-serif; }
#blackfriday .oferta .nota { margin-top: 2.2cqi; font: max(13px, 3.58cqi) / 1.15 maison_neuebook, sans-serif; }
#blackfriday .oferta .acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5cqi 4.4cqi; margin-top: auto; padding-top: 3.8cqi; }

/* .btnPrimary de la web, a la medida del diseño. Su :after hace clicable toda la card. */
#blackfriday .oferta .btnPrimary { flex: 0 0 auto; display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: .3em; max-width: 100%; min-height: max(34px, 9.8cqi); margin: 0; padding: .45em 5.8cqi; background: #0069e1; border: 0; border-radius: 2em; color: #fff; font: max(11px, 3.6cqi) maison_neuebook, sans-serif; text-decoration: none; text-transform: uppercase; white-space: normal; text-align: left; }
#blackfriday .oferta .btnPrimary strong { font-family: maison_neuebold, sans-serif; font-weight: normal; }
#blackfriday .oferta:hover .btnPrimary { background: #0057bd; }
#blackfriday .oferta .btnPrimary:after { content: ""; position: absolute; inset: -2000px; z-index: 1; }

/* Botón copiar código */
#blackfriday .oferta .codigo { flex: 0 0 auto; position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 2.2cqi; max-width: 100%; min-height: max(33px, 9.4cqi); padding: .3em 1.3cqi .3em 3.2cqi; background: rgba(255, 255, 255, .4); border: 0; border-radius: 2em; color: #fff; font: max(11px, 3.6cqi) maison_neuebook, sans-serif; text-transform: uppercase; white-space: normal; text-align: left; cursor: pointer; }
#blackfriday .oferta .codigo strong { font-family: maison_neuebold, sans-serif; font-weight: normal; }
#blackfriday .oferta .codigo:hover { background: rgba(255, 255, 255, .5); }
#blackfriday .oferta .codigo i { display: inline-flex; align-items: center; justify-content: center; width: max(24px, 6.8cqi); height: max(24px, 6.8cqi); background: #fff; border-radius: 50%; color: #4a4a4a; }
#blackfriday .oferta .codigo svg { width: 52%; height: auto; }
#blackfriday .oferta .codigo.copiado { background: #fff; color: #0069e1; }
#blackfriday .oferta .codigo.copiado i { background: #0069e1; color: #fff; }

/* Oferta terminada (data-fin) */
#blackfriday .oferta.finalizada { opacity: .55; }
#blackfriday .oferta.finalizada:hover { transform: none; box-shadow: none; }

/* ---------- Tablet ---------- */
@media screen and (max-width: 63.9375em) {
  #blackfriday #ofertas { max-width: none; padding-left: 20px; padding-right: 20px; }
  #blackfriday #ofertas ul.grid-x { gap: 20px; }
}

/* ---------- Móvil ---------- */
@media screen and (max-width: 47.9375em) {
  #blackfriday #ticker ul { animation-duration: 40s; }
  #blackfriday #portada { height: auto; padding: 36px 0 24px; }
  #blackfriday #portada header { position: relative; left: auto; top: auto; width: auto; margin: 0 auto; }
  #blackfriday .stripes { width: 120px; height: 10px; }
  #blackfriday #portada h1 .l1 { font-size: 25vw; margin-top: 22px; }
  #blackfriday #portada h1 .l2 { font-size: 21vw; margin-top: 4px; }
  #blackfriday #portada h1 .l3 { font-size: 18.3vw; margin-top: 2px; }
  #blackfriday #portada .off { width: 46vw; margin-top: 16px; transform: none; }
  #blackfriday #portada figure { position: relative; left: auto; top: auto; width: calc(100% - 40px); margin: 32px auto 0; }
  #blackfriday #portada .lines { left: 10%; top: auto; bottom: 0; width: 100%; }
  #blackfriday #ofertas { padding-top: 36px; padding-bottom: 56px; }
  #blackfriday #ofertas > article > header { margin-bottom: 32px; }
  #blackfriday #ofertas h2.center { margin-bottom: 22px; font-size: 11vw; }
  #blackfriday #ofertas h2.center strong { display: block; }
  #blackfriday #ofertas ul.grid-x { grid-template-columns: 1fr; gap: 24px; }
  #blackfriday .oferta .hasta.vacio { display: none; }
}

/* Hueco para el #topbar fijo en móvil (mismos puntos de corte que #section-header en front.css) */
@media only screen and (max-width: 465px) { body:has(#topbar) #blackfriday { margin-top: 139px; } }
@media only screen and (min-width: 466px) and (max-width: 640px) { body:has(#topbar) #blackfriday { margin-top: 157px; } }
@media only screen and (min-width: 375px) and (max-width: 812px) and (-webkit-min-device-pixel-ratio: 3) and (orientation: portrait) { body:has(#topbar) #blackfriday { margin-top: 139px; } }

@media (prefers-reduced-motion: reduce) {
  #blackfriday #ticker ul { animation: none; }
  #blackfriday .oferta { transition: none; }
}

/* ---------- ActualizaciÃ³n 26/11: 4 cards (Store, Tickets Getafe, Hospitality, Tour) ----------
   4 columnas desde 1300 px, 2 columnas por debajo y 1 en mÃ³vil. La fecha va siempre en una lÃ­nea
   junto al logo y con la misma altura en las 4 cards; botÃ³n y cÃ³digo, a la misma altura y alineados abajo. */
#blackfriday #ofertas ul.grid-x { grid-template-columns: repeat(4, 1fr); gap: calc(40 * var(--u)); }
#blackfriday .oferta .contenido > header { flex-wrap: nowrap; align-items: center; }
#blackfriday .oferta .fecha { flex: 0 1 auto; margin-bottom: 0; box-sizing: border-box; height: max(38px, 9.8cqi); min-height: 0; padding-top: 0; padding-bottom: 0; line-height: 1.15; white-space: nowrap; flex-shrink: 0; font-size: max(10px, 3.05cqi); padding-left: 3.4cqi; padding-right: 3.4cqi; margin-right: 0; }
#blackfriday .oferta .acciones { flex-direction: row; align-items: stretch; flex-wrap: nowrap; gap: 3cqi; }
#blackfriday .oferta .acciones .btnPrimary, #blackfriday .oferta .acciones .codigo { min-height: max(34px, 9.8cqi); box-sizing: border-box; }
@media screen and (max-width: 81.1875em) { #blackfriday #ofertas ul.grid-x { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 47.9375em) { #blackfriday #ofertas ul.grid-x { grid-template-columns: 1fr; } }
