/* ============================================
   EL ARTE DE HABLAR EN PÚBLICO — Rich Gold Dual Theme
   ============================================ */

:root {
  --black: #000000;
  --gold-shadow: #8C6D23;
  --gold-mid: #C5A059;
  --gold-body: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-shine: #FFF2CC;
  --carmine: #C0141C;
  --ivory: #F5F0E8;
  --graphite: #4A4847;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1160px;

  /* ---- theme tokens (dark = default) ---- */
  --bg: #000000;
  --bg-alt: #0a0806;
  --text: #F5F0E8;
  --text-soft: rgba(245, 240, 232, 0.85);
  --text-dim: rgba(245, 240, 232, 0.6);
  --card-bg: rgba(212, 175, 55, 0.05);
  --card-bg-hover: rgba(212, 175, 55, 0.09);
  --card-border: rgba(212, 175, 55, 0.16);
  --divider-line: rgba(212, 175, 55, 0.7);
  --section-border: rgba(212, 175, 55, 0.08);
  --heading-gradient: linear-gradient(45deg, var(--gold-mid) 0%, var(--gold-body) 40%, var(--gold-light) 70%, var(--gold-shine) 100%);
  --quote-color: var(--gold-light);
  --header-bg: rgba(0, 0, 0, 0.82);
  --glow-color: rgba(212, 175, 55, 0.16);
  --logo-shadow: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55));
  --wave-glow: rgba(212, 175, 55, 0.6);
  --wave-glow-soft: rgba(212, 175, 55, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carmine);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */
.h-cinzel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-cinzel {
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}
.h-cinzel.center { text-align: center; }

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 18px;
}
.lead.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }

p { color: var(--text-soft); font-weight: 300; }

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  margin: 0 0 28px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider-line), transparent);
}
.divider i {
  width: 8px;
  height: 8px;
  background: var(--gold-body);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
  flex-shrink: 0;
}

.mini-diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold-body);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
}

/* ---------- Buttons: "boleto de escenario" ----------
   Diagonally cut opposite corners (clip-path), like a theater ticket.
   Thin metallic-gold border via the padding-box/border-box background
   trick (transparent border + two background layers), black fill with
   a very subtle gold wash underneath. Unified across every CTA on the
   page — no separate solid/outline variants. */
.btn {
  --ticket-cut: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--gold-light);
  padding: 14px 30px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.08)) padding-box,
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #8C6D23, #D4AF37, #F3E5AB) border-box;
  clip-path: polygon(var(--ticket-cut) 0, 100% 0, 100% calc(100% - var(--ticket-cut)), calc(100% - var(--ticket-cut)) 100%, 0 100%, 0 var(--ticket-cut));
  transition: transform 0.2s ease, filter 0.3s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.18); }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; --ticket-cut: 18px; }

.icon-wa { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5)); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--section-border);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo { display: block; line-height: 0; }
.header-logo img { height: 48px; width: auto; filter: var(--logo-shadow); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

@media (max-width: 560px) {
  .header-logo img { height: 38px; }
  .header-cta span { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding: 100px 24px 60px;
  text-align: center;
  transition: background-color 0.4s ease;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.stage-floor {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 105%, var(--glow-color), transparent 70%);
}

.spotlight {
  position: absolute;
  top: -10%;
  width: 46vw;
  max-width: 520px;
  height: 90vh;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(243, 229, 171, 0.22) 0%, rgba(212, 175, 55, 0.14) 30%, rgba(212, 175, 55, 0.05) 55%, transparent 75%);
  opacity: 0;
  filter: blur(10px);
}
.spotlight-1 { left: 4%; }
.spotlight-2 { left: 50%; transform: translateX(-50%); }
.spotlight-3 { right: 4%; }

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
}

.hero-logo {
  width: min(420px, 78vw);
  height: auto;
  margin: 0 0 28px;
  opacity: 0;
  filter: var(--logo-shadow);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  line-height: 1.25;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 24px;
  opacity: 0;
}
.hero-title { text-shadow: 0 0 30px rgba(212, 175, 55, 0.25); }
.hero-title-dim { opacity: 0.6; }

.hero-hook {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 34px;
  opacity: 0;
}

.hero-cta { opacity: 0; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-mid);
  opacity: 0;
  animation: cueBob 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: no-preference) {
  .spotlight-1 { animation: spotFadeIn 1.4s ease-out 0.2s forwards, spotBreathe 4s ease-in-out 2.4s infinite; }
  .spotlight-2 { animation: spotFadeIn 1.4s ease-out 0.7s forwards, spotBreathe 4s ease-in-out 2.9s infinite; }
  .spotlight-3 { animation: spotFadeIn 1.4s ease-out 1.2s forwards, spotBreathe 4s ease-in-out 3.4s infinite; }

  .hero-logo { animation: riseIn 0.9s ease-out 1.8s forwards; }
  .hero-title { animation: riseIn 0.9s ease-out 2.15s forwards; }
  .hero-hook { animation: riseIn 0.9s ease-out 2.5s forwards; }
  .hero-cta { animation: riseIn 0.9s ease-out 2.85s forwards; }
  .scroll-cue { animation: fadeOnly 0.9s ease-out 3.3s forwards, cueBob 2.4s ease-in-out 4.2s infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight { opacity: 1; }
  .hero-logo, .hero-title, .hero-hook, .hero-cta, .scroll-cue { opacity: 1; }
}

@keyframes spotFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spotBreathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.62; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes cueBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============ Scroll reveal ============
   Elements are visible by default (safe fallback if GSAP/CDN fails).
   GSAP (script.js) applies the animated "from" state at runtime only
   when it has successfully loaded, via gsap.from() + ScrollTrigger. */
.reveal { will-change: opacity, transform; }

/* ============ Traveling microphone — "Profundidad que se apaga" ============
   A small miniature of the brand microphone, fixed near the hero. While
   the visitor is in the hero it carries a soft golden rim light around
   its tip. As they scroll from the hero into "El problema", script.js
   (GSAP ScrollTrigger, scrubbed to real scroll position — never time)
   scales it down, dims it and fades the rim light out, as if the light
   left the moment the fear-of-public-speaking topic begins. Only
   opacity/transform/filter are touched, so it never affects layout or
   scroll performance. Purely decorative (aria-hidden) — stays invisible
   if GSAP fails to load; reduced-motion visitors get the static, already
   dimmed end-state below with no transition. */
.travel-mic-wrap {
  position: fixed;
  left: 16px;
  top: 120px;
  width: 52px;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  perspective: 700px;
  will-change: transform, opacity;
}
.travel-mic-glow {
  position: absolute;
  top: -14%;
  left: 50%;
  width: 140%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(14px);
  background: radial-gradient(closest-side, var(--wave-glow), transparent 72%);
  z-index: 1;
  transition: opacity 0.3s ease;
}
.travel-mic-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  backface-visibility: hidden;
  filter: brightness(1) saturate(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

@media (max-width: 860px) {
  .travel-mic-wrap { left: 10px; width: 40px; }
}
@media (max-width: 480px) {
  .travel-mic-wrap { left: 6px; width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .travel-mic-wrap { opacity: 0.4; }
  .travel-mic-img { filter: brightness(0.45) saturate(0.6) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)); transform: scale(0.82); }
  .travel-mic-glow { opacity: 0; }
}

/* ============ Glow blobs (cinematic diffuse lighting) ============ */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow-blob-a {
  width: 480px; height: 480px;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow-color), transparent 70%);
}
.glow-blob-b {
  width: 420px; height: 420px;
  bottom: -140px; right: 8%;
  background: radial-gradient(circle, rgba(192, 20, 28, 0.12), transparent 70%);
}

/* ============ SECTIONS (general) ============ */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--section-border); }

.problema { background: var(--bg); }
.problema p { font-size: 1.02rem; }

.valor { background: var(--bg-alt); text-align: center; overflow: hidden; }
.quote-buffett {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.5;
  color: var(--quote-color);
  margin: 0 0 16px;
  quotes: none;
  position: relative;
  z-index: 1;
}
.quote-author {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}
.valor-copy { position: relative; z-index: 1; }

.metodo { background: var(--bg-alt); }

/* ---------- Módulos ---------- */
.v-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.v-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.v-card:hover {
  border-color: var(--gold-body);
  transform: translateY(-4px);
}
.v-icon { display: inline-block; width: 56px; height: 56px; margin-bottom: 14px; }
.v-icon svg { width: 100%; height: 100%; }
.v-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 6px;
}
.v-card h3 {
  font-family: var(--font-display);
  color: var(--quote-color);
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.v-sub {
  font-weight: 500;
  color: var(--text);
  font-size: 0.92rem;
  margin: 0 0 12px;
}
.v-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Diferenciadores ---------- */
.diferenciadores { background: var(--bg); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
/* ---------- Spotlight cards (theatrical "lights off / stage light" effect) ----------
   Deliberately dark on both themes — this is a stage, not a themed surface.
   --sx/--sy are set by script.js on pointermove (cursor-follow spotlight);
   the .spot-active class is toggled briefly by GSAP on scroll-in to give a
   one-time "house lights coming up" ignition before settling back to dim,
   ready for hover. Resting text stays legible on its own (no hover needed
   on touch devices) — the spotlight only adds drama on top of that. */
.spot-card {
  --sx: 50%;
  --sy: 38%;
  position: relative;
  overflow: hidden;
  background: #0a0806;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 8px;
  padding: 28px 24px;
  isolation: isolate;
  transition: border-color 0.4s ease;
}
.spot-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle 240px at var(--sx) var(--sy), rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.08) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
}
.spot-card:hover::before,
.spot-card.spot-active::before {
  opacity: 1;
}
.spot-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}
.spot-card > * {
  position: relative;
  z-index: 1;
}
.spot-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: rgba(243, 229, 171, 0.6);
  font-size: 1.05rem;
  margin: 14px 0 10px;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.spot-card:hover h3,
.spot-card.spot-active h3 {
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}
.spot-card p {
  font-size: 0.92rem;
  margin: 0;
  color: rgba(245, 240, 232, 0.5);
  transition: color 0.5s ease;
}
.spot-card:hover p,
.spot-card.spot-active p {
  color: rgba(245, 240, 232, 0.88);
}
.mini-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.55);
  transition: color 0.5s ease, text-shadow 0.5s ease;
}
.spot-card:hover .mini-num,
.spot-card.spot-active .mini-num {
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}
.spot-card .mini-diamond { opacity: 0.55; transition: opacity 0.5s ease; }
.spot-card:hover .mini-diamond,
.spot-card.spot-active .mini-diamond { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .spot-card::before { transition: none; }
}

/* ---------- Qué incluye ---------- */
.incluye { background: var(--bg-alt); }
.incluye-list {
  list-style: none;
  margin: 40px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.incluye-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--section-border);
}
.incluye-list li:last-child { border-bottom: none; }
.incluye-cta { text-align: center; margin-top: 40px; }

/* ---------- Testimonio ---------- */
.testimonio { background: var(--bg); text-align: center; }
.stars {
  color: var(--gold-body);
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--quote-color);
  margin: 0 0 20px;
  quotes: none;
}
cite {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Sede ---------- */
.sede { background: var(--bg-alt); text-align: center; }
.sede-name {
  font-family: var(--font-display);
  color: var(--quote-color);
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.sede-address { font-size: 1rem; margin: 0; color: var(--text-soft); }

/* ---------- CTA Final ---------- */
.cta-final { background: var(--bg); text-align: center; padding-bottom: 110px; overflow: hidden; }
.cta-final-btn { margin-top: 36px; position: relative; z-index: 1; }
.cta-final .container { position: relative; z-index: 1; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--section-border);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo { width: 40px; height: auto; opacity: 0.92; filter: var(--logo-shadow); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.9rem;
}
.footer-links a { color: var(--gold-mid); text-decoration: none; }
.footer-links a:hover { color: var(--gold-body); }
.footer-links span { color: var(--text-dim); }

.footer-signature {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 12px 0 0;
}
.signature-name { color: var(--gold-mid); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.7;
  margin: 4px 0 0;
}

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
  --ticket-cut: 10px;
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.08)) padding-box,
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, #8C6D23, #D4AF37, #F3E5AB) border-box;
  clip-path: polygon(var(--ticket-cut) 0, 100% 0, 100% calc(100% - var(--ticket-cut)), calc(100% - var(--ticket-cut)) 100%, 0 100%, 0 var(--ticket-cut));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 200;
  transition: transform 0.2s ease, filter 0.3s ease;
}
.wa-float:hover { transform: scale(1.08); filter: brightness(1.18); }
.wa-float svg { width: 28px; height: 28px; filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.5)); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .v-grid { grid-template-columns: 1fr; gap: 20px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 20px 50px; min-height: 100vh; }
  .hero-logo { margin-bottom: 22px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 10px 16px; }
  .header-actions { gap: 8px; }
}
