/* ==========================================================================
   Gisela Chimiski — Cinematic 3D Storytelling variant
   Misma marca (Espresso/Tostado/Caramelo/Crema/Lima) y copy, otra narrativa visual
   ========================================================================== */

:root {
  --espresso: #4A3728;
  --tostado:  #8B7355;
  --caramelo: #C4A574;
  --crema:    #F5F0E8;
  --blanco:   #FFFEF9;
  --lima:     #D4E88B;

  --cream: var(--crema);
  --cream-2: #E9E2D6;
  --paper: var(--blanco);
  --ink: var(--espresso);
  --ink-soft: #5E4933;
  --carbon: #120D08;
  --carbon-2: #1F160E;
  --ivory: #F2EBDD;
  --ivory-soft: #CBBEAD;
  --gold: var(--caramelo);
  --gold-light: #CDB289;
  --line: rgba(74, 55, 40, 0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;
  --font-script: "Parisienne", cursive;

  --maxw: 1180px;
  --gutter: clamp(24px, 6vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; padding: 0; color: inherit; }

/* Defensive: content is visible by default; JS only enhances */
.reveal { opacity: 1; transform: none; }
.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.split-in { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; }
.line { display: block; }
.js .line-mask .split-in {
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
}
.js .hero-subtitle.split-in,
.js .hero-cta-wrap.split-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .in-view.split-in,
.js .line-mask.in-view .split-in { opacity: 1; transform: translateY(0); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lima);
  flex: none;
}
.desire-header .eyebrow, .method-header .eyebrow,
.offer .eyebrow, .about-body .eyebrow, .faq-header .eyebrow,
.pain-inner .eyebrow { justify-content: center; }
.eyebrow-light { color: var(--gold-light); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  /* no mix-blend-mode: on a full-viewport fixed layer it forces the browser
     to recomposite the entire page on every scroll frame — the plain-opacity
     version below reads almost identically at this low intensity and costs
     nothing during scroll */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 46px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 0;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn-primary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--gold-light);
  color: var(--ivory);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.btn-primary:hover {
  color: var(--carbon);
  border-color: var(--gold-light);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-large { padding: 23px 54px; font-size: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: center;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.site-header.scrolled {
  background: rgba(18, 13, 8, 0.55);
  backdrop-filter: blur(10px) saturate(140%);
  padding: 14px var(--gutter);
  border-color: rgba(242,235,221,0.12);
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ivory); }
.header-cta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 22px;
  border: 1px solid var(--ivory);
  border-radius: 2px;
  color: var(--ivory);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.header-cta:hover { background: var(--ivory); color: var(--ink); }

/* ==========================================================================
   Full-bleed "scene" sections (Hero + Dolor)
   ========================================================================== */
.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scene-bg {
  position: absolute;
  inset: -3% 0;
  z-index: 0;
  will-change: transform;
}
/* object-position keeps the subject roughly centered instead of anchored
   near the top — on wide desktop monitors the portrait-oriented source
   photos need heavy horizontal cropping to cover a 16:9 box, and a
   top-biased anchor was cropping in tight enough to show only a sliver
   of the face instead of the full portrait framing */
.scene-img { width: 100%; height: 100%; object-fit: cover; object-position: center 41%; }

/* one-shot cinematic light sweep across the hero photo on load */
.hero .scene-bg::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -70%;
  width: 35%;
  height: 120%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,250,238,0.55) 50%, transparent 100%);
  transform: skewX(-18deg);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.js .hero .scene-bg::after {
  animation: shimmer-sweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s 1;
}
@keyframes shimmer-sweep {
  0%   { left: -70%; opacity: 0; }
  12%  { opacity: 0.85; }
  55%  { opacity: 0.35; }
  100% { left: 130%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero .scene-bg::after { animation: none; }
}

.scene-scrim { position: absolute; inset: 0; z-index: 1; }
.scene-scrim--hero {
  background:
    linear-gradient(90deg, rgba(18,13,8,0.82) 0%, rgba(18,13,8,0.55) 42%, rgba(18,13,8,0.18) 68%, rgba(18,13,8,0.05) 100%),
    linear-gradient(0deg, rgba(18,13,8,0.55) 0%, rgba(18,13,8,0.05) 40%);
}
.scene-scrim--pain {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(18,13,8,0.55) 0%, rgba(18,13,8,0.88) 60%, rgba(18,13,8,0.97) 100%);
}
/* This portrait is framed much tighter than the hero photo (face sits at
   ~20-25% instead of ~40%), so it needs its own crop anchor */
.pain .scene-img { object-position: center 10%; }

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
  width: 100%;
  padding: 0 var(--gutter);
  margin-right: auto;
}
.hero-title { font-size: clamp(42px, 6.4vw, 80px); margin-bottom: 32px; color: var(--ivory); }
.hero-title em { font-family: var(--font-script); font-style: normal; color: var(--gold-light); font-weight: 400; padding-right: 0.08em; }
.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ivory-soft);
  max-width: 520px;
  margin-bottom: 44px;
}
.hero-cta-wrap { display: flex; }

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  width: 1px;
  height: 64px;
  background: rgba(242,235,221,0.25);
  overflow: hidden;
  z-index: 2;
}
.scroll-cue span {
  display: block; width: 100%; height: 40%;
  background: var(--gold-light);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(180%); }
  100% { transform: translateY(180%); }
}

/* ---------- El Dolor ---------- */
.pain-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.pain-title { font-size: clamp(32px, 4.6vw, 56px); color: var(--ivory); margin-bottom: 34px; }
.pain-copy { font-size: clamp(16px, 1.5vw, 19px); color: var(--ivory-soft); line-height: 1.75; }

/* ==========================================================================
   La Revelación
   ========================================================================== */
.revelation { background: var(--paper); padding: 180px var(--gutter); border-bottom: 1px solid var(--line); }
.revelation-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.big-quote-mark { display: block; font-family: var(--font-script); font-size: 120px; color: var(--gold); line-height: 1; }
.revelation-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 28px; }
.revelation-copy { font-size: 18px; color: var(--ink-soft); line-height: 1.75; }

/* ==========================================================================
   El Deseo — pinned crossfade stage
   ========================================================================== */
.desire-scroll {
  position: relative;
  background: var(--carbon);
}
.desire-header {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 90px var(--gutter) 40px;
  color: var(--ivory);
}
.desire-header h2 { color: var(--ivory); }
.desire-title { font-size: clamp(30px, 4.2vw, 48px); }
.desire-stage {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.desire-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: var(--cream-2);
}
.desire-panel--void {
  background: linear-gradient(155deg, #E9E2D6 0%, #DCD3C3 100%);
  z-index: 1;
}
/* No-JS default: portfolio panel shown fully (uncropped) on top — a sensible
   static fallback for a section whose whole point is a scroll-driven reveal */
.desire-panel--portfolio { z-index: 2; }
.desire-panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.desire-panel-scrim { position: absolute; inset: 0; }
.desire-panel--void .desire-panel-scrim { background: transparent; }
.desire-panel--portfolio .desire-panel-scrim {
  background: linear-gradient(90deg, rgba(18,13,8,0.85) 0%, rgba(18,13,8,0.55) 45%, rgba(18,13,8,0.35) 100%);
}

/* soft copper/gold glow riding the wipe edge as it slides across */
.desire-edge-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(228,201,150,0.55), transparent);
  filter: blur(6px);
  mix-blend-mode: screen;
}

.desire-panel-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 0 var(--gutter);
  margin-top: 80px;
}
.desire-panel--void .desire-panel-copy { color: var(--ink-soft); }
.desire-panel--void h3 { color: var(--ink); }
.desire-panel--portfolio .desire-panel-copy { color: var(--ivory-soft); }
.desire-panel--portfolio h3 { color: var(--ivory); }
.desire-index { display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 22px; }
.desire-panel h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 20px; }
.desire-panel p { font-size: 17px; line-height: 1.7; }

/* ==========================================================================
   Metodología — vertical timeline
   ========================================================================== */
.method { background: var(--paper); padding: 150px var(--gutter); }
.method-header { max-width: 720px; margin: 0 auto 90px; text-align: center; }
.method-header h2 { font-size: clamp(30px, 4.2vw, 48px); }
.method-list { position: relative; max-width: 860px; margin: 0 auto; }
.method-line {
  position: absolute;
  left: 49px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.method-line-fill {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--gold);
  transform-origin: top;
}
.method-steps { position: relative; z-index: 1; }
.method-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 48px 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  background: var(--paper);
}
.step-body h3 { font-size: 25px; margin-bottom: 14px; }
.step-body p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; max-width: 600px; }

/* ==========================================================================
   La Oferta
   ========================================================================== */
.offer {
  position: relative;
  background: var(--carbon);
  color: var(--ivory);
  padding: 180px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.offer-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
.offer-badge {
  position: absolute;
  left: 50%; top: 62%;
  transform: translate(-50%, -50%);
  width: 460px; height: auto;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}
.offer-title { font-size: clamp(30px, 4.4vw, 52px); color: var(--ivory); margin-bottom: 26px; }
.offer-copy { font-size: 17px; color: var(--ivory-soft); line-height: 1.75; margin-bottom: 48px; }
.offer-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 44px; }
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 100px);
  color: var(--gold-light);
  line-height: 1;
  display: inline-block;
}
.js [data-price-in] .price-amount { transform: scale(0.6); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.js [data-price-in].in-view .price-amount { transform: scale(1); opacity: 1; }
.price-note { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-soft); }

/* ==========================================================================
   Sobre mí — parallax portrait
   ========================================================================== */
.about { background: var(--cream); padding: 170px var(--gutter); overflow: hidden; }
.about-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 90px;
  align-items: center;
}
.about-figure { position: relative; height: 460px; overflow: hidden; border-radius: 6px 70px 6px 6px; box-shadow: 0 30px 60px -20px rgba(18,13,8,0.35); }
.about-photo-wrap { position: absolute; inset: -12% 0; will-change: transform; }
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-body h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 26px; }
.about-body p { font-size: 17px; color: var(--ink-soft); line-height: 1.8; max-width: 620px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--paper); padding: 150px var(--gutter) 170px; border-top: 1px solid var(--line); }
.faq-header { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.faq-header h2 { font-size: clamp(30px, 4vw, 44px); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 28px 4px;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); text-align: left;
}
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--ink); transition: transform 0.4s var(--ease); }
.faq-icon::before { left: 0; top: 9px; width: 20px; height: 1px; }
.faq-icon::after { left: 9px; top: 0; width: 1px; height: 20px; }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--gold); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); overflow: hidden; }
.faq-answer p { overflow: hidden; padding-right: 60px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.faq-answer > p { min-height: 0; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding-bottom: 26px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; background: var(--carbon); color: var(--ivory-soft); padding: 72px var(--gutter) 40px; text-align: center; overflow: hidden; }
.footer-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }

/* ---------- gold sparkles (dark sections only) ----------
   Pure CSS, no canvas/JS: the browser animates opacity+transform on its
   own compositor thread, so this costs nothing during scroll — replaces
   an earlier canvas-based particle system that was heavy enough to
   stutter on slower machines. */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px 2px rgba(228, 201, 150, 0.75);
  opacity: 0;
  animation: sparkle-twinkle 5s ease-in-out infinite;
  will-change: opacity, transform;
}
.sparkles span:nth-child(1) { top: 12%; left: 8%;  animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 22%; left: 82%; animation-delay: 0.6s; width: 3px; height: 3px; }
.sparkles span:nth-child(3) { top: 45%; left: 18%; animation-delay: 1.4s; }
.sparkles span:nth-child(4) { top: 68%; left: 74%; animation-delay: 2.1s; width: 5px; height: 5px; }
.sparkles span:nth-child(5) { top: 78%; left: 30%; animation-delay: 0.9s; width: 3px; height: 3px; }
.sparkles span:nth-child(6) { top: 34%; left: 60%; animation-delay: 2.8s; }
.sparkles span:nth-child(7) { top: 88%; left: 55%; animation-delay: 1.8s; width: 3px; height: 3px; }
.sparkles span:nth-child(8) { top: 6%;  left: 45%; animation-delay: 3.4s; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles span { animation: none; opacity: 0.35; }
}

.pain-inner, .offer-inner { position: relative; z-index: 3; }
.desire-panel-copy { z-index: 4; }
.footer-mark { width: 160px; height: auto; margin: 0 auto 4px; opacity: 0.92; }
.footer-tagline { font-family: var(--font-script); font-size: 28px; color: var(--gold-light); margin-bottom: 40px; }
.footer-legal { font-size: 12.5px; line-height: 1.7; color: rgba(242,235,221,0.55); max-width: 820px; margin: 0 auto 24px; text-align: left; }
.footer-copy { font-size: 12px; color: rgba(242,235,221,0.4); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { height: 380px; max-width: 420px; margin: 0 auto; }
  .method-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .method-line { left: 27px; }
  .step-num { font-size: 28px; }
  .desire-stage { height: auto; }
  .desire-panel { position: relative; height: 70vh; clip-path: none !important; opacity: 1 !important; }
  .desire-panel-copy { padding: 60px var(--gutter); opacity: 1 !important; }
}

@media (max-width: 620px) {
  .site-header { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 12px; }
  .wordmark { font-size: 15px; white-space: nowrap; }
  .header-cta { padding: 9px 12px; font-size: 9px; white-space: nowrap; }
  .hero-inner { padding: 0 20px; }
  .scene-scrim--hero { background: linear-gradient(0deg, rgba(18,13,8,0.9) 0%, rgba(18,13,8,0.55) 55%, rgba(18,13,8,0.35) 100%); }
  .pain, .revelation, .desire-header, .method, .offer, .about, .faq {
    padding-left: 20px; padding-right: 20px;
  }
  .revelation { padding-top: 110px; padding-bottom: 110px; }
  .method { padding-top: 110px; padding-bottom: 110px; }
  .offer { padding-top: 120px; padding-bottom: 120px; }
  .about { padding-top: 110px; padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}
