/* ═══════════════════════════════════════════════
   STUDIO PANDA ROJO — fotografía y cine de bodas
   Romántico editorial · marfil y champagne · rojo panda
   ═══════════════════════════════════════════════ */

:root {
  --bg: #FAF6EF;
  --bg-2: #F3EAE0;
  --blush: #F0DED2;
  --ink: #33241B;
  --muted: rgba(51, 36, 27, 0.6);
  --line: rgba(51, 36, 27, 0.14);
  --panda: #B5472B;
  --panda-deep: #8E3320;
  --dark: #2A1D15;
  --cream: #F6EFE6;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--panda); color: var(--cream); }

a { color: inherit; text-decoration: none; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* ─── Preloader ─── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pre-inner { text-align: center; }
.pre-logo {
  width: clamp(64px, 10vw, 96px);
  height: auto;
  display: block;
  margin: 0 auto 1.1rem;
}
.pre-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  font-weight: 500;
  color: var(--muted);
}
.pre-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.pre-mark em { color: var(--panda); }
.pre-bar {
  margin: 1.4rem auto 0;
  width: min(200px, 50vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.pre-bar span {
  position: absolute;
  inset: 0;
  background: var(--panda);
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── Navegación ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  background: rgba(250, 246, 239, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s ease, border-color 0.45s ease;
}
.nav.nav-scrolled { border-color: var(--line); }
.nav.nav-hidden { transform: translateY(-110%); }
.nav-logo {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--panda);
  display: inline-block;
}
.logo-img { height: 30px; width: auto; display: block; }
@media (max-width: 480px) {
  .nav-logo { font-size: 0.7rem; letter-spacing: 0.16em; }
  .logo-img { height: 26px; }
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--panda);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--panda);
  color: var(--panda);
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--panda); color: var(--cream); }
.nav-cta::after { display: none; }
.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 32px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s ease, top 0.35s ease, background 0.35s ease;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 19px; }
body.menu-open .burger span { background: var(--cream); }
body.menu-open .burger span:nth-child(1) { top: 15px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  /* En móvil se queda visible solo el CTA junto al burger */
  .nav { padding: 0.8rem var(--pad); }
  .nav-links { gap: 0; margin-left: auto; margin-right: 0.9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: 0.64rem; padding: 0.5rem 0.9rem; letter-spacing: 0.12em; }
  .burger { display: block; }
}

/* Menú overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 7500;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); }
.menu-links { display: flex; flex-direction: column; gap: 0.5rem; }
.menu-links a {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.menu-links a:hover { color: var(--panda); font-style: italic; }
.menu-foot {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: rgba(246, 239, 230, 0.6);
}

/* ─── Secciones base ─── */
.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); position: relative; }
.label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--panda);
  font-weight: 500;
  margin-bottom: 2.4rem;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
/* Luz suave que respira al fondo */
.hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(42% 46% at 72% 24%, rgba(240, 222, 210, 0.9) 0%, rgba(240, 222, 210, 0) 70%),
    radial-gradient(38% 44% at 18% 78%, rgba(230, 205, 185, 0.55) 0%, rgba(230, 205, 185, 0) 70%),
    radial-gradient(30% 34% at 85% 80%, rgba(181, 71, 43, 0.1) 0%, rgba(181, 71, 43, 0) 70%);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
/* Arco con fotografía, estilo editorial de bodas */
.hero-arch {
  position: absolute;
  right: clamp(1rem, 3.5vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(19rem, 36vw, 33rem);
  aspect-ratio: 3 / 4.2;
  border: 1px solid rgba(181, 71, 43, 0.35);
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video del arco: aparece con fundido sobre la foto cuando ya cargó */
.hero-arch video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-arch video.is-on { opacity: 1; }
.hero-arch::before {
  content: "";
  position: absolute;
  inset: 1.4rem;
  z-index: 2;
  border: 1px solid rgba(250, 246, 239, 0.55);
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
}
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(250, 246, 239, 0.42) 0%, rgba(250, 246, 239, 0) 45%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.9rem, 9vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: block; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line-italic em { color: var(--panda); }
.hero-sub {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.hero-book {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.6rem 1rem;
  border-radius: 100px;
}
.hero-scrollhint {
  position: absolute;
  bottom: 1.6rem;
  right: var(--pad);
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hint-line {
  width: 56px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panda);
  animation: hint 2.2s ease infinite;
}
@keyframes hint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@media (max-width: 820px) {
  /* El arco con el video queda detrás de las letras, centrado y bien visible */
  .hero { padding-top: 6.5rem; padding-bottom: 5.5rem; }
  .hero-arch {
    right: 50%;
    transform: translate(50%, -46%);
    width: min(88vw, 25rem);
    opacity: 0.6;
  }
  /* Velo marfil vertical para que el texto se lea sobre el video */
  .hero-arch::after {
    background: linear-gradient(to top,
      rgba(250, 246, 239, 0.65) 0%,
      rgba(250, 246, 239, 0.15) 55%,
      rgba(250, 246, 239, 0.35) 100%);
  }
  .hero-scrollhint { left: var(--pad); right: auto; }
}
@media (max-width: 480px) {
  .hero-actions { gap: 0.9rem; }
  .hero-actions .btn, .hero-book { width: 100%; text-align: center; }
  .hero-sub br { display: none; }
}

/* ─── Marquee ─── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--bg);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--panda);
  padding-right: 0.5rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── El estudio (manifiesto) ─── */
.manifiesto { max-width: 1280px; }
.estudio-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.estudio-figure { margin: 0; }
.estudio-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 200px 200px 12px 12px;
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .estudio-grid { grid-template-columns: 1fr; }
  .estudio-figure { max-width: 320px; }
}
.manifiesto-text {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.manifiesto-text .w { display: inline-block; }
.lugares {
  margin-top: 3.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  color: var(--muted);
  font-weight: 500;
  line-height: 2.2;
}

/* ─── Historias (scroll horizontal) ─── */
.films {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}
.films-head {
  padding: 0 var(--pad);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.films-head h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.films-head h2 em { color: var(--panda); }
.films-note {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  text-align: right;
  line-height: 1.9;
}
.films-viewport { width: 100%; }
.films-track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.film-card {
  width: clamp(280px, 34vw, 440px);
  flex-shrink: 0;
}
.film-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
}
/* Placeholders cálidos hasta tener fotos/stills reales de cada boda */
.fv-1 { background: linear-gradient(160deg, #EBD5C4 0%, #DDBBA4 55%, #C99B82 100%); }
.fv-2 { background: linear-gradient(200deg, #F0DED2 0%, #E0C0AC 60%, #C79E86 100%); }
.fv-3 { background: linear-gradient(150deg, #E9D8CC 0%, #D4B49E 58%, #BE9077 100%); }
.fv-4 { background: linear-gradient(210deg, #F1E2D3 0%, #DFC3AB 55%, #C69A7E 100%); }
.fv-5 { background: linear-gradient(165deg, #ECDACB 0%, #D9B9A1 60%, #C1957B 100%); }
.fv-6 { background: linear-gradient(170deg, #B5472B 0%, #8E3320 100%); }
.film-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Velo cálido para que las iniciales se lean sobre la foto */
.film-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(42, 29, 21, 0.55) 0%, rgba(42, 29, 21, 0) 42%);
  pointer-events: none;
}
.film-card-cta .film-visual::after { display: none; }
.film-ini {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: 1.2rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--cream);
  letter-spacing: 0.05em;
}
.film-ini em { color: #EFC3A4; font-size: 0.75em; }
.film-cta-text {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  color: var(--cream);
  text-align: center;
  padding: 0 1.5rem;
}
.film-cta-text em { font-size: 1.15em; }
.film-info {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.film-num {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--panda);
  font-weight: 600;
}
.film-info h3 {
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}
.film-tag {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  font-weight: 500;
}
.film-tag-open { color: var(--panda); border-color: var(--panda); }

/* Móvil: swipe nativo */
@media (max-width: 820px) {
  .films-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .films-viewport::-webkit-scrollbar { display: none; }
  .film-card { scroll-snap-align: center; width: 78vw; }
  .films-head { flex-direction: column; align-items: flex-start; }
  .films-note { text-align: left; }
}

/* ─── La película (reel) — sala oscura ─── */
.reel {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  border-top: 1px solid var(--line);
}
.reel .label { color: #E8845F; }
.reel-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.reel-title em { color: #E8845F; }
.reel-sub {
  margin-top: 1.4rem;
  color: rgba(246, 239, 230, 0.65);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.reel-frame {
  position: relative;
  max-width: 1080px;
  margin: 3rem auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 239, 230, 0.16);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
.reel-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.reel-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  border: 0;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--sans);
  background: linear-gradient(to top, rgba(42, 29, 21, 0.6) 0%, rgba(42, 29, 21, 0.12) 60%);
  transition: background 0.4s ease;
}
.reel-play:hover { background: linear-gradient(to top, rgba(42, 29, 21, 0.72) 0%, rgba(42, 29, 21, 0.2) 60%); }
.reel-play-circle {
  width: clamp(64px, 8vw, 88px);
  height: clamp(64px, 8vw, 88px);
  border-radius: 50%;
  border: 1px solid rgba(246, 239, 230, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  padding-left: 5px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.reel-play:hover .reel-play-circle {
  transform: scale(1.08);
  background: var(--panda);
  border-color: var(--panda);
}
.reel-play-text {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  font-weight: 600;
}
.reel-play.is-hidden { display: none; }

/* ─── Split foto / cine ─── */
.split-panels {
  display: flex;
  gap: 1.2rem;
  min-height: 60vh;
}
.split-panel {
  position: relative;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: flex 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.split-panel:hover { flex: 1.6; }
.sp-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s ease;
}
.sp-foto .sp-bg { background: linear-gradient(165deg, #F3E8DB 0%, #E6CDB8 60%, #D3AE93 100%); }
.sp-cine .sp-bg { background: linear-gradient(200deg, #F0DED2 0%, #DFBFA9 55%, #C89C80 100%); }
.sp-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Velo cálido para legibilidad del texto sobre la foto */
.sp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 29, 21, 0.72) 0%, rgba(42, 29, 21, 0.22) 55%, rgba(42, 29, 21, 0.08) 100%);
}
.split-panel:hover .sp-bg { transform: scale(1.05); }
.split-panel h3 {
  position: relative;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.split-panel h3 em {
  display: block;
  color: #EFC3A4;
  font-size: 0.55em;
  margin-top: 0.2em;
}
.split-panel p {
  position: relative;
  margin-top: 1.1rem;
  max-width: 36ch;
  color: rgba(246, 239, 230, 0.88);
  font-size: 0.95rem;
  font-weight: 400;
}
.sp-arrow {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  font-size: 1.5rem;
  color: var(--cream);
  transition: transform 0.4s ease;
}
.split-panel:hover .sp-arrow { transform: translateX(6px) rotate(-45deg); }
@media (max-width: 820px) {
  .split-panels { flex-direction: column; min-height: unset; }
  .split-panel { min-height: 40vh; }
  .split-panel:hover { flex: 1; }
}

/* ─── Bodas SUD ─── */
.sud { border-top: 1px solid var(--line); }
.sud-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: 3.5rem;
}
.sud-head h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.sud-head h2 em { color: var(--panda); }
.sud-intro {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.85;
  max-width: 46ch;
}
.sud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
/* Tarjetas con arco, como las ventanas de un templo */
.sud-card {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 130px 130px 12px 12px;
  padding: 3rem 2.2rem 2.4rem;
  text-align: center;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.sud-card:hover {
  border-color: rgba(181, 71, 43, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -22px rgba(51, 36, 27, 0.35);
}
.sud-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 1.4rem;
  color: var(--panda);
  margin-bottom: 0.9rem;
}
.sud-card h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  letter-spacing: -0.005em;
  margin-bottom: 0.7rem;
}
.sud-card p {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 38ch;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .sud-head { grid-template-columns: 1fr; align-items: start; margin-bottom: 2.6rem; }
  .sud-grid { grid-template-columns: 1fr; }
  .sud-card { border-radius: 100px 100px 12px 12px; padding: 2.4rem 1.5rem 2rem; }
}

/* ─── Proceso ─── */
.proceso { background: var(--bg-2); border-top: 1px solid var(--line); }
.proceso-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 4rem;
}
.proceso-title em { color: var(--panda); }
.proceso-list { position: relative; padding-left: 2.2rem; max-width: 900px; }
.proceso-line {
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}
.proceso-line span {
  position: absolute;
  inset: 0;
  background: var(--panda);
  transform: scaleY(0);
  transform-origin: top;
}
.proceso-item {
  display: flex;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.proceso-item:last-child { border-bottom: 0; }
.pi-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 1.6rem;
  color: var(--panda);
  min-width: 3rem;
}
.proceso-item h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}
.proceso-item p { color: var(--muted); max-width: 54ch; font-weight: 300; }

/* ─── Testimonios ─── */
.quotes { max-width: 1200px; }
.quote {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1.3;
  max-width: 24ch;
}
.quote em { color: var(--panda); }
.quote cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 500;
}
.quote-b { margin-left: auto; margin-top: 5rem; text-align: right; }
.quote-b cite { text-align: right; }
@media (max-width: 820px) {
  .quote-b { margin-left: 0; text-align: left; }
  .quote-b cite { text-align: left; }
}

/* ─── El Diario (blog) ─── */
.diario { border-top: 1px solid var(--line); }
.diario-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.diario-head h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.diario-head h2 em { color: var(--panda); }
.diario-all {
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  font-weight: 600;
  color: var(--panda);
  white-space: nowrap;
}
.diario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.diario-card {
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 240px;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.diario-card:hover {
  border-color: rgba(181, 71, 43, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -22px rgba(51, 36, 27, 0.35);
}
.dc-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--panda);
  font-size: 1.1rem;
}
.diario-card h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.35;
  flex: 1;
}
.dc-tag {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 820px) {
  .diario-grid { grid-template-columns: 1fr; }
  .diario-card { min-height: unset; }
}

/* ─── CTA final (sección oscura, cálida como una noche de boda) ─── */
.cta {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding-top: clamp(6rem, 16vh, 11rem);
  padding-bottom: clamp(6rem, 16vh, 11rem);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(50% 60% at 50% 110%, rgba(181, 71, 43, 0.28) 0%, rgba(181, 71, 43, 0) 70%),
    radial-gradient(40% 50% at 80% -10%, rgba(240, 222, 210, 0.07) 0%, rgba(240, 222, 210, 0) 70%);
  pointer-events: none;
}
.cta > * { position: relative; z-index: 2; }
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(1);
}
.cta-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.cta-title span { display: block; }
.cta-serif em { color: #E8845F; }
.cta-sub {
  margin-top: 2rem;
  color: rgba(246, 239, 230, 0.7);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.8;
}
.cta-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 1.05rem 2.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-solid { background: var(--panda); color: var(--cream); }
.btn-solid:hover { transform: scale(1.04); background: var(--panda-deep); }
.cta .btn-ghost { border: 1px solid rgba(246, 239, 230, 0.35); color: var(--cream); text-transform: none; letter-spacing: 0.08em; }
.cta .btn-ghost:hover { border-color: #E8845F; color: #E8845F; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--pad);
  background: var(--bg);
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.foot-links { display: flex; gap: 1.6rem; }
.foot-links a {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease;
}
.foot-links a:hover { color: var(--panda); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Página de blog ─── */
.blog-page main { padding-top: 8.5rem; min-height: 70vh; }
.blog-hero { padding: 0 var(--pad) 3rem; border-bottom: 1px solid var(--line); }
.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3rem, 11vw, 8rem);
  letter-spacing: -0.015em;
  line-height: 1;
}
.blog-hero h1 em { color: var(--panda); }
.blog-hero p {
  margin-top: 1.6rem;
  color: var(--muted);
  max-width: 56ch;
  font-weight: 300;
  line-height: 1.8;
}
.blog-list { padding: 3rem var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 820px) { .blog-list { grid-template-columns: 1fr; } }

/* ─── Artículo del diario ─── */
.articulo { max-width: 46rem; margin: 0 auto; padding: 0 var(--pad) 5rem; }
.art-head { padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.art-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.art-eyebrow .dc-num { font-size: 1.2rem; }
.art-head h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.art-head h1 em { color: var(--panda); }
.art-meta {
  margin-top: 1.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 500;
}
.art-body { font-weight: 300; line-height: 1.85; font-size: 1.02rem; }
.art-body > * + * { margin-top: 1.4rem; }
.art-body h2 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin-top: 3rem;
}
.art-body h2 em { color: var(--panda); }
.art-body strong { font-weight: 500; }
.art-body ul, .art-body ol { padding-left: 1.3rem; }
.art-body li { margin-top: 0.55rem; }
.art-body li::marker { color: var(--panda); }
.art-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 2px solid var(--panda);
  padding-left: 1.4rem;
  margin-top: 2.2rem;
  margin-bottom: 2.2rem;
}
.art-cta {
  margin-top: 3.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.4rem 2rem;
  text-align: center;
}
.art-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0;
}
.art-cta h2 em { color: var(--panda); }
.art-cta p { margin-top: 0.9rem; color: var(--muted); font-weight: 300; }
.art-cta .btn { margin-top: 1.5rem; }
.art-nav {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}
.art-nav a { color: var(--panda); }
.art-nav a:hover { text-decoration: underline; }

/* ─── Página 404 ─── */
.pagina-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--pad) 4rem;
}
.pagina-404 h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(3.4rem, 14vw, 9rem);
  line-height: 1;
}
.pagina-404 h1 em { color: var(--panda); }
.pagina-404 p { margin-top: 1.4rem; color: var(--muted); font-weight: 300; max-width: 44ch; line-height: 1.8; }
.pagina-404 .btn { margin-top: 2.2rem; }

/* ─── Polvo de luz (partículas mágicas) ─── */
.magic-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
}

/* ─── Ajustes móviles generales ─── */
@media (max-width: 820px) {
  .film-card { width: 82vw; max-width: 380px; }
  .proceso-list { padding-left: 1.7rem; }
  .proceso-item { gap: 1.2rem; padding: 1.8rem 0; }
  .pi-num { min-width: 2.2rem; font-size: 1.35rem; }
  .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cta-actions { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .cta .btn { width: 100%; text-align: center; }
  .cta-sub br { display: none; }
  .diario-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .art-nav { flex-direction: column; gap: 0.9rem; }
}

/* ─── Accesibilidad: menos movimiento ─── */
@media (prefers-reduced-motion: reduce) {
  .marquee-inner, .hint-line::after, .hero-glow { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
