/* ============================================================
   MADAME BLANCH — Editorial Dark Warm
   ============================================================ */

:root {
  --bg:        #0A0807;
  --bg-2:      #131009;
  --bg-3:      #1C1610;
  --cream:     #F0E8D5;
  --cream-2:   #D8CEBC;
  --cream-3:   #8A7E6A;
  --accent:    #C8A96E;   /* oro cálido */
  --accent-2:  #A8884A;
  --line:      rgba(240,232,213,.1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
textarea { resize: vertical; }

/* ============================================================
   SPLASH
   ============================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFade 0.6s var(--ease-in) 2s forwards;
}
@keyframes splashFade {
  to { opacity: 0; pointer-events: none; }
}
.splash-inner {
  text-align: center;
  animation: splashReveal 0.8s var(--ease-out) 0.3s both;
}
@keyframes splashReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-glyph {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  animation: splashGlow 1.5s ease infinite alternate;
}
@keyframes splashGlow {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
.splash-name {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--cream);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  transition: background 0.4s ease, padding 0.3s ease;
}
#nav.scrolled {
  background: rgba(10,8,7,0.95);
  backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--cream);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--cream-3);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--accent-2) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

/* Mesh gradient animado */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(200,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(160,100,60,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(200,169,110,0.06) 0%, transparent 50%);
  animation: meshBreath 8s ease-in-out infinite alternate;
}
@keyframes meshBreath {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* Grain */
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: heroReveal 1.2s var(--ease-out) 2.2s both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.dot-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cream-2);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cream-3);
  text-transform: uppercase;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: heroReveal 1s var(--ease-out) 3s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; }

/* ============================================================
   CONCEPTO
   ============================================================ */
.section-concepto {
  padding: 8rem 2rem;
  border-top: 1px solid var(--line);
}
.concepto-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.concepto-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.concepto-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 4rem;
  color: var(--cream);
}
.concepto-title em {
  font-style: italic;
  color: var(--accent);
}
.concepto-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.concepto-col p {
  color: var(--cream-2);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}

/* ============================================================
   PILARES
   ============================================================ */
.section-pilares {
  padding: 4rem 2rem 8rem;
}
.pilares-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.pilar {
  padding: 3rem 2.5rem;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.pilar:last-child { border-right: none; }
.pilar:hover { background: var(--bg-2); }
.pilar-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
}
.pilar-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.pilar-text {
  font-size: 0.9rem;
  color: var(--cream-3);
  line-height: 1.7;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream-3);
  flex-shrink: 0;
}
.marquee-track .sep {
  color: var(--accent);
  font-style: normal;
}

/* ============================================================
   CASTING — ELLAS
   ============================================================ */
.section-casting {
  padding: 8rem 2rem;
  border-top: 1px solid var(--line);
}
.casting-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.casting-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.casting-title em {
  font-style: italic;
  color: var(--accent);
}
.casting-sub {
  color: var(--cream-2);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.casting-requisitos {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.requisito {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--cream-2);
  font-size: 0.95rem;
}
.req-icon {
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.section-form-casting,
.section-form-acceso {
  padding: 6rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.form-casting-inner,
.form-acceso-inner {
  max-width: 700px;
  margin: 0 auto;
}
.form-casting-title,
.form-acceso-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.form-casting-sub,
.form-acceso-sub {
  color: var(--cream-3);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.form-casting,
.form-acceso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--cream-3);
}
.form-group textarea {
  min-height: 120px;
}

/* Photo upload */
.photo-upload-box {
  background: var(--bg-3);
  border: 1px dashed rgba(200,169,110,0.3);
  border-radius: 2px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
  color: var(--cream-3);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.photo-upload-box:hover {
  border-color: var(--accent);
  background: rgba(200,169,110,0.04);
}
.photo-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.photo-icon { font-size: 1.5rem; color: var(--accent); }
.photo-note {
  font-size: 0.75rem;
  color: var(--cream-3);
  font-style: italic;
}

/* Success */
.form-success {
  text-align: center;
  padding: 3rem;
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 2px;
}
.form-success.hidden { display: none; }
.success-glyph {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.form-success p {
  color: var(--cream-2);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   ACCESO — ELLOS
   ============================================================ */
.section-acceso {
  padding: 8rem 2rem;
  border-top: 1px solid var(--line);
}
.acceso-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.acceso-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--cream);
}
.acceso-title em { font-style: italic; color: var(--accent); }
.acceso-sub {
  color: var(--cream-2);
  margin-bottom: 3rem;
}
.precio-card {
  background: var(--bg-2);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 4px;
  padding: 3rem;
  text-align: left;
}
.precio-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.precio-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.precio-amount {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--accent);
}
.precio-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}
.precio-currency {
  font-size: 1.2rem;
  font-weight: 400;
}
.precio-period {
  font-size: 0.85rem;
  color: var(--cream-3);
  align-self: flex-end;
  padding-bottom: 0.3rem;
}
.precio-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.precio-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--cream-2);
}
.check { color: var(--accent); font-size: 0.8rem; flex-shrink: 0; margin-top: 0.15rem; }
.precio-nota {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--cream-3);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 4rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--cream-3);
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--cream-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links span { color: var(--line); }
.footer-legal {
  font-size: 0.72rem;
  color: var(--cream-3);
  opacity: 0.6;
}

/* ============================================================
   CURSOR PERSONALIZADO
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  position: absolute;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,169,110,0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor-dot {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor.is-hovering .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--accent);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .pilares-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pilar:nth-child(2) { border-right: none; }
  .pilar:nth-child(3) { border-top: 1px solid var(--line); }
  .concepto-cols { grid-template-columns: 1fr; gap: 2rem; }
  .casting-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar { border-right: none; border-bottom: 1px solid var(--line); }
  .pilar:last-child { border-bottom: none; }
  .form-casting,
  .form-acceso { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cursor { display: none; }
  .precio-top { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ============================================================
   HERO LAYOUT — texto izquierda, imagen derecha
   ============================================================ */
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  padding: 0 2rem;
}
.hero-inner {
  text-align: left;
}
.hero-inner .hero-actions {
  justify-content: flex-start;
}
.hero-inner .hero-note {
  text-align: left;
}
.hero-inner .hero-kicker {
  justify-content: flex-start;
}

/* Figura con foto real */
.hero-figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 85vh;
  max-height: 700px;
}
.hero-figure-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(200,169,110,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-woman-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  border-radius: 2px;
  filter: brightness(0.92) contrast(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-inner { text-align: center; }
  .hero-inner .hero-actions { justify-content: center; }
  .hero-inner .hero-note { text-align: center; }
  .hero-inner .hero-kicker { justify-content: center; }
  .hero-figure { height: 50vw; max-height: 400px; }
}
