/* Irene Studio — estilos base (mobile-first) */

:root {
  --white: #ffffff;
  --ivory: #f6f2ec;
  --ink: #1b1815;
  --ink-2: #3a342e;
  --muted: #766d63;
  --line: #e6dfd5;
  --accent: #7d6055;

  /* Tipografía del logo y titulares: se cambia aquí y afecta a todo el sitio */
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --pad: 22px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
p, dl, dd, figure, ol, ul { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.skip { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; font-size: 13px; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--pad); max-width: 1180px; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Logo: "STUDIO" se reparte al ancho exacto de "irene" ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: stretch; color: var(--ink); }
.logo-irene { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: .8; letter-spacing: -.005em; }
.logo-studio {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 8.5px;
  line-height: 1;
  margin-top: 7px;
  padding: 0 .04em 0 .1em;
}
.logo-lg .logo-irene { font-size: 76px; }
.logo-lg .logo-studio { font-size: 14px; margin-top: 13px; }
.logo-sm .logo-irene { font-size: 30px; }
.logo-sm .logo-studio { font-size: 6.5px; margin-top: 5px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-wide { width: 100%; margin-top: 36px; }
button.btn { cursor: pointer; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

.link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
}
.link span { transition: transform .25s ease; }
.link:hover span { transform: translateX(4px); }

/* ---------- Header y menú ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-icon { position: relative; width: 22px; height: 8px; }
.menu-icon i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .3s ease, top .3s ease; }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 7px; }
.menu-open .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

/* El menú se abre con :target (funciona sin JavaScript) o con la clase .is-open (con JavaScript) */
.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  background: var(--white);
  padding: 20px var(--pad) calc(32px + env(safe-area-inset-bottom));
  display: none;
  flex-direction: column;
}
.menu:target, .menu.is-open { display: flex; }
.menu-close { align-self: flex-end; font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 8px 0 12px; }
.js .menu-close { display: none; }
.menu ul { list-style: none; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li a { display: block; padding: 18px 0; font-family: var(--font-display); font-size: 30px; line-height: 1.15; }
.menu .btn { width: 100%; margin-top: auto; }
.menu-open, .bk-open { overflow: hidden; }

/* ---------- Portada ---------- */
.hero { background: var(--white); }
.hero-photo { background: var(--white); }
.hero-photo img { width: 100%; }
/* En móvil y tablet la foto va cuadrada (se recorta blanco arriba y las manos abajo)
   para que los botones de la portada entren en la primera pantalla */
@media (max-width: 899px) {
  .hero-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 32%; }
  /* La barra, foto y título de la ventana de Fotografía solo existen en escritorio */
  .cats > .cats-top, .cats-photo, .cats-title, .cats-meta { display: none; }
}
/* Portada: la frase arriba, debajo la foto de Irene y después los botones */
.hero-head { padding: 30px var(--pad) 26px; }
.hero-title { font-size: 44px; line-height: 1.02; letter-spacing: -.01em; margin: 14px 0 0; }
.hero-title em { color: var(--accent); }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 24px var(--pad) 60px; }
.hero-actions .btn { padding: 0 12px; }

/* ---------- Secciones ---------- */
section { position: relative; }
.about, .steps-section, .conditions { background: var(--ivory); }
.about, .services, .steps-section, .portfolio, .conditions, .contact { padding-block: 72px; }

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 34px; margin-top: 14px; }

.about-lead { font-family: var(--font-display); font-size: 26px; line-height: 1.3; margin-top: 18px; }
.about-text { color: var(--muted); margin-top: 18px; max-width: 34em; }

/* Tres puertas */
.doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.doors > * { min-width: 0; } /* sin esto, el contenido deslizable ensancha la página en el celular */
.door-img { overflow: hidden; background: var(--ivory); margin-bottom: 22px; }
.door-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.door:hover .door-img img { transform: scale(1.03); }
.door h3 { font-size: 28px; }
.door-meta { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.door-kicker { font-weight: 400; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Puerta "Fotografía": se despliega con sus categorías (details/summary: funciona sin JavaScript) */
.door-photo > summary, .cat > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.door-photo > summary::-webkit-details-marker, .cat > summary::-webkit-details-marker { display: none; }
.door-photo > summary { display: block; }
.door-photo > summary .door-img, .door-photo > summary .door-meta { display: block; }
.door-photo .link { gap: 12px; }
.door-photo .when-open { display: none; }
.door-photo[open] > summary .when-open { display: inline; }
.door-photo[open] > summary .when-closed { display: none; }

.plus { position: relative; display: inline-block; width: 10px; height: 10px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform .3s ease; }
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { transform: rotate(0deg); }

.cats { margin-top: 28px; border-top: 1px solid var(--ink); }
.cats-intro { font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding: 20px 0 4px; }
.cat { border-bottom: 1px solid var(--line); }
.cat > summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 18px; padding: 20px 0; }
.cat-name { font-family: var(--font-display); font-size: 23px; line-height: 1.2; }
.cat-list { grid-column: 1; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cat > summary .plus { grid-column: 2; grid-row: 1 / span 2; width: 12px; height: 12px; }

/* Paquetes: foto al lado de cada uno */
.pkgs { list-style: none; padding: 0 16px; margin: 0 0 22px; background: var(--ivory); }
.pkgs li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas: "thumb name price" "thumb meta meta" "thumb cta cta";
  align-items: start;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.pkgs li:last-child { border-bottom: 0; }
.pkg-thumb { grid-area: thumb; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: #ece6dd; }
.pkg-thumb-empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; border: 1px solid var(--line); background: var(--white); font-weight: 400; font-size: 8px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pkg-name { grid-area: name; font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.pkg-price { grid-area: price; font-family: var(--font-display); font-size: 18px; line-height: 1.4; white-space: nowrap; }
.pkg-meta { grid-area: meta; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pkg-cta { grid-area: cta; justify-self: start; display: inline-flex; gap: 10px; margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

.door-photo[open] .cats, .cat[open] .pkgs { animation: unfold .45s ease both; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Pasos */
.steps { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.step-t { font-size: 17px; }

/* Portafolio: carril deslizable */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 74%; scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ivory); }
.rail figcaption { margin-top: 12px; font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* Condiciones */
.cond-list { border-top: 1px solid var(--line); }
.cond-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.cond-list dt { font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.cond-list dd { font-size: 16px; }

/* Contacto */
.contact h2 { font-size: 34px; margin: 14px 0 22px; }
.contact address { font-style: normal; font-size: 17px; line-height: 1.7; margin-bottom: 30px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Llamado final */
.cta { background: var(--ink); color: var(--white); text-align: center; padding-block: 80px; }
.cta h2 { font-size: 38px; margin-bottom: 30px; }

/* Pie */
.site-footer { padding: 64px var(--pad) calc(110px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.copy { font-size: 12px; color: var(--muted); }

/* Barra fija inferior (móvil) */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  gap: 10px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.bar.is-visible, html:not(.js) .bar { transform: none; }
.bar .btn-solid { flex: 1; }
.bar-wa { width: 52px; padding: 0; }

/* Aparición suave al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Ventana de reserva ---------- */
/* Cada ventana se abre con :target (#reserva-...), así funciona también sin JavaScript */
.booking {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  background: var(--white);
}
.booking:target, .booking.is-open { display: flex; animation: bkIn .45s cubic-bezier(.2,.7,.2,1) both; }
.booking:focus { outline: none; }
/* Con JavaScript se carga el calendario de Calendly; sin JavaScript queda un botón que lo abre */
.js .bk-nojs { display: none; }
@keyframes bkIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.bk-top { flex: none; height: var(--header-h); padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.bk-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; }

.bk-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.bk-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 18px var(--pad) 0;
  scroll-padding-inline: var(--pad);
}
.bk-gallery::-webkit-scrollbar { display: none; }
.bk-gallery img { flex: 0 0 84%; width: 84%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; background: var(--ivory); }
.bk-gallery-empty { flex: 1; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--ivory); font-weight: 400; font-size: 11px; line-height: 1.8; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.bk-count { padding: 12px var(--pad) 0; font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.bk-body { max-width: 720px; margin-inline: auto; padding: 28px var(--pad) 48px; }
.bk-title { font-size: 36px; margin: 12px 0 10px; }
.bk-facts { font-size: 15px; color: var(--muted); }

.bk-sec { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--ink); }
.bk-sec h3 { font-size: 22px; margin-bottom: 18px; }

.bk-includes { list-style: none; padding: 0; display: grid; gap: 12px; }
.bk-includes li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; }
.bk-includes li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--accent); transform: translateY(-5px); }

.bk-desc { margin-top: 22px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.bk-aviso { margin-top: 20px; font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.bk-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Calendario de Calendly (a todo el ancho en el móvil) */
.bk-horario { font-size: 14px; line-height: 1.7; color: var(--muted); }
.bk-cal { margin: 14px calc(-1 * var(--pad)) 0; }
.bk-cal iframe { display: block; width: 100%; height: 700px; border: 0; }
/* Aire al bajar sola la página hasta lo que se despliega (ver llevarA en main.js) */
.cats, .cat, .bk-cal { scroll-margin-top: 12px; }
.bk-nojs { margin-top: 20px; }
.bk-help { margin-top: 22px; font-size: 14px; color: var(--muted); }
.bk-help a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* Nombre antes del calendario: Calendly lo recibe ya puesto y el mensaje de WhatsApp lo incluye */
.bk-nombre { display: grid; gap: 10px; margin-top: 22px; }
html:not(.js) .bk-nombre { display: none; }
.bk-nombre label { font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.bk-nombre input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px; /* 16 px evita que el iPhone haga zoom al escribir */
  -webkit-appearance: none;
  appearance: none;
}
.bk-nombre input:focus { outline: none; border-color: var(--ink); }
.bk-nombre-error { display: none; font-size: 13.5px; color: var(--accent); }
.bk-nombre.is-error .bk-nombre-error { display: block; }
.bk-nombre.is-error input { border-color: var(--accent); }
.bk-nombre.is-listo button { display: none; }

/* Pago: aparece al completar la reserva en Calendly (sin JavaScript se ve siempre, como instrucciones) */
.bk-pago { margin-top: 28px; padding: 26px 22px 24px; background: var(--ivory); scroll-margin-top: 16px; }
.bk-pago[hidden] { display: none; }
html:not(.js) .bk-pago[hidden] { display: block; }
.bk-pago:focus { outline: none; }
.bk-pago h4 { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 10px 0 12px; }
.bk-pago > p { font-size: 15px; line-height: 1.6; }
.pago-list { margin: 20px 0 22px; border-top: 1px solid var(--line); }
.pago-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 50px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pago-list dt { flex: none; font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pago-list dd { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; text-align: right; }
.pago-num { font-variant-numeric: tabular-nums; letter-spacing: .06em; -webkit-user-select: all; user-select: all; }
/* Cuenta: etiqueta arriba; número grande y "Copiar" en la misma línea */
.pago-list > .pago-cuenta { flex-wrap: wrap; row-gap: 6px; padding: 14px 0; }
.pago-cuenta dt { flex-basis: 100%; }
.pago-cuenta dd { flex: 1; justify-content: space-between; flex-wrap: nowrap; }
.pago-cuenta .pago-num { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; }
.bk-copiar { min-height: 34px; padding: 0 12px; border: 1px solid var(--ink); background: none; color: var(--ink); font-family: var(--font-body); font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
html:not(.js) .bk-copiar { display: none; }
.bk-bar .btn[hidden] { display: none; }

.bk-bar { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.bk-bar-info { display: flex; flex-direction: column; min-width: 0; }
.bk-bar-info span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar-info strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.bk-bar .btn { flex: none; margin-left: auto; padding: 0 20px; }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  :root { --pad: 48px; --header-h: 88px; }
  .logo-irene { font-size: 46px; }
  .logo-studio { font-size: 9.5px; margin-top: 8px; }

  /* Portada a la medida de la pantalla: la foto entera, apoyada abajo, a la izquierda;
     la frase y los botones centrados en vertical a la derecha */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "photo ." "photo head" "photo actions" "photo .";
    column-gap: 24px;
    height: calc(100vh - var(--header-h));
    min-height: 560px;
    max-height: 980px;
  }
  .hero-photo { grid-area: photo; position: relative; margin: 0; min-height: 0; }
  .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 70% 100%; }
  .hero-head { grid-area: head; padding: 0 var(--pad) 0 0; }
  .hero-title { font-size: clamp(56px, 5vw, 80px); }
  .hero-actions { grid-area: actions; width: 100%; max-width: 480px; padding: 36px var(--pad) 0 0; }

  .about, .services, .steps-section, .portfolio, .conditions, .contact { padding-block: 120px; }
  .section-head { margin-bottom: 56px; }
  .section-head h2, .contact h2 { font-size: 50px; }
  .about .wrap { max-width: 820px; text-align: center; }
  .about-lead { font-size: 36px; }
  .about-text { margin-inline: auto; font-size: 17px; }

  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  /* "Fotografía" abre una ventana a pantalla completa, como las de reserva:
     su foto a la izquierda y las categorías con sus paquetes a la derecha */
  .door-photo[open] > .cats {
    position: fixed;
    inset: 0;
    z-index: 55; /* por debajo de las ventanas de reserva (60), que se abren encima */
    display: flex;
    flex-direction: column;
    margin: 0;
    border-top: 0;
    background: var(--white);
    animation: bkIn .45s cubic-bezier(.2,.7,.2,1) both;
  }
  .door-photo[open] > .cats:focus { outline: none; }
  .door-photo[open] > .cats > .cats-top { display: flex; }
  .cats-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
  .cats-inner { max-width: 1180px; margin-inline: auto; padding: 56px var(--pad) 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
  .cats-photo { display: block; position: sticky; top: 0; margin: 0; }
  .cats-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .cats-title { display: block; font-size: 50px; }
  .cats-meta { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
  .cats-body .cats-intro { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink); }
  .cats-open { overflow: hidden; }
  /* La animación de aparición mueve la puerta con transform, y eso encerraría la ventana
     fija dentro de la puerta: al abrirla se anula al instante */
  .js .door-photo[open] { transform: none; transition: none; }

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .steps li { grid-template-columns: 1fr; border-top: 1px solid var(--ink); border-bottom: 0; gap: 14px; }

  .rail { padding-inline: max(var(--pad), calc((100vw - 1180px) / 2 + var(--pad))); }
  .rail figure { flex-basis: 23%; }

  .cond-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .cond-list > div { border-top: 1px solid var(--ink); border-bottom: 0; }
  .bk-sec .cond-list { display: block; border-top: 1px solid var(--line); }
  .bk-sec .cond-list > div { border-top: 0; border-bottom: 1px solid var(--line); }

  .contact .wrap { max-width: 720px; text-align: center; }
  .contact-actions { max-width: 440px; margin-inline: auto; }
  .btn-wide { width: auto; min-width: 320px; display: flex; margin-inline: auto; }
  .cta h2 { font-size: 60px; }

  .site-footer { padding-bottom: 64px; }
  .bar { display: none; }

  .bk-gallery { padding-inline: max(var(--pad), calc((100vw - 1180px) / 2 + var(--pad))); }
  .bk-gallery img { flex-basis: 30%; width: 30%; }
  .bk-count { max-width: 1180px; margin-inline: auto; }
  .bk-title { font-size: 48px; }
  .bk-bar { padding-inline: max(var(--pad), calc((100vw - 720px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}
