/* =====================================================================
   SEDES — La Milagrosa Burger House
   Se carga DESPUÉS de style.css y reutiliza sus tokens, botones, header,
   footer, franjas (.row/.rt/.w), banda de pedido y tarjetas de atributos.
   Paleta: #000 · #171515 · #653B84 · #F4F0E6 · #FFC447 — Anton + Manrope.
   Páginas generadas por scripts/build_sedes.py (no editar el HTML a mano).
   ===================================================================== */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #FFC447; color: #000; padding: 12px 20px; border-radius: 999px; font-weight: 800; }
.skip:focus { left: 12px; }
.sedePg { --bone: #F4F0E6; --ink: #171515; --purple: #653B84; --yellow: #FFC447; --crv: clamp(40px, 5.5vw, 80px); }

/* ---------- Secciones y curvas orgánicas ---------- */
.sec { position: relative; }
.crv { position: absolute; left: 0; top: -1px; width: 100%; height: var(--crv); z-index: 1; display: block; pointer-events: none; }
.dk { background: var(--ink); color: var(--bone); }
.dk .kicker, .dk .secTop h2 em { color: var(--yellow); }
.dk .secTop h2 em { font-style: normal; }
.secTop { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 44px; position: relative; z-index: 2; }
.secTop h2 { font-size: clamp(46px, 6vw, 92px); }
.secTop .kicker { margin-bottom: 14px; }
.secLead { margin: 0; max-width: 38ch; font-size: 17px; line-height: 1.6; opacity: .82; }
.cardsSec .kicker, .expSec .kicker, .locSec .kicker { color: var(--purple); }
.cardsSec h2 em, .expSec h2 em, .locSec h2 { font-style: normal; color: var(--purple); }
.cardsSec .secLead { color: rgba(23,21,21,.78); opacity: 1; }
.locSec .ph, .cardsSec .ph { color: var(--purple); }

/* ---------- HERO ---------- */
.sh { --sfs: clamp(38px, 5.4vw, 84px); --stripH: 0px; --curve: clamp(48px, 8vw, 110px); --padX: clamp(20px, 4vw, 72px);
  position: relative; background: #000; color: var(--bone); overflow: hidden; isolation: isolate; min-height: clamp(620px, calc(100vh - 76px), 820px); }
@supports (height: 100svh) { .sh { min-height: clamp(620px, calc(100svh - 76px), 820px); } }
.sh .glowP { background:
  radial-gradient(60% 46% at 28% 100%, rgba(101,59,132,.6), rgba(101,59,132,0) 72%),
  radial-gradient(40% 40% at 96% 8%, rgba(101,59,132,.3), rgba(101,59,132,0) 72%); }
.shRows { position: absolute; left: 0; right: 0; top: 10px; z-index: 2; pointer-events: none; display: grid; }
.shRows .w, .shRows .sp { font-size: var(--sfs); }
.shIn { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: stretch; min-height: inherit;
  padding: calc(var(--stripH) + 28px) var(--padX) calc(var(--curve) + 28px); }
.lay-pair .shIn { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.shCopy { align-self: center; position: relative; z-index: 4; animation: rise 1s var(--ease) .2s both; }
.shKick { margin: 0 0 16px; font-weight: 800; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--yellow); }
.shTitle { font-size: clamp(64px, 9.4vw, 150px); line-height: .94; color: var(--bone); }
.shTitle.s { font-size: clamp(72px, min(11vw, 22vh), 190px); }
.shTitle.m { font-size: clamp(64px, 9vw, 150px); }
.shTitle.l { font-size: clamp(56px, 7.2vw, 120px); }
.shTitle.two { font-size: clamp(60px, 7.4vw, 124px); }
.shGen .shTitle { font-size: clamp(54px, 7vw, 120px); }
.shTitle em, .shTitle .dot { font-style: normal; color: var(--yellow); }
.shSub { margin: 22px 0 0; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.5; font-weight: 600; max-width: 34ch; color: rgba(244,240,230,.92); }
.sh .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.shPhoto { position: relative; min-height: 340px; animation: photoIn 1.1s var(--ease) .15s both; }
.shPhoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* una sola foto panorámica: sangra a la derecha y se funde con el negro */
.shPhoto.wide { margin-right: calc(var(--padX) * -1); margin-left: -10%; margin-top: calc((var(--stripH) + 28px) * -1); margin-bottom: calc((var(--curve) + 28px) * -1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.shPhoto.wide .shFrame { position: absolute; inset: 0; }
/* dos fotos verticales con enmarcado redondeado y escalonado */
.shPhoto.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 20px); }
.shPhoto.pair .shFrame { position: relative; border-radius: 30px; overflow: hidden; min-height: 0; box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.shPhoto.pair .shFrame:nth-child(1) { margin-bottom: 9%; }
.shPhoto.pair .shFrame:nth-child(2) { margin-top: 9%; }
.sh .curve { position: absolute; z-index: 5; left: 0; bottom: -1px; width: 100%; height: var(--curve); display: block; pointer-events: none; }

@media (max-width: 820px) {
  .sh { --sfs: clamp(32px, 9.4vw, 60px); min-height: 0; }
  .shIn, .lay-pair .shIn { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: calc(var(--stripH) + 26px) 20px calc(var(--curve) + 24px); min-height: 0; }
  .shTitle, .shTitle.s, .shTitle.m, .shTitle.l, .shTitle.two, .shGen .shTitle { font-size: clamp(58px, 17vw, 120px); }
  .shTitle.l { font-size: clamp(52px, 15vw, 110px); }
  .sh .ctas .btn { flex: 1 1 auto; }
  .shPhoto { min-height: 0; }
  .shPhoto.pair { height: min(104vw, 480px); }
  .shPhoto.wide { height: min(70vw, 420px); margin: 0 -20px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%); }
}

/* ---------- Franja de identidad (reusa .attrs del HOME) ---------- */
.sedePg .attr .num { font-size: calc(var(--u) * 3.7); }
.sedePg .attrsG .attr .num { font-size: calc(var(--u) * 4.4); }
@media (max-width: 720px) { .sedePg .attr .num, .sedePg .attrsG .attr .num { font-size: 18vw; } }

/* Tarjetas de sede: ver css/scards.css (componente compartido) */
.cardsSec { background: var(--bone); color: var(--ink); padding: 30px 0 130px; }

/* ---------- Ruta rápida (general) ---------- */
.routeSec { padding: calc(var(--crv) + 70px) 0 150px; }
.routes { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 44px); padding: 30px 0; border-top: 1px solid rgba(244,240,230,.18); }
.route:last-child { border-bottom: 1px solid rgba(244,240,230,.18); }
.rN { font-size: clamp(56px, 6vw, 92px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,196,71,.6); }
.rInfo h3 { font-size: clamp(34px, 3.6vw, 54px); }
.rCity { margin: 8px 0 0; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.rInfo address { margin-top: 8px; font-style: normal; font-size: 17px; color: rgba(244,240,230,.84); }
.rActs { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) {
  .route { grid-template-columns: auto minmax(0, 1fr); }
  .rActs { grid-column: 1 / -1; justify-content: flex-start; }
  .rActs .btn { flex: 1 1 auto; }
}

/* ---------- Experiencia ---------- */
.expSec { background: var(--bone); color: var(--ink); }
.exp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; padding: 40px 0 120px; }
.exp h2 { font-size: clamp(50px, 6.4vw, 104px); }
.exp .lead { font-size: 19px; line-height: 1.65; margin: 26px 0 0; max-width: 46ch; }
.exp .sub { font-size: 17px; line-height: 1.65; margin: 16px 0 0; max-width: 46ch; color: rgba(23,21,21,.78); }
.expPh img { max-height: min(78vh, 760px); object-fit: cover; }
@media (max-width: 980px) { .exp { grid-template-columns: minmax(0, 1fr); padding-bottom: 100px; } .expPh { margin-right: 14px; } }

/* ---------- Galería editorial ---------- */
.galSec { padding: calc(var(--crv) + 70px) 0 120px; }
.gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); position: relative; z-index: 2; }
.gi { position: relative; min-width: 0; }
.gi button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; cursor: zoom-in; background: #211e1e; color: inherit; font: inherit; }
.gi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gi.wide { grid-column: span 12; aspect-ratio: 21 / 9; }
.gi.tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.gi.tallx { grid-column: span 4; aspect-ratio: 2 / 3; }
.gi.half { grid-column: span 6; aspect-ratio: 5 / 4; }
.gi.m8 { grid-column: span 8; aspect-ratio: 16 / 10; }
.gi.t2 { grid-column: span 4; grid-row: span 2; }
.giCap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; text-align: left; font-weight: 800; font-size: 15px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s var(--ease); }
.giZ { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #000; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s var(--ease); }
.gi button:hover img, .gi button:focus-visible img { transform: scale(1.045); }
.gi button:hover .giCap, .gi button:focus-visible .giCap, .gi button:hover .giZ, .gi button:focus-visible .giZ { opacity: 1; transform: none; }
.gi button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.js .gi.rv img { transform: scale(1.12); transition: transform 1.2s var(--ease); }
.js .gi.rv.in img { transform: scale(1); }
.js .gi.rv.in button:hover img { transform: scale(1.045); transition-duration: .5s; }
@media (hover: none) { .giCap { opacity: 1; transform: none; } .giZ { display: none; } }
@media (max-width: 720px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gi.wide, .gi.m8 { grid-column: span 2; aspect-ratio: 4 / 3; }
  .gi.tall { grid-column: span 1; aspect-ratio: 3 / 4; }
  .gi.half { grid-column: span 1; aspect-ratio: 1 / 1; }
  .gi.tallx, .gi.t2 { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 5; }
  .giCap { font-size: 13px; padding: 30px 12px 12px; }
  .galSec { padding-bottom: 100px; }
}

/* ---------- Ubicación ---------- */
.locSec { background: var(--bone); color: var(--ink); padding: calc(var(--crv) + 70px) 0 120px; }
.loc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; position: relative; z-index: 2; }
.locTx h2 { font-size: clamp(52px, 6.4vw, 100px); }
.locCity { margin: 10px 0 0; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); }
.locTx address { margin: 26px 0 0; font-style: normal; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; font-weight: 700; }
.hrs { margin: 20px 0 0; font-size: 17px; font-weight: 700; padding: 0; list-style: none; }
.ctc { margin: 12px 0 0; font-size: 17px; }
.ctc span { font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--purple); margin-right: 8px; }
.ctc a { font-weight: 800; border-bottom: 2px solid var(--purple); }
.ctc em { font-style: normal; font-weight: 700; }
.locTx .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mapBox { position: relative; display: flex; flex-direction: column; min-height: 420px; border-radius: 30px; overflow: hidden; background: #e6e0d2; box-shadow: 0 24px 50px rgba(23,21,21,.22); }
.mapBox iframe { flex: 1; width: 100%; min-height: 380px; border: 0; display: block; }
.mapFb { margin: 0; padding: 12px 18px; font-size: 14px; background: var(--ink); color: rgba(244,240,230,.86); }
.mapFb a { color: var(--yellow); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .loc { grid-template-columns: minmax(0, 1fr); } .locTx .ctas .btn { flex: 1 1 auto; } .mapBox { min-height: 360px; } }

/* ---------- Otras sedes ---------- */
.othSec { padding: calc(var(--crv) + 70px) 0 150px; }

/* ---------- Banda final ---------- */
.sedePg .band.sec .crv { z-index: 3; }
.sedePg .band { padding-top: calc(var(--crv) + 80px); }
.sedePg .band h2 { max-width: 10ch; }
@media (max-width: 720px) { .sedePg .band h2 { max-width: none; } }

/* ---------- Lightbox ---------- */
html.lbOpen { overflow: hidden; }
dialog.lb { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,.95); color: var(--bone); }
dialog.lb::backdrop { background: #000; }
dialog.lb[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-items: center; animation: fadein .28s ease both; }
.lbBar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(14px, 3vw, 32px); }
.lbCount { font-weight: 800; font-size: 14px; letter-spacing: .16em; color: var(--yellow); }
.lbX, .lbNav { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(244,240,230,.4); background: rgba(0,0,0,.4); color: var(--bone); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .22s, color .22s, border-color .22s, transform .22s var(--ease); }
.lbX:hover, .lbNav:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
.lbNav:active, .lbX:active { transform: scale(.94); }
.lbPrev { grid-column: 1; grid-row: 2; margin-left: clamp(10px, 2vw, 28px); }
.lbNext { grid-column: 3; grid-row: 2; margin-right: clamp(10px, 2vw, 28px); }
.lbFig { grid-column: 2; grid-row: 2; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-bottom: 18px; touch-action: pan-y; }
.lbFig img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); min-height: 0; object-fit: contain; border-radius: 18px; transition: opacity .25s ease, transform .3s var(--ease); user-select: none; -webkit-user-drag: none; }
.lbFig img.sw { opacity: 0; transform: scale(.985); }
.lbFig figcaption { font-weight: 700; font-size: 15px; text-align: center; color: rgba(244,240,230,.88); }
.lbX:focus-visible, .lbNav:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
@media (max-width: 720px) {
  dialog.lb[open] { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
  .lbFig { grid-column: 1 / -1; grid-row: 2; padding: 0 12px; }
  .lbFig img { max-height: calc(100dvh - 210px); }
  .lbPrev, .lbNext { grid-row: 3; margin: 0 0 20px; }
  .lbPrev { grid-column: 1; justify-self: end; margin-right: 12px; }
  .lbNext { grid-column: 2; justify-self: start; margin-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .gi.rv img { transform: none; }
  .scard:hover, .scard:hover .scImg { transform: none; }
  .shCopy, .shPhoto, .shRows .row { animation: none !important; }
  dialog.lb[open] { animation: none; }
}
