:root {
  --wine: #4a1628;
  --wine-deep: #2d0e1a;
  --wine-dark: #1a0810;
  --wine-soft: #6b2039;
  --rose: #d4a5a5;
  --rose-soft: #e8c9c9;
  --rose-dust: #f5e1e1;
  --gold: #c9a96e;
  --gold-bright: #e4cfa0;
  --gold-soft: #f2e2b8;
  --gold-deep: #8a6f3f;
  --cream: #faf5ef;
  --ink: #1a0d14;

  --shadow-velvet: 0 30px 60px -20px rgba(0,0,0,0.6);
  --shadow-warm: 0 20px 50px -15px rgba(74, 22, 40, 0.4);

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

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--wine-dark);
  color: var(--cream);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
}

/* ============================================
   STAGE — sfondo velvet vivo
   ============================================ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(107, 32, 57, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at center, var(--wine-deep) 0%, var(--wine-dark) 70%, #000 100%);
  overflow: hidden;
}

.bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.bokeh-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), transparent 70%);
  filter: blur(10px);
  animation: wl-float 9s ease-in-out infinite;
}

@keyframes wl-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
  50% { transform: translate(20px, -30px) scale(1.2); opacity: 0.55; }
}

.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 110, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 165, 0.03) 1px, transparent 1px);
  background-size: 80px 80px, 100px 100px;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  z-index: 2;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  opacity: 0;
  animation: wl-fadeIn 1.2s var(--ease-silk) 0.3s forwards;
}

.hero-mark::before, .hero-mark::after {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

h1.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(64px, 16vw, 140px);
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
}

.hero-title .letter {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  animation: wl-whisperIn 1.1s var(--ease-silk) forwards;
}

@keyframes wl-whisperIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: wl-fadeIn 1.5s var(--ease-silk) 1.8s forwards;
}

.hero-lines {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
}

.hero-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 5.5vw, 32px);
  line-height: 1.25;
  color: var(--cream);
  opacity: 0;
  transform: translateY(20px);
  animation: wl-lineRise 1s var(--ease-silk) forwards;
}

.hero-line:nth-child(1) { animation-delay: 2.0s; }
.hero-line:nth-child(2) { animation-delay: 2.5s; color: var(--rose-soft); }
.hero-line:nth-child(3) { animation-delay: 3.0s; color: var(--gold-bright); font-weight: 500; }

@keyframes wl-lineRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wl-fadeIn {
  to { opacity: 1; }
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: wl-fadeIn 1s var(--ease-silk) 3.8s forwards;
}

.scroll-hint-text {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--gold-bright), transparent);
  animation: wl-scrollDot 2s ease-in-out infinite;
}

@keyframes wl-scrollDot {
  0% { top: -36px; }
  100% { top: 36px; }
}

/* ============================================
   CTA PRIMARIA
   ============================================ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  color: var(--wine-deep);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-soft) 100%);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow:
    0 8px 24px rgba(201, 169, 110, 0.35),
    0 2px 6px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.4s var(--ease-silk);
  transform: translateZ(0);
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.8s var(--ease-velvet);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px rgba(201, 169, 110, 0.45),
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.cta-primary:hover::before { left: 100%; }
.cta-primary:active { transform: translateY(-1px); }

.cta-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-silk);
}

.cta-primary:hover .cta-arrow { transform: translateX(6px); }

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 80px 24px 40px;
}

.manifesto-line {
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.manifesto-line h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.manifesto-line h2 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.manifesto-line .accent {
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto 0;
  opacity: 0;
  transform: scaleX(0);
  transition: all 1.2s var(--ease-silk) 0.4s;
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1.4s var(--ease-silk), transform 1.4s var(--ease-silk), filter 1.4s var(--ease-silk);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.in-view .accent {
  opacity: 1;
  transform: scaleX(1);
}

/* ============================================
   RITMO DEL DESIDERIO
   ============================================ */
.rhythm-section {
  padding: 80px 24px 60px;
  position: relative;
}

.rhythm-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold));
  opacity: 0.5;
}

.rhythm-inner {
  max-width: 620px;
  margin: 0 auto;
}

.rhythm-header {
  text-align: center;
  margin-bottom: 56px;
}

.rhythm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}

.rhythm-eyebrow::before, .rhythm-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.rhythm-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 7.5vw, 52px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.rhythm-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.rhythm-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--rose-soft);
  margin-bottom: 6px;
  line-height: 1.45;
  opacity: 0.92;
}

.rhythm-subtitle.gold {
  color: var(--gold-bright);
  margin-top: 10px;
}

.rhythm {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 56px;
  position: relative;
}

.rhythm-line {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(201, 169, 110, 0.15) 8%,
    rgba(201, 169, 110, 0.45) 50%,
    rgba(201, 169, 110, 0.15) 92%,
    transparent 100%);
}

.step {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  position: relative;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.5s var(--ease-silk);
}

.step:hover { transform: translateX(4px); }

.step-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 100%);
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.6s var(--ease-silk);
}

.step-marker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
}

.step.active .step-marker {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(228, 207, 160, 0.55);
}

.step.active .step-marker::after {
  opacity: 0.5;
  animation: wl-pulse 2s ease-in-out infinite;
}

@keyframes wl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.18); opacity: 0; }
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-bright);
  transition: color 0.5s;
}

.step.active .step-num { color: var(--wine-deep); }

.step-content {
  flex: 1;
  padding-top: 8px;
  min-width: 0;
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(22px, 5vw, 26px);
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color 0.5s;
}

.step.active .step-title { color: var(--gold-bright); }

.step-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--rose-soft);
  opacity: 0.88;
}

.step-text em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16.5px;
  color: var(--gold-soft);
  display: block;
  margin-top: 6px;
  opacity: 0.95;
}

.rhythm-final-line {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 4.5vw, 24px);
  color: var(--gold-bright);
  text-align: center;
  margin: 32px auto 0;
  max-width: 480px;
  line-height: 1.4;
  position: relative;
  padding-top: 28px;
}

.rhythm-final-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================
   FINALE / CTA
   ============================================ */
.finale {
  padding: 60px 24px 120px;
  text-align: center;
  position: relative;
}

.finale::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--gold));
}

.finale-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.4;
  color: var(--rose-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  opacity: 0.9;
}

.finale-quote::before, .finale-quote::after {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.2em;
  opacity: 0.6;
}

.footer-mark {
  margin-top: 80px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.5;
}

.footer-mark a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-mark a:hover { opacity: 1; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .rhythm-section { padding: 60px 20px 40px; }
  .step { gap: 16px; padding: 18px 0; }
  .step-marker { width: 44px; height: 44px; }
  .rhythm-line { left: 22px; }
  .step-num { font-size: 17px; }
  .hero-lines { margin-top: 40px; gap: 12px; }
  .cta-primary { padding: 16px 30px; font-size: 17px; }
}

@media (max-height: 700px) {
  .manifesto-line { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .letter, .hero-line, .hero-mark, .scroll-hint {
    opacity: 1; transform: none; filter: none;
  }
}
