/* albrizzo.com — sala de cine: negro noche, terciopelo vino y detalles dorados */

:root {
  --e-noche: #0d090b;
  --e-noche-2: #150e11;
  --e-telon: #1e1015;
  --e-telon-2: #2a141b;
  --e-vino: #7d1a2c;
  --e-vino-vivo: #a3243b;
  --e-borde: rgba(230, 184, 92, 0.18);
  --e-borde-2: rgba(230, 184, 92, 0.38);
  --e-texto: #f1e7e3;
  --e-gris: #bba9a6;
  --e-blanco: #ffffff;

  --e-oro: #e6b85c;
  --e-oro-luz: #f3cf86;
  --e-oro-sombra: #b98a2f;
  --e-tinta: #2a1c05;
  --e-celeste: #3c6fd8;

  --e-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --e-cuerpo: "Outfit", "Segoe UI", Roboto, Arial, sans-serif;

  --e-max: 1220px;
  --e-pad: clamp(1rem, 4vw, 2.6rem);
  --e-cab: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--e-cab) + 18px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 100% 30%, rgba(125, 26, 44, 0.22), transparent 70%),
    radial-gradient(900px 600px at 0 80%, rgba(230, 184, 92, 0.06), transparent 70%),
    var(--e-noche);
  color: var(--e-texto);
  font-family: var(--e-cuerpo);
  font-size: 1.07rem;
  line-height: 1.72;
}

body.ab-fijo { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--e-oro-luz); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

.ab-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  background: var(--e-oro);
  color: var(--e-tinta);
  font-weight: 700;
  text-decoration: none;
}
.ab-salto:focus { top: 12px; }

.ab-marco { width: min(100% - 2 * var(--e-pad), var(--e-max)); margin-inline: auto; }

/* ---------- botones ---------- */

.ab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--e-cuerpo);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, letter-spacing 0.2s ease;
}
.ab-btn:hover { letter-spacing: 0.1em; }
.ab-btn:active { transform: translateY(1px); }

.ab-btn--oro {
  background: linear-gradient(180deg, var(--e-oro-luz), var(--e-oro) 55%, var(--e-oro-sombra));
  color: var(--e-tinta);
  box-shadow: 0 0 0 1px rgba(255, 230, 170, 0.35) inset, 0 14px 28px -14px rgba(230, 184, 92, 0.9);
}
.ab-btn--oro:hover { box-shadow: 0 0 0 1px rgba(255, 240, 200, 0.6) inset, 0 0 26px -2px rgba(243, 207, 134, 0.55); }
.ab-btn--oro:active { background: var(--e-oro-sombra); }

.ab-btn--vino { background: transparent; color: var(--e-oro-luz); border-color: var(--e-oro); }
.ab-btn--vino:hover { background: var(--e-vino); border-color: var(--e-vino-vivo); color: var(--e-blanco); }

.ab-btn--xl { min-height: 58px; padding: 0.95rem 2.1rem; font-size: 1rem; }

/* ---------- cabecera ---------- */

.ab-cab {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(13, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--e-borde);
}
.ab-cab__in {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: var(--e-cab);
  width: min(100% - 2 * var(--e-pad), var(--e-max));
  margin-inline: auto;
}

.ab-marca { display: inline-flex; align-items: baseline; gap: 0.5rem; flex-shrink: 0; color: var(--e-blanco); text-decoration: none; }
.ab-marca__a { font-family: var(--e-titulo); font-size: 1.7rem; font-weight: 800; font-style: italic; letter-spacing: -0.02em; }
.ab-marca__b { color: var(--e-oro); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; }

.ab-menu { margin-left: auto; }
.ab-menu ul { display: flex; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.ab-menu__a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  color: var(--e-gris);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ab-menu__a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.2rem;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--e-oro);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ab-menu__a:hover,
.ab-menu__a[aria-current="true"] { color: var(--e-oro-luz); }
.ab-menu__a:hover::before,
.ab-menu__a[aria-current="true"]::before { opacity: 1; }

.ab-cab__cta { min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.85rem; white-space: nowrap; }

.ab-abre {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid var(--e-borde-2);
  border-radius: 4px;
  background: var(--e-telon);
  color: var(--e-oro-luz);
  font-family: var(--e-cuerpo);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.ab-abre__i { position: relative; width: 18px; height: 2px; background: currentColor; }
.ab-abre__i::before,
.ab-abre__i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.ab-abre__i::before { top: -6px; }
.ab-abre__i::after { top: 6px; width: 12px; }

/* telón móvil */

.ab-telon {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-y: auto;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, var(--e-vino), #3b0c16 70%, var(--e-noche));
  animation: ab-baja 0.32s ease;
}
.ab-telon[hidden] { display: none; }
@keyframes ab-baja { from { transform: translateY(-100%); } to { transform: none; } }
.ab-telon__in { display: flex; flex-direction: column; min-height: 100%; padding: 1rem var(--e-pad) 1.6rem; }
.ab-telon__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 1.2rem; }
.ab-telon__x {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--e-oro);
  border-radius: 50%;
  background: transparent;
  color: var(--e-oro-luz);
  cursor: pointer;
}
.ab-telon__l { margin: 0; padding: 0; list-style: none; counter-reset: ab-t; }
.ab-telon__l li { counter-increment: ab-t; }
.ab-telon__a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(243, 207, 134, 0.2);
  color: var(--e-blanco);
  font-family: var(--e-titulo);
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}
.ab-telon__a::before { content: counter(ab-t, decimal-leading-zero); min-width: 2rem; color: var(--e-oro); font-family: var(--e-cuerpo); font-size: 0.85rem; font-weight: 600; }
.ab-telon__a:hover { color: var(--e-oro-luz); }
.ab-telon__ctas { display: grid; gap: 0.8rem; margin-top: auto; padding-top: 1.8rem; }

/* ---------- héroe tipo cartel ---------- */

.ab-heroe {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 760px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--e-borde);
}
.ab-heroe__foto { position: absolute; inset: 0 0 0 34%; z-index: -2; margin: 0; }
.ab-heroe__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.ab-heroe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--e-noche) 0, var(--e-noche) 34%, rgba(13, 9, 11, 0.55) 46%, rgba(13, 9, 11, 0.05) 70%, rgba(13, 9, 11, 0) 100%),
    linear-gradient(0deg, var(--e-noche) 0, transparent 26%);
}
.ab-heroe__in { padding: clamp(3rem, 7vw, 5rem) 0; }
.ab-heroe__caja { max-width: 600px; padding-left: clamp(1rem, 2.5vw, 1.8rem); border-left: 2px solid var(--e-oro); }

.ab-h1 {
  margin: 0 0 1.2rem;
  color: var(--e-blanco);
  font-family: var(--e-titulo);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ab-heroe__caja p { color: var(--e-texto); }
.ab-heroe__btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.7rem; }

/* ---------- secciones en dos columnas ---------- */

.ab-obra { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.ab-obra > * { min-width: 0; }

.ab-sec {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.6rem);
  padding: clamp(2.2rem, 4.5vw, 3.6rem) 0;
  border-bottom: 1px solid var(--e-borde);
}
.ab-sec:last-child { border-bottom: 0; }
.ab-sec > * { min-width: 0; }

.ab-sec__lado { position: sticky; top: calc(var(--e-cab) + 24px); align-self: start; }
.ab-sec__n {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--e-vino-vivo);
  font-family: var(--e-titulo);
  font-size: clamp(2.6rem, 2rem + 2.2vw, 4.2rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}
.ab-h2 {
  margin: 0;
  color: var(--e-blanco);
  font-family: var(--e-titulo);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}
.ab-h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 0.9rem; background: linear-gradient(90deg, var(--e-oro), transparent); }

.ab-sec__cont > :last-child,
.ab-acto > :last-child { margin-bottom: 0; }
.ab-sec__cont > .ab-acto:first-child { margin-top: 0; }

.ab-acto {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(160deg, var(--e-telon-2), var(--e-telon));
  border: 1px solid var(--e-borde);
  border-radius: 2px 18px 2px 18px;
}
.ab-h3 {
  margin: 0 0 0.75rem;
  color: var(--e-oro-luz);
  font-family: var(--e-titulo);
  font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.ab-llamada { margin: 1.7rem 0 0.4rem; }

/* tablas */

.ab-cuadro {
  margin: 1.2rem 0;
  overflow-x: auto;
  border: 1px solid var(--e-borde-2);
  border-radius: 10px;
  background: var(--e-noche-2);
  -webkit-overflow-scrolling: touch;
}
.ab-cuadro table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.ab-cuadro--ancha table { min-width: 560px; }
.ab-cuadro thead th {
  padding: 0.85rem 1rem;
  background: var(--e-vino);
  color: var(--e-blanco);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.ab-cuadro tbody th,
.ab-cuadro tbody td,
.ab-cuadro tfoot th,
.ab-cuadro tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.ab-cuadro tbody tr + tr > * { border-top: 1px solid var(--e-borde); }
.ab-cuadro tbody th { color: var(--e-oro-luz); font-weight: 600; }
.ab-cuadro tbody tr:hover { background: rgba(163, 36, 59, 0.14); }
.ab-cuadro tfoot { background: linear-gradient(90deg, var(--e-oro), var(--e-oro-luz)); }
.ab-cuadro tfoot th,
.ab-cuadro tfoot td { color: var(--e-tinta); font-weight: 700; }

/* listas */

.ab-vinetas { display: grid; gap: 0.45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ab-vinetas li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.ab-vinetas li::before { content: "✦"; position: absolute; top: 0; left: 0; color: var(--e-oro); font-size: 0.9rem; }

.ab-guion { display: grid; gap: 0; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: ab-g; border-left: 1px solid var(--e-borde-2); }
.ab-guion li { position: relative; padding: 0.55rem 0 0.55rem 2.3rem; counter-increment: ab-g; line-height: 1.5; }
.ab-guion li::before {
  content: counter(ab-g);
  position: absolute;
  top: 0.55rem;
  left: -0.85rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--e-vino);
  border: 1px solid var(--e-oro);
  color: var(--e-oro-luz);
  font-size: 0.8rem;
  font-weight: 700;
}

/* preguntas */

.ab-faq { display: grid; gap: 0; border-top: 1px solid var(--e-borde-2); }
.ab-faq__it { border-bottom: 1px solid var(--e-borde-2); }
.ab-faq__s { display: flex; align-items: center; gap: 1rem; min-height: 60px; padding: 0.9rem 0.2rem; list-style: none; cursor: pointer; }
.ab-faq__s::-webkit-details-marker { display: none; }
.ab-faq__s::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-left: auto;
  border-right: 1.5px solid var(--e-oro);
  border-bottom: 1.5px solid var(--e-oro);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s ease;
}
.ab-faq__it[open] .ab-faq__s::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ab-faq__n { flex-shrink: 0; color: var(--e-vino-vivo); font-family: var(--e-titulo); font-style: italic; font-weight: 700; }
.ab-faq__q { margin: 0; color: var(--e-blanco); font-family: var(--e-cuerpo); font-size: 1.04rem; font-weight: 600; line-height: 1.4; }
.ab-faq__s:hover .ab-faq__q,
.ab-faq__it[open] .ab-faq__q { color: var(--e-oro-luz); }
.ab-faq__r { padding: 0 0.2rem 1.2rem calc(0.2rem + 1.6rem + 1rem); }
.ab-faq__r p { margin: 0; }

/* ---------- pie ---------- */

.ab-pie { background: #080507; border-top: 1px solid var(--e-borde-2); }
.ab-pie__rej { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: start; padding: 2.6rem 0 1.6rem; }
.ab-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--e-gris); font-size: 0.93rem; }
.ab-edad {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--e-vino-vivo);
  color: var(--e-oro-luz);
  font-size: 0.8rem;
  font-weight: 700;
}
.ab-pie__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.ab-pie__nav a { display: inline-block; padding: 0.4rem 0; color: var(--e-texto); text-decoration: none; }
.ab-pie__nav a:hover { color: var(--e-oro-luz); }
.ab-pie__btns { display: grid; gap: 0.7rem; }
.ab-pie__copy { margin: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--e-borde); color: var(--e-gris); font-size: 0.88rem; letter-spacing: 0.04em; }

.ab-arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--e-vino);
  border: 1px solid var(--e-oro);
  color: var(--e-oro-luz);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.ab-arriba.ab-arriba--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1180px) {
  .ab-menu { display: none; }
  .ab-abre { display: inline-flex; }
  .ab-cab__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .ab-sec { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .ab-sec__lado { position: static; }
  .ab-heroe { align-items: flex-end; min-height: 0; padding-top: 52vw; }
  .ab-heroe__foto { inset: 0 0 auto 0; height: 62vw; }
  .ab-heroe::before { background: linear-gradient(180deg, rgba(13, 9, 11, 0) 0, rgba(13, 9, 11, 0.45) 36vw, var(--e-noche) 62vw); }
  .ab-heroe__in { padding-top: 0; }
  .ab-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --e-cab: 64px; }
  body { font-size: 1.01rem; }
  .ab-marca__b { display: none; }
  .ab-cab__cta { padding: 0.5rem 0.8rem; font-size: 0.78rem; }
  .ab-abre__t { display: none; }
  .ab-heroe__btns .ab-btn,
  .ab-llamada .ab-btn { width: 100%; }
  .ab-acto { padding: 1.1rem; }
  .ab-faq__r { padding-left: 0.2rem; }
}
