/* Alejandro Privé — fachada · modo oscuro · tensión editorial */
:root {
  --midnight: #050506;
  --carbon: #111217;
  --concrete: #8c8c8c;
  --bone: #f5f3ef;
  --wine: #4a1c2a;
  --wine-glow: rgb(74 28 42 / 0.45);
  --wine-soft: rgb(74 28 42 / 0.18);
  --skin-warm: rgb(200 165 150 / 0.06);
  --ease-heavy: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-door: 720ms;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone);
  background-color: var(--midnight);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgb(74 28 42 / 0.22), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgb(200 165 150 / 0.04), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgb(74 28 42 / 0.12), transparent 50%);
  min-height: 100dvh;
  overflow-x: hidden;
}

::selection {
  background: rgb(74 28 42 / 0.55);
  color: var(--bone);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--bone);
  color: var(--midnight);
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(
    to bottom,
    rgb(5 5 6 / 0.97) 0%,
    rgb(5 5 6 / 0.75) 45%,
    rgb(5 5 6 / 0)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.mark {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.mark__mono {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  border: 1px solid rgb(140 140 140 / 0.45);
  padding: 0.35rem 0.45rem;
  line-height: 1;
  opacity: 0.95;
}

.mark__word {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.nav-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-primary a {
  color: var(--concrete);
  text-decoration: none;
  transition: color 0.35s var(--ease-heavy);
}

.nav-primary a:hover,
.nav-primary a:focus-visible {
  color: rgb(235 220 215 / 0.98);
  text-shadow: 0 0 24px rgb(74 28 42 / 0.35);
}

.nav-primary__quiet {
  opacity: 0.75;
}

.nav-cta {
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgb(245 243 239 / 0.35);
  color: var(--bone);
  background: transparent;
  padding: 0.5rem 0.9rem;
  transition:
    border-color 0.4s var(--ease-heavy),
    background 0.4s var(--ease-heavy);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgb(92 36 54 / 0.9);
  background: var(--wine-soft);
  box-shadow: 0 0 28px var(--wine-glow);
}

/* Paneles base */
.panel {
  min-height: auto;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1rem, 4vw, 3rem) 3rem;
}

/* Fachada / hero */
.panel--facade {
  padding: 0;
  position: relative;
  display: grid;
  place-items: stretch;
}

.facade__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--carbon);
  overflow: hidden;
}

.facade__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
  transform: scale(1.01);
}

.facade__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Atmósfera nocturna sobre foto (sustituir video cuando exista fuente MP4) */
.facade__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(155deg, rgb(5 5 6 / 0.92) 0%, transparent 48%),
    linear-gradient(325deg, rgb(17 18 23 / 0.96) 0%, rgb(5 5 6 / 0.88) 100%),
    radial-gradient(ellipse 95% 75% at 55% 28%, rgb(255 255 255 / 0.055), transparent 52%),
    radial-gradient(ellipse 85% 65% at 50% 100%, rgb(74 28 42 / 0.35), transparent 58%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgb(200 165 150 / 0.07), transparent 55%);
  filter: grayscale(0.28) contrast(1.06) brightness(0.92);
  animation: facade-drift 28s var(--ease-out-soft) infinite alternate;
}

.facade__media--has-photo::before {
  opacity: 0.97;
}

@media (prefers-reduced-motion: reduce) {
  .facade__media::before {
    animation: none;
  }
}

.facade__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 28%, rgb(5 5 6 / 0.52) 100%);
  pointer-events: none;
}

.facade__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes facade-drift {
  0% {
    filter: grayscale(0.32) contrast(1.03);
    opacity: 1;
  }
  100% {
    filter: grayscale(0.42) contrast(1.08);
    opacity: 0.97;
  }
}

.facade__content {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 18vh, 10rem) clamp(1.25rem, 5vw, 2.5rem) calc(4rem + env(safe-area-inset-bottom, 0px));
}

.facade__overline {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgb(140 140 140 / 0.88);
  margin: 0 0 1.5rem;
}

.facade__title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 9vw, 4.65rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.06;
}

.facade__title__inner {
  display: inline-block;
  background: linear-gradient(
    180deg,
    rgb(245 243 239 / 1) 0%,
    rgb(245 243 239 / 0.88) 45%,
    rgb(200 175 165 / 0.75) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgb(74 28 42 / 0.25);
  filter: drop-shadow(0 4px 24px rgb(0 0 0 / 0.45));
}

@supports not (background-clip: text) {
  .facade__title__inner {
    color: var(--bone);
    background: none;
  }
}

.facade__divider {
  width: min(5rem, 28vw);
  height: 1px;
  margin: 1.75rem auto 1.5rem;
  border: none;
  background: linear-gradient(90deg, transparent, rgb(74 28 42 / 0.85), rgb(245 243 239 / 0.35), transparent);
  opacity: 0.9;
}

.facade__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 3.2vw, 1.72rem);
  font-weight: 500;
  font-style: normal;
  margin: 0 0 1.25rem;
  max-width: 26rem;
  line-height: 1.38;
  color: rgb(245 243 239 / 0.96);
}

.facade__headline em {
  font-style: italic;
  font-weight: 500;
  color: rgb(235 220 215 / 0.98);
}

.facade__sub {
  margin: 0 0 2.5rem;
  max-width: min(26rem, 92vw);
  font-size: 0.94rem;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: rgb(160 158 155 / 0.98);
  font-weight: 400;
}

.facade__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  align-items: center;
}

.facade__cta {
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.35s var(--ease-heavy),
    border-color 0.35s var(--ease-heavy),
    color 0.35s var(--ease-heavy);
}

.facade__cta--solid {
  color: var(--midnight);
  background: linear-gradient(180deg, rgb(252 250 247) 0%, rgb(235 228 222) 100%);
  border-color: rgb(245 243 239 / 0.95);
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(74 28 42 / 0.15);
}

.facade__cta--solid:hover,
.facade__cta--solid:focus-visible {
  background: linear-gradient(180deg, rgb(255 252 248) 0%, rgb(245 236 228) 100%);
  box-shadow: 0 8px 32px rgb(74 28 42 / 0.25), 0 0 0 1px rgb(74 28 42 / 0.25);
}

.facade__cta--line {
  color: rgb(245 243 239 / 0.92);
  background: transparent;
  border-color: rgb(74 28 42 / 0.55);
}

.facade__cta--line:hover,
.facade__cta--line:focus-visible {
  border-color: rgb(92 36 54 / 0.95);
  background: var(--wine-soft);
  box-shadow: 0 0 36px var(--wine-glow);
}

/* El Estudio (teaser editorial) — sin tarjetas */
.panel--editorial {
  max-width: 38rem;
  margin: 0 auto;
  padding-top: clamp(4rem, 12vh, 7rem);
  padding-bottom: clamp(4rem, 10vh, 6rem);
  padding-left: clamp(0.5rem, 2vw, 1rem);
  padding-right: clamp(0.5rem, 2vw, 1rem);
  border-top: 1px solid rgb(140 140 140 / 0.14);
}

.studio__lede {
  margin: 0 0 2.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(180 175 170 / 0.95);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.85s var(--ease-heavy),
    transform 0.85s var(--ease-heavy);
}

.studio__lede.editorial-block--inview {
  opacity: 1;
  transform: translateY(0);
}

.editorial-block {
  position: relative;
  padding: 2.75rem 0 2.75rem 1.15rem;
  border-bottom: 1px solid rgb(140 140 140 / 0.1);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease-heavy),
    transform 0.8s var(--ease-heavy),
    border-color 0.5s var(--ease-heavy),
    background 0.5s var(--ease-heavy);
}

.editorial-block.editorial-block--inview {
  opacity: 1;
  transform: translateY(0);
}

.editorial-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgb(74 28 42 / 0.85), transparent);
  opacity: 0.35;
  transition: opacity 0.45s var(--ease-heavy);
}

.editorial-block:hover::before,
.editorial-block:focus-within::before {
  opacity: 1;
}

.editorial-block:hover {
  background: linear-gradient(90deg, rgb(74 28 42 / 0.08), transparent 55%);
}

.editorial-block--last {
  border-bottom: none;
  padding-bottom: 1rem;
}

.editorial-block__fig {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 1px solid rgb(140 140 140 / 0.18);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: min(56vh, 480px);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.35);
}

.editorial-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: contrast(1.04) saturate(0.94);
  transition:
    transform 0.75s var(--ease-heavy),
    filter 0.5s var(--ease-heavy);
}

.editorial-block:hover .editorial-block__img {
  transform: scale(1.03);
  filter: contrast(1.06) saturate(1);
}

.bitacora-audio {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(140 140 140 / 0.12);
}

.bitacora-audio__label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(180 145 155 / 0.88);
  margin: 0 0 0.85rem;
}

.bitacora-audio__el {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 2.35rem;
  accent-color: #4a1c2a;
}

.bitacora-audio__hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgb(140 140 140 / 0.95);
}

.bitacora-audio__hint code {
  font-family: ui-monospace, monospace;
  font-size: 0.84em;
  color: rgb(220 210 205 / 0.9);
}

.editorial-block__title {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 3vw, 1.72rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  color: rgb(245 243 239 / 0.96);
}

.editorial-block__txt {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgb(245 243 239 / 0.76);
  letter-spacing: 0.01em;
}

/* Footer */
.site-footer {
  padding: clamp(3rem, 8vh, 4.5rem) clamp(1rem, 4vw, 3rem) 4rem;
  border-top: 1px solid rgb(140 140 140 / 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: var(--concrete);
}

.site-footer__line {
  margin: 0 0 0.65rem;
}

.site-footer__line:last-of-type {
  margin-bottom: 1.25rem;
}

.site-footer__link {
  color: rgb(245 243 239 / 0.82);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease-heavy);
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: rgb(235 220 215 / 0.98);
  text-shadow: 0 0 20px rgb(74 28 42 / 0.4);
}

.site-footer__sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}

.site-footer__domain {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.muted {
  opacity: 0.75;
}

/* Overlay acceso */
.private-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.private-overlay[hidden] {
  display: none;
}

.private-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgb(5 5 6 / 0);
  transition: background var(--dur-door) var(--ease-heavy);
}

.private-overlay.is-open .private-overlay__scrim {
  background: rgb(5 5 6 / 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.private-overlay__panel {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  width: 100%;
  padding: 2.25rem 1.75rem;
  border: 1px solid rgb(74 28 42 / 0.45);
  background: linear-gradient(165deg, rgb(20 18 22 / 0.98) 0%, rgb(17 18 23 / 0.99) 100%);
  box-shadow:
    0 24px 80px rgb(0 0 0 / 0.55),
    0 0 0 1px rgb(245 243 239 / 0.04),
    0 0 48px rgb(74 28 42 / 0.15);
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition:
    opacity var(--dur-door) var(--ease-heavy),
    transform var(--dur-door) var(--ease-heavy);
}

.private-overlay.is-open .private-overlay__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.private-overlay__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--concrete);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.private-overlay__close:hover {
  color: var(--bone);
}

.private-overlay__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgb(180 140 150 / 0.75);
}

.private-overlay__panel h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.private-overlay__copy {
  margin: 0 0 1.5rem;
  color: rgb(245 243 239 / 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

.private-overlay__action {
  width: 100%;
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(245 243 239 / 0.4);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}

.private-overlay__action:hover {
  background: linear-gradient(180deg, rgb(252 250 247), rgb(235 228 222));
  color: var(--midnight);
  border-color: rgb(74 28 42 / 0.35);
  box-shadow: 0 0 32px rgb(74 28 42 / 0.2);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .mark__word {
    display: none;
  }

  .nav-primary {
    display: none;
  }

  .facade__content {
    min-height: 100svh;
    padding-inline: 1rem;
  }

  .facade__title {
    max-width: 8.8ch;
    font-size: 2.95rem;
    letter-spacing: 0.02em;
  }

  .facade__headline {
    width: 100%;
    max-width: 20rem;
  }

  .facade__sub {
    width: 100%;
    max-width: 21rem;
  }

  .facade__actions {
    width: min(100%, 20rem);
  }

  .facade__cta {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .studio__lede,
  .editorial-block {
    opacity: 1;
    transform: none;
  }

  .editorial-block:hover .editorial-block__img {
    transform: none;
  }
}

body.editorial-reveal-ready .studio__lede.editorial-block--inview,
body.editorial-reveal-ready .editorial-block.editorial-block--inview {
  will-change: auto;
}
