/* =========================================================
   Siglo21 — Fiestas y Eventos
   Sistema visual basado en el Manual de Marca
   Negro Siglo #0B0B0C · Oro Siglo #C9A55A · Gris Plata #8A8A8E
   Playfair Display Italic (emoción) · Bodoni Moda (cifras) · Montserrat (texto)
   ========================================================= */

:root {
  /* Base clara: Gris Perla cálido. Los oscuros se usan como contraste (.theme-dark) */
  --bg: #EFEEEB;
  --bg-2: #E6E4DF;
  --surface: #FFFFFF;
  --graphite: #2A2A2D;
  --line: rgba(26, 26, 28, 0.12);
  --line-strong: rgba(26, 26, 28, 0.22);

  --black: #0B0B0C;
  --text: #1A1A1C;
  --muted: #55555A;
  --silver: #77777C;

  /* Dorado para texto: Oro Antiguo sobre claro (contraste AA), Oro Siglo sobre oscuro */
  --accent: #8F6F2F;
  --accent-hover: #6F5522;
  --danger: #C2363B;

  --gold: #C9A55A;
  --gold-light: #E9D29A;
  --gold-dark: #9C7A35;

  /* Sección clara */
  --pearl: #EFEEEB;
  --pearl-2: #E4E3DF;
  --ink: #1A1A1C;
  --ink-muted: #5C5C60;

  --font-display: "Playfair Display", Georgia, serif;
  --font-figure: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-body: "Montserrat", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 14px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 152px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Ámbito oscuro: secciones de contraste, hero, header, CTA, footer y fotos */
.theme-dark,
.header,
.page-hero,
.footer,
.photo--placeholder {
  --bg: #161618;
  --bg-2: #1D1D20;
  --surface: #242428;
  --line: rgba(237, 237, 237, 0.09);
  --line-strong: rgba(237, 237, 237, 0.16);
  --text: #EDEDED;
  --muted: #B9B9BD;
  --silver: #8A8A8E;
  --accent: #C9A55A;
  --accent-hover: #E9D29A;
  --danger: #FF8A8D;
  color: var(--text);
}
.theme-dark { background: var(--bg); }
.theme-dark.section--alt { background: var(--bg-2); }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Tipografía ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.title em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.3vw, 1.075rem);
  font-weight: 300;
  color: var(--muted);
  text-wrap: pretty;
}

.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); }

.section__head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}
.section__head--center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s var(--ease-out), transform .2s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost::before { background: rgba(201, 165, 90, 0.12); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; color: var(--accent-hover); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: border-color .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
/* El fondo con blur va en un pseudo-elemento: si backdrop-filter estuviera en
   .header, el menú mobile (position: fixed) quedaría atrapado dentro del header
   y su fondo no cubriría la pantalla. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(22, 22, 24, 0.95);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.header::before { opacity: 1; }
.header.is-scrolled { border-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.menu-open .header { transform: none; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height .4s var(--ease-out);
}
.header.is-scrolled .header__inner { height: 70px; }

.header__logo img { height: 46px; width: auto; transition: height .4s var(--ease-out); }
.header.is-scrolled .header__logo img { height: 38px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav__list {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 8px;
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--text);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 21.5px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    background: rgba(18, 18, 20, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease-out), visibility .4s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 26px; }
  .nav__link {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
  }
  .menu-open .nav__list li { animation: menuIn .6s var(--ease-out) both; }
  .menu-open .nav__list li:nth-child(2) { animation-delay: .06s; }
  .menu-open .nav__list li:nth-child(3) { animation-delay: .12s; }
  .menu-open .nav__list li:nth-child(4) { animation-delay: .18s; }
  .menu-open body { overflow: hidden; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Hero (claro) con marco que se expande al scrollear ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(201, 165, 90, 0.16), transparent 70%),
    var(--bg);
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero.is-static .hero__stage { position: relative; }

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: clamp(112px, 15vh, 150px);
  text-align: center;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span {
  display: inline-block;
  animation: lineUp 1.2s var(--ease-out) both;
}
.hero__title .line:nth-child(1) > span { animation-delay: .2s; }
.hero__title .line:nth-child(2) > span { animation-delay: .35s; }
.hero__title em { font-style: italic; color: var(--accent); }
@keyframes lineUp { from { transform: translateY(105%); } }

.hero__text {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 300;
  color: var(--muted);
  animation: fadeUp 1s var(--ease-out) .6s both;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  animation: fadeUp 1s var(--ease-out) .75s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Marco: el JS anima el clip-path desde un rectángulo redondeado hasta pantalla completa */
.hero__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: var(--bg);
  clip-path: inset(62% 18% 4% 18% round 24px);
  animation: frameIn 1.4s var(--ease-out) .5s both;
}
@keyframes frameIn { from { opacity: 0; transform: translateY(40px); } }

.hero__media {
  position: absolute;
  inset: 0;
  transform: scale(1.35);
  background:
    radial-gradient(ellipse 55% 50% at 50% 55%, rgba(201, 165, 90, 0.2), transparent 70%),
    linear-gradient(160deg, #232326 0%, #121214 100%);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__figure {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-figure);
  font-weight: 400;
  font-size: clamp(16rem, 40vw, 42rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 165, 90, 0.3);
  user-select: none;
  pointer-events: none;
}
.hero__figure::after {
  /* barrido de luz sobre el "21" */
  content: "21";
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 1px var(--gold-light);
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%);
  mask-image: linear-gradient(105deg, transparent 35%, #000 50%, transparent 65%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  animation: sweep 7s var(--ease-in-out) 1.5s infinite;
}
@keyframes sweep {
  0% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  55%, 100% { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.75), rgba(11, 11, 12, 0.1) 45%, rgba(11, 11, 12, 0.35));
  opacity: 0;
}
.hero__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(237, 237, 237, 0.6);
}
.hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  padding-inline: var(--gutter);
  text-align: center;
  opacity: 0;
}
.hero__overlay-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.hero__overlay-title em { font-style: italic; color: var(--accent); }
.hero__overlay-text {
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__overlay-text { letter-spacing: 0.14em; line-height: 2; }
}

/* ---------- Propuesta de valor ---------- */

.value__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.value__intro { position: sticky; top: 120px; }
.value__intro .link-arrow { margin-top: 36px; }

.value__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.value__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.value__item:last-child { border-bottom: 1px solid var(--line); }
.value__num {
  min-width: 120px;
  font-family: var(--font-figure);
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.value__icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: clamp(3rem, 5vw, 4.25rem);
  color: var(--accent);
}
.value__icon svg { width: 46px; height: 46px; stroke-width: 1.2; }
.value__item h3 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.25;
}
.value__item p { margin: 0; color: var(--muted); font-weight: 300; }

@media (max-width: 900px) {
  .value__grid { grid-template-columns: 1fr; }
  .value__intro { position: static; }
}
@media (max-width: 520px) {
  .value__item { grid-template-columns: 1fr; gap: 14px; }
  .value__icon { width: auto; justify-content: start; place-items: start; height: auto; }
}

/* ---------- Galería ---------- */

/* Grilla en bloques (bento), pensada para la forma de cada foto:
   fila 1-3: Ambiente (horizontal, grande) + Momentos (vertical)
   fila 4-5: Detalles + Pista (horizontales) + Catering (vertical) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 14vw, 190px);
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery__item--a { grid-column: span 7; grid-row: span 3; }
.gallery__item--b { grid-column: span 5; grid-row: span 3; }
.gallery__item--c { grid-column: span 4; grid-row: span 2; }
.gallery__item--d { grid-column: span 5; grid-row: span 2; }
.gallery__item--e { grid-column: span 3; grid-row: span 2; }
.gallery__item img { position: absolute; inset: 0; display: block; }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 18px 18px;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0.45) 55%, transparent);
  color: #F2F0EB;
}
.gallery__item .photo__tag { color: #E9D29A; }
.gallery__item .photo__caption { color: #F2F0EB; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.photo:hover img { transform: scale(1.05); }
.photo::after {
  /* contorno sutil para que la foto no se pierda en el fondo */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Placeholder mientras llegan las fotos reales del salón */
.photo--placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 30px);
  background:
    radial-gradient(circle at var(--x, 70%) var(--y, 30%), rgba(233, 210, 154, 0.22), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(201, 165, 90, 0.1), transparent 40%),
    linear-gradient(160deg, #2A2A2D, #1A1A1C);
}
.photo--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(233, 210, 154, 0.5) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at var(--x, 70%) var(--y, 30%), #000, transparent 55%);
  mask-image: radial-gradient(circle at var(--x, 70%) var(--y, 30%), #000, transparent 55%);
  opacity: 0.5;
}
.photo__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.photo__caption {
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  color: var(--text);
}

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .gallery__item--a { grid-column: span 2; grid-row: span 2; }
  .gallery__item--b { grid-column: span 1; grid-row: span 2; }
  .gallery__item--c,
  .gallery__item--d { grid-column: span 1; grid-row: span 1; }
  .gallery__item--e { grid-column: span 2; grid-row: span 2; }
  .gallery__item figcaption { padding: 36px 14px 14px; }
  .gallery__item--c .photo__caption,
  .gallery__item--d .photo__caption { display: none; }
}

/* ---------- Servicios ---------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg);
  overflow: hidden;
  transition: background-color .5s var(--ease-out);
}
.section--alt .service { background: var(--bg-2); }
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.service:hover { background: var(--surface); }
.service:hover::before { transform: scaleX(1); }

.service__num {
  font-family: var(--font-figure);
  font-size: 14px;
  color: var(--silver);
  font-variant-numeric: lining-nums;
}
.service__mark {
  margin-top: auto;
  font-family: var(--font-figure);
  font-size: 4.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 165, 90, 0.55);
  transition: color .6s var(--ease-out), transform .6s var(--ease-out);
}
.service:hover .service__mark { color: rgba(201, 165, 90, 0.14); transform: translateY(-4px); }
.service h3 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  line-height: 1.2;
}
.service p { margin: 0; font-weight: 300; color: var(--muted); }

.service--cta {
  justify-content: center;
  gap: 18px;
  background: var(--gold) !important;
  color: var(--black);
}
.service--cta h3 { margin: 0; color: var(--black); }
.service--cta p { color: rgba(11, 11, 12, 0.75); }
.service--cta .link-arrow { color: var(--black); }
.service--cta::before { display: none; }

@media (max-width: 980px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 220px; }
}

/* ---------- Reseñas: cinta infinita ---------- */

.reviews { overflow: hidden; }
.reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.reviews__score small { display: block; font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; color: #E8A93A; }
.stars svg { width: 16px; height: 16px; }

.marquee {
  display: grid;
  gap: 20px;
  padding-block: 8px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y; /* el scroll vertical sigue funcionando; el arrastre horizontal mueve la cinta */
  user-select: none;
  -webkit-user-select: none;
}
.marquee.is-dragging { cursor: grabbing; }
/* La cinta la mueve main.js (avance continuo + arrastre con mouse o dedo) */
.marquee__row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.review {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: clamp(290px, 30vw, 410px);
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 36px -24px rgba(0, 0, 0, 0.22);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 26px 44px -24px rgba(0, 0, 0, 0.3); }
.review__quote { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.review__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.review__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}
.review__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold-light);
  font-family: var(--font-figure);
  font-size: 1.05rem;
}
.review__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.review__meta { font-size: 12px; color: var(--muted); line-height: 1.4; }
.review__meta .stars { vertical-align: -2px; margin-right: 6px; }
.review__meta .stars svg { width: 12px; height: 12px; }
.review__google { margin-left: auto; width: 24px; height: 24px; flex: none; }

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.faq__aside { position: sticky; top: 120px; }
.faq__aside .btn { margin-top: 32px; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  transition: color .3s;
}
.faq__q:hover { color: var(--accent-hover); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); border-color: var(--accent); background: rgba(201, 165, 90, 0.1); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 0 60px 30px 0;
  color: var(--muted);
  font-weight: 300;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .12s; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .faq__a p { padding-right: 0; }
}

/* ---------- Mapa ---------- */

.location__grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.location__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(32px, 4vw, 56px);
}
.location__info .title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.info-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.info-list li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; }
.info-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.info-list strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.info-list span, .info-list a { color: var(--text); }
.info-list a:hover { color: var(--accent-hover); }
.location__map { position: relative; min-height: 440px; background: var(--surface); }
.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* mapa en tonos de la marca */
  filter: grayscale(0.9) invert(0.92) contrast(0.9) sepia(0.15);
}

@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; }
  .location__map { min-height: 340px; }
}

/* ---------- CTA final ---------- */

.cta {
  position: relative;
  padding-block: clamp(110px, 15vw, 190px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 50% 110%, rgba(201, 165, 90, 0.28), transparent 70%),
    var(--bg-2);
}
.cta__rings {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 160vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta__rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(156, 122, 53, 0.28);
  border-radius: 50%;
  animation: ring 9s linear infinite;
}
.cta__rings span:nth-child(2) { animation-delay: -3s; }
.cta__rings span:nth-child(3) { animation-delay: -6s; }
@keyframes ring {
  from { transform: scale(0.25); opacity: 0; }
  20% { opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}
.cta__inner { position: relative; z-index: 1; }
.cta .title { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.cta .lead { margin-inline: auto; }
.cta .btn { margin-top: 44px; }

/* ---------- Footer ---------- */

.footer {
  padding-block: 72px 32px;
  background: var(--black);
  color: var(--muted);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { max-width: 32ch; margin: 22px 0 0; font-weight: 300; }
.footer h4 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--accent-hover); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--silver);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6);
  transform: scale(0);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { background: var(--gold-light); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Page header (páginas internas) ---------- */

.page-hero {
  position: relative;
  padding-block: clamp(170px, 20vw, 230px) clamp(70px, 9vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(201, 165, 90, 0.14), transparent 70%),
    linear-gradient(180deg, #1B1B1E 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero__title { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero .lead { animation: fadeUp 1s var(--ease-out) .7s both; }
.page-hero .eyebrow { animation: fadeUp 1s var(--ease-out) .1s both; }
.page-hero__figure {
  position: absolute;
  right: -2vw;
  bottom: -0.18em;
  font-family: var(--font-figure);
  font-size: clamp(12rem, 30vw, 28rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 165, 90, 0.2);
  pointer-events: none;
  user-select: none;
  animation: fadeUp 1.6s var(--ease-out) .2s both;
}

/* ---------- Nosotros ---------- */

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.story__text p { color: var(--muted); font-weight: 300; margin: 0 0 18px; }
.story__text .title + p { margin-top: 26px; }
.story__visual { aspect-ratio: 4 / 5; }
.story__visual.photo { grid-column: auto; grid-row: auto; }
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__visual { aspect-ratio: 4 / 3; }
}

.quote-block {
  margin: 0;
  padding-block: clamp(80px, 10vw, 130px);
  text-align: center;
}
.quote-block blockquote {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.3;
  text-wrap: balance;
}
.quote-block blockquote em { color: var(--accent); }
.quote-block figcaption {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(32px, 4vw, 52px) clamp(16px, 3vw, 40px); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-figure);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__label { margin-top: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.value-card {
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.value-card:hover { border-color: rgba(201, 165, 90, 0.5); transform: translateY(-4px); }
.value-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--accent-hover);
}
.value-card p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; }
@media (max-width: 1000px) { .values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values__grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C9A55A' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input::placeholder,
.field textarea::placeholder { color: #6E6E73; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.18);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #E5484D; }
.field__error { min-height: 0; font-size: 13px; color: var(--danger); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--silver); }
.form__success {
  grid-column: 1 / -1;
  display: none;
  padding: 18px 20px;
  border: 1px solid rgba(201, 165, 90, 0.5);
  border-radius: var(--radius);
  background: rgba(201, 165, 90, 0.08);
  color: var(--accent-hover);
}
.form.is-sent .form__success { display: block; animation: fadeUp .6s var(--ease-out) both; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form__actions .btn { width: 100%; } }

.contact-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.contact-card + .contact-card { margin-top: 18px; }
.contact-card h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
}
.contact-card .btn { width: 100%; margin-top: 26px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-img { clip-path: inset(12% 0 0 0 round var(--radius-lg)); opacity: 0; transition: clip-path 1.3s var(--ease-out), opacity 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); opacity: 1; }

.no-js .reveal,
.no-js .reveal-img { opacity: 1; transform: none; clip-path: none; }

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; cursor: auto; touch-action: auto; user-select: auto; -webkit-user-select: auto; }
  .marquee__row { transform: none !important; padding-inline: var(--gutter); }
  .marquee__row [data-clone] { display: none; }
}

/* Evita que el contenido (p. ej. el slider) ensanche las columnas de la grilla */
.faq__grid > *,
.value__grid > *,
.story__grid > *,
.contact__grid > *,
.location__grid > * { min-width: 0; }

/* ---------- Servicios: Pixel Card ---------- */
.pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.service > :not(.pixel-canvas) { position: relative; z-index: 1; }
.service[data-active] { background: #121214; }
.service[data-active] .service__mark { color: rgba(201, 165, 90, 0.14); transform: translateY(-4px); }

/* ---------- Hero: foto dentro del marco ---------- */
.hero__photo { z-index: 0; }
.hero__canvas { z-index: 1; opacity: 0.7; }
.hero__media { background: #161618; }



/* ---------- Fondo Galaxy (CTA final y encabezados de páginas internas) ---------- */
.galaxy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.galaxy-canvas { display: block; width: 100%; height: 100%; }
.page-hero > .container { position: relative; z-index: 1; }
.cta.theme-dark {
  background:
    radial-gradient(ellipse 55% 70% at 50% 110%, rgba(201, 165, 90, 0.18), transparent 70%),
    #0F0F11;
}
.page-hero { background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(201, 165, 90, 0.1), transparent 70%), #0F0F11; }

/* ---------- Servicios: botón "Ver más" en cada tarjeta ---------- */
.service__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: border-color .3s, background-color .3s, color .3s;
}
.service__link svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out); }
.service__link:hover { border-color: var(--accent); background: rgba(201, 165, 90, 0.1); color: var(--accent-hover); }
.service__link:hover svg { transform: translateX(4px); }
.service { cursor: pointer; }
.service--cta { cursor: default; }

/* "¿Otra celebración?": botón oscuro sólido sobre el dorado */
.btn--ink {
  --btn-bg: #0B0B0C;
  --btn-fg: #EDEDED;
  align-self: flex-start;
  margin-top: 8px;
  box-shadow: 0 10px 24px -12px rgba(11, 11, 12, 0.6);
}
.btn--ink::before { background: #2A2A2D; }
.btn--ink:hover { color: #FFF4D6; }

/* ---------- Páginas de servicio ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  animation: fadeUp 1s var(--ease-out) .1s both;
}
.breadcrumb a { color: var(--muted); transition: color .3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); }
.page-hero__actions { margin-top: 34px; animation: fadeUp 1s var(--ease-out) .85s both; }

.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.include {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.include:hover { border-color: rgba(156, 122, 53, 0.45); transform: translateY(-3px); }
.include__num { font-family: var(--font-figure); font-size: 14px; color: var(--accent); }
.include h3 { margin: 14px 0 8px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.4rem; }
.include p { margin: 0; font-size: 15px; font-weight: 300; color: var(--muted); }

.moments, .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.moment, .step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.moment__num, .step__num {
  display: block;
  font-family: var(--font-figure);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
}
.moment h3, .step h3 { margin: 18px 0 8px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.35rem; }
.moment p, .step p { margin: 0; font-size: 15px; font-weight: 300; color: var(--muted); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.reviews-grid .review { width: auto; }

@media (max-width: 980px) {
  .include-grid { grid-template-columns: repeat(2, 1fr); }
  .moments, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .include-grid, .moments, .steps { grid-template-columns: 1fr; }
}

/* ---------- Encabezado de servicio con foto ---------- */
.page-hero--photo { min-height: min(88vh, 760px); display: flex; align-items: flex-end; }
.page-hero--photo > .container { width: 100%; }
.page-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  z-index: 0;
  animation: heroPhotoIn 1.8s var(--ease-out) both;
}
.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.82) 40%, rgba(11, 11, 12, 0.35) 68%, rgba(11, 11, 12, 0.1) 88%),
    linear-gradient(0deg, rgba(11, 11, 12, 0.85) 0%, transparent 45%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, transparent 25%);
}
.page-hero--photo .galaxy { opacity: 0.55; }
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .page-hero--photo { min-height: 82vh; }
  .page-hero__photo { object-position: 74% 30%; }
  .page-hero__shade {
    background:
      linear-gradient(0deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.75) 45%, rgba(11, 11, 12, 0.2) 80%),
      linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, transparent 25%);
  }
}
@media (prefers-reduced-motion: reduce) { .page-hero__photo { animation: none; } }
@media (min-width: 761px) {
  .page-hero--photo { background: #0B0B0C; }
  .page-hero__photo { left: auto; right: 0; width: 66%; object-position: 70% 35%; }
  .page-hero__shade {
    background:
      linear-gradient(90deg, #0B0B0C 0%, #0B0B0C 34%, rgba(11, 11, 12, 0.55) 48%, rgba(11, 11, 12, 0.05) 70%, rgba(11, 11, 12, 0.2) 100%),
      linear-gradient(0deg, rgba(11, 11, 12, 0.7) 0%, transparent 35%),
      linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0%, transparent 25%);
  }
}

/* Ubicación sobre fondo claro: tarjeta blanca y mapa en tonos claros */
.section--alt .location__grid { background: var(--surface); }
.section--alt .location__map iframe { filter: grayscale(0.85) contrast(0.95) sepia(0.12); }

/* =====================================================================
   Animaciones de entrada (cada tipo de elemento tiene su propio gesto)
   ===================================================================== */

:root { --shine: #E2C27E; --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1); }
.theme-dark, .header, .page-hero, .footer { --shine: #FFF1C9; }

/* 1. Títulos de sección: palabras que suben desde una máscara, con un leve giro y desenfoque */
.title.is-split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.08em 0.14em 0;
  margin: 0 -0.08em -0.14em 0;
}
.title.is-split .w__i {
  display: inline-block;
  translate: 0 108%;
  rotate: 6deg;
  opacity: 0;
  filter: blur(8px);
  transform-origin: 0 100%;
  transition:
    translate 1.1s var(--ease-expo),
    rotate 1.1s var(--ease-expo),
    opacity .7s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.head-anim.is-in .title.is-split .w__i { translate: 0 0; rotate: 0deg; opacity: 1; filter: blur(0); }

/* La parte en itálica dorada: al terminar de entrar, la recorre un brillo */
.title.is-split .w__i--shine {
  background: linear-gradient(105deg, var(--accent) 0 38%, var(--shine) 50%, var(--accent) 62% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.head-anim.is-in .title.is-split .w__i--shine {
  animation: titleShine 1.8s var(--ease-in-out) both;
  animation-delay: calc(var(--words, 4) * 70ms + 650ms + var(--i, 0) * 60ms);
}
@keyframes titleShine { from { background-position: 100% 0; } to { background-position: 0% 0; } }

/* Bajada, botones y textos que acompañan al título: entran después, con desenfoque */
.head-anim .after-title {
  opacity: 0;
  translate: 0 18px;
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-expo), filter 1s var(--ease-out);
  transition-delay: calc(var(--words, 4) * 70ms + 260ms + var(--k, 0) * 120ms);
}
.head-anim.is-in .after-title { opacity: 1; translate: 0 0; filter: blur(0); }

/* 2. Encabezados (H1): la itálica dorada también brilla al cargar */
.hero__title em {
  background: linear-gradient(105deg, var(--accent) 0 38%, var(--shine) 50%, var(--accent) 62% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 2s var(--ease-in-out) 1.2s both;
}
.page-hero__figure { will-change: translate; }

/* 3. Servicios: las tarjetas se levantan como una carta, de a una */
.services__grid { perspective: 1200px; }
.services__grid > .reveal {
  transform: none;
  translate: 0 60px;
  rotate: x 16deg;
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-expo), rotate 1.1s var(--ease-expo), background-color .5s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 90ms), calc(var(--n, 0) * 90ms), calc(var(--n, 0) * 90ms), 0s;
}
.services__grid > .reveal.is-in { translate: 0 0; rotate: x 0deg; }

/* 4. "Lo que incluye" y valores: aparecen con un pequeño rebote de escala */
.include-grid > .reveal,
.values__grid > .reveal {
  transform: none;
  translate: 0 26px;
  scale: 0.94;
  filter: blur(4px);
  transition: opacity .8s var(--ease-out), translate .9s var(--ease-back), scale .9s var(--ease-back), filter .8s var(--ease-out), border-color .3s, transform .5s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 80ms), calc(var(--n, 0) * 80ms), calc(var(--n, 0) * 80ms), calc(var(--n, 0) * 80ms), 0s, 0s;
}
.include-grid > .reveal.is-in,
.values__grid > .reveal.is-in { translate: 0 0; scale: 1; filter: blur(0); }
.include-grid > .reveal.is-in:hover { transform: translateY(-3px); }
.values__grid > .reveal.is-in:hover { transform: translateY(-4px); }

/* 5. Pasos y momentos: entran desde la izquierda y la línea superior se dibuja */
.steps > .reveal,
.moments > .reveal {
  transform: none;
  translate: -28px 0;
  transition: opacity .9s var(--ease-out), translate 1s var(--ease-expo);
  transition-delay: calc(var(--n, 0) * 120ms);
}
.steps > .reveal.is-in,
.moments > .reveal.is-in { translate: 0 0; }
.steps > .reveal::after,
.moments > .reveal::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-expo);
  transition-delay: calc(var(--n, 0) * 120ms + 250ms);
}
.steps > .reveal.is-in::after,
.moments > .reveal.is-in::after { transform: scaleX(1); }

/* 6. Propuesta (+30 años, precio congelado...): cada fila se desliza desde la derecha */
.value__list > .reveal {
  transform: none;
  translate: 40px 0;
  transition: opacity .9s var(--ease-out), translate 1.1s var(--ease-expo);
  transition-delay: calc(var(--n, 0) * 130ms);
}
.value__list > .reveal.is-in { translate: 0 0; }

/* 7. Preguntas frecuentes: cada pregunta entra desde la derecha */
.faq__list.reveal { transform: none; opacity: 1; }
.faq__list .faq__item {
  opacity: 0;
  translate: 32px 0;
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-expo);
  transition-delay: calc(var(--n, 0) * 70ms + 150ms);
}
.faq__list.is-in .faq__item { opacity: 1; translate: 0 0; }

/* 8. Galería: cada foto se descubre desde una dirección distinta y la imagen "se asienta" */
.gallery__item.reveal-img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); opacity: 1; transition: clip-path 1.4s var(--ease-expo); transition-delay: var(--d, 0s); }
.gallery__item--a.reveal-img { clip-path: inset(0 100% 0 0 round var(--radius-lg)); }
.gallery__item--b.reveal-img { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
.gallery__item--e.reveal-img { clip-path: inset(0 0 0 100% round var(--radius-lg)); }
.gallery__item.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.gallery__item.reveal-img img { scale: 1.22; transition: scale 2s var(--ease-expo), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s), 0s; }
.gallery__item.reveal-img.is-in img { scale: 1; }
.gallery__item figcaption { opacity: 0; translate: 0 12px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-expo); transition-delay: calc(var(--d, 0s) + .7s); }
.gallery__item.is-in figcaption { opacity: 1; translate: 0 0; }

/* 9. Reseñas: la cinta entra deslizándose desde la derecha */
.marquee.reveal { transform: none; translate: 80px 0; transition: opacity 1.2s var(--ease-out), translate 1.6s var(--ease-expo); }
.marquee.reveal.is-in { translate: 0 0; }

/* 10. Mapa y bloque de ubicación: se abren con escala suave */
.location__grid.head-anim { opacity: 0; scale: 0.97; transition: opacity 1s var(--ease-out), scale 1.2s var(--ease-expo); }
.location__grid.head-anim.is-in { opacity: 1; scale: 1; }

/* 11. Cita de Nosotros y números: entrada amplia y lenta */
.quote-block.reveal { transform: none; scale: 0.96; filter: blur(6px); transition: opacity 1.2s var(--ease-out), scale 1.4s var(--ease-expo), filter 1.2s var(--ease-out); }
.quote-block.reveal.is-in { scale: 1; filter: blur(0); }
.stats.reveal { transform: none; translate: 0 30px; transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-back); }
.stats.reveal.is-in { translate: 0 0; }

/* Sin movimiento para quien lo pidió en su sistema */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img, .head-anim, .head-anim .after-title, .faq__list .faq__item,
  .gallery__item figcaption, .gallery__item.reveal-img img {
    opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; filter: none !important; clip-path: none !important;
  }
  .hero__title em { animation: none; background: none; color: var(--accent); }
}

/* ---------- Galería: enlace a la foto grande + visor ---------- */
.gallery__link { position: absolute; inset: 0; display: block; cursor: zoom-in; border-radius: inherit; }
.gallery__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery__item figcaption { pointer-events: none; }
.gallery__item::before {
  /* ícono de "ampliar" que aparece al pasar el mouse */
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E9D29A' stroke-width='1.6'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  backdrop-filter: blur(6px);
  opacity: 0;
  scale: 0.8;
  transition: opacity .3s var(--ease-out), scale .4s var(--ease-out);
  pointer-events: none;
}
.gallery__item:hover::before,
.gallery__item:focus-within::before { opacity: 1; scale: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #F2F0EB;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 8, 9, 0.94); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lbIn .35s var(--ease-out); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 64px clamp(16px, 7vw, 96px) 12px;
  min-height: 0;
  touch-action: pan-y;
}
.lightbox__img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 190px);
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  animation: lbImg .5s var(--ease-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.lightbox__caption {
  padding: 14px 20px 26px;
  text-align: center;
}
.lightbox__caption .photo__tag { display: block; color: #E9D29A; }
.lightbox__caption .photo__caption { display: block; color: #F2F0EB; }
.lightbox__count { display: block; margin-top: 8px; font-size: 12px; color: #8A8A8E; letter-spacing: .12em; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(242, 240, 235, 0.2);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.6);
  color: #F2F0EB;
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.lightbox__btn:hover { border-color: #C9A55A; color: #E9D29A; }
.lightbox__btn:focus-visible { outline: 2px solid #E9D29A; outline-offset: 2px; }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: clamp(10px, 2vw, 28px); top: 50%; translate: 0 -50%; }
.lightbox__next { right: clamp(10px, 2vw, 28px); top: 50%; translate: 0 -50%; }
@media (max-width: 760px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; translate: none; }
  .lightbox__stage { padding-inline: 12px; }
}
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; scale: 0.96; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open], .lightbox__img { animation: none; } }
html.lightbox-open { overflow: hidden; }

/* Hero con el neón: centrado en el cartel */
.hero__photo { object-position: 52% 44%; }
.hero__media { transform-origin: 52% 0%; }

/* ---------- Menú: submenú desplegable de Servicios ---------- */
.nav__item--sub { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__sub-toggle {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s, background-color .3s;
}
.nav__sub-toggle svg { width: 14px; height: 14px; transition: transform .4s var(--ease-out); }
.nav__sub-toggle:hover { color: var(--gold); }
.nav__sub-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  width: 300px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid rgba(201, 165, 90, 0.22);
  border-radius: 14px;
  background: rgba(20, 20, 22, 0.98);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  translate: -50% 10px;
  transition: opacity .3s var(--ease-out), translate .45s var(--ease-out), visibility .3s;
}
/* puente invisible para que el mouse no "pierda" el menú al bajar */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__sub li { opacity: 0; translate: 0 6px; transition: opacity .3s var(--ease-out), translate .4s var(--ease-out); }
.nav__sub li:nth-child(2) { transition-delay: .03s; }
.nav__sub li:nth-child(3) { transition-delay: .06s; }
.nav__sub li:nth-child(4) { transition-delay: .09s; }
.nav__sub li:nth-child(5) { transition-delay: .12s; }
.nav__sub li:nth-child(6) { transition-delay: .15s; }

@media (min-width: 901px) {
  .nav__item--sub { padding-block: 16px; margin-block: -16px; }
  .nav__item--sub:hover .nav__sub,
  .nav__item--sub:focus-within .nav__sub,
  .nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; translate: -50% 0; }
  .nav__item--sub:hover .nav__sub li,
  .nav__item--sub:focus-within .nav__sub li,
  .nav__item--sub.is-open .nav__sub li { opacity: 1; translate: 0 0; }
  .nav__item--sub:hover .nav__sub-toggle svg,
  .nav__item--sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
  .nav__item--sub:hover > .nav__link { color: var(--text); }
}

.nav__sub-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #E7E5E0;
  transition: background-color .25s, color .25s;
}
.nav__sub-mark {
  flex: 0 0 34px;
  font-family: var(--font-figure);
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
  text-align: center;
  transition: transform .4s var(--ease-out);
}
.nav__sub-link:hover,
.nav__sub-link:focus-visible { background: rgba(201, 165, 90, 0.1); color: #fff; outline: none; }
.nav__sub-link:hover .nav__sub-mark { transform: scale(1.12); }
.nav__sub-link[aria-current="page"] { background: rgba(201, 165, 90, 0.14); color: #fff; }
.nav__sub-all { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.nav__sub-all .nav__sub-link {
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav__sub-all svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.nav__sub-all .nav__sub-link:hover svg { transform: translateX(4px); }

/* Menú mobile: "Servicios" se despliega dentro de la pantalla del menú */
@media (max-width: 900px) {
  .nav__item--sub { flex-wrap: wrap; justify-content: center; column-gap: 6px; }
  .nav__sub-toggle { width: 40px; height: 40px; color: var(--gold); }
  .nav__sub-toggle svg { width: 20px; height: 20px; }
  .nav__item--sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
  .nav__sub {
    position: static;
    flex-basis: 100%;
    width: auto;
    max-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    translate: none;
    transition: max-height .5s var(--ease-out), opacity .3s, visibility .3s, padding .3s;
  }
  .nav__sub::before { display: none; }
  .nav__item--sub.is-open .nav__sub { max-height: 420px; padding-top: 12px; opacity: 1; visibility: visible; }
  .nav__item--sub.is-open .nav__sub li { opacity: 1; translate: 0 0; }
  .nav__sub-link { justify-content: center; padding: 9px 12px; font-size: 1.05rem; }
  .nav__sub-mark { flex-basis: auto; font-size: 16px; }
  .nav__sub-all { border-top: 0; margin-top: 0; }
  .nav__sub-all .nav__sub-link { justify-content: center; gap: 10px; }
}

/* ---------- Pie: crédito ALFACOM ---------- */
.footer__credit { display: inline-flex; align-items: center; gap: 10px; }
.footer__credit a { display: inline-flex; }
.footer__credit img { height: 18px; width: auto; opacity: .75; transition: opacity .3s; }
.footer__credit a:hover img,
.footer__credit a:focus-visible img { opacity: 1; }
