/* ══════════════════════════════════════
   CÍRCULO DORADO — style.css
   ══════════════════════════════════════ */

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

:root {
  --gold:      #A8821A;
  --gold-line: #c0a775;
  --ink:       #1C1A17;
  --ink-soft:  #3C3830;
  --ink-mute:  #6E6860;
  --cream:     #FDFCF9;
  --line:      #DDD6CC;
}

html, body {
  width: 100%;
  background: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ── PORTADA ── */
.cover {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: visible;
}

/* La imagen se define en index.html como data URI (base64 embebida)
   o acá como archivo si está disponible: url('assets/cover.jpg') */
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 55%;
  opacity: 0.45;
  z-index: 0;
}

.cover-text {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  /* texto centrado exactamente sobre el círculo */
  transform: translateY(0);
}

.cover-eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(64px, 9vw, 92px);
  font-weight: 500;
  line-height: 1.0;
  color: var(--gold);
  letter-spacing: .04em;
  margin-bottom: 1.3rem;
}

.cover-rule {
  width: 34px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.3rem;
}

.cover-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.8vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

.cover-facs {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── NAV ── */
.cover-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: none;
  background: rgba(253,252,249,0.99);
  backdrop-filter: blur(12px);
  padding: 0;
  width: 100%;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover-nav.scrolled {
  bottom: auto;
  top: 0;
  border-top: none;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  justify-content: center;
  display: flex;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cover-nav a {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.cover-nav a:last-child { border-right: none; }
.cover-nav a:hover {
  color: var(--gold);
  background: rgba(168,130,26,0.05);
}
.cover-nav a.active {
  color: var(--gold);
  background: rgba(168,130,26,0.08);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 15px;
}

.scroll-top {
  position: absolute;
  right: 0;
  font-size: 20px;
  font-weight: bold;
  transition: opacity .3s, color .2s;
  cursor: pointer;
  padding: 14px 18px !important;
  border-left: 1px solid var(--line);
  border-right: none;
}
.scroll-top:hover {
  color: var(--gold) !important;
}

/* Botón flotante de scroll-to-top */
.scroll-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--cream);
  border: 2px solid var(--gold-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn:hover {
  background: var(--gold);
  color: var(--cream);
  transform: translateY(-4px);
}

/* ── DOC ── */
.doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 2rem 0;
}

/* Pantallas grandes */
@media (min-width: 1400px) {
  .doc {
    width: 60vw;
    max-width: none;
    padding: 4.5rem 2rem 0;
  }
}

section {
  margin-bottom: 4.5rem;
  scroll-margin-top: 120px;
}

.sec-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: .5px solid var(--line);
  scroll-margin-top: 2rem;
}

p {
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.82;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
p:last-child { margin-bottom: 0; }

em {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.3vw, 23px);
  font-style: italic;
  color: var(--ink);
}

/* Objetivos */
.obj-list { margin: .8rem 0 0; padding: 0; list-style: none; }
.obj-item {
  display: flex; gap: 12px; align-items: baseline;
  padding: 6px 0; border-bottom: .5px solid var(--line);
  font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-soft);
}
.obj-item:last-child { border-bottom: none; }
.obj-dot { color: var(--gold); min-width: 10px; font-weight: 500; }

/* Etapas */
.etapa {
  padding: 10px 0; border-bottom: .5px solid var(--line);
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
}
.etapa:last-child { border-bottom: none; }
.etapa-nombre { font-size: clamp(17px, 2.1vw, 20px); font-weight: 400; color: var(--ink); }
.etapa-desc { font-size: clamp(16px, 2vw, 18px); color: var(--ink-soft); line-height: 1.7; }

/* Centros */
.centro {
  padding: 9px 0; border-bottom: .5px solid var(--line);
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px;
  align-items: baseline;
}
.centro:last-child { border-bottom: none; }
.centro-n { font-size: clamp(13px, 1.6vw, 14px); color: var(--gold); font-weight: 500; }
.centro-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); display: block; margin-bottom: 2px;
}
.centro-desc { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-soft); }
.centro-sk { font-size: clamp(14px, 1.7vw, 17px); color: var(--ink-mute); white-space: nowrap; }

/* Facilitadores */
.fac {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: .5px solid var(--line);
}
.fac:last-child { border-bottom: none; }
.fac-avatar {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(168, 130, 26, 0.15);
}
.fac-content { flex: 1; }
.fac-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(21px, 2.5vw, 27px); color: var(--ink); margin-bottom: .8rem;
  margin-top: 0;
}
.fac-bio { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-soft); line-height: 1.78; margin: 0; }

/* Programa */
.enc {
  display: grid; grid-template-columns: 24px 112px 1fr;
  gap: 8px; padding: 8px 0; border-bottom: .5px solid var(--line);
  align-items: baseline;
}
.enc:last-child { border-bottom: none; }
.enc-n { font-size: clamp(11px, 1.4vw, 14px); color: var(--gold); font-weight: 500; }
.enc-fecha { font-size: clamp(14px, 1.8vw, 18px); color: var(--ink-mute); }
.enc-titulo { font-size: clamp(16px, 1.8vw, 18px); color: var(--ink); }
.enc-sub { font-size: clamp(14px, 1.7vw, 17px); color: var(--ink-mute); display: block; margin-top: 1px; }
.mes-sep {
  font-size: clamp(11px, 1.4vw, 14px); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); padding: 10px 0 3px; grid-column: 1/-1;
}

/* Precios */
.precio-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: .5px solid var(--line); font-size: clamp(17px, 2vw, 20px);
}
.precio-row:last-child { border-bottom: none; }
.precio-tipo { color: var(--ink-soft); }
.precio-val { color: var(--ink); }
.precio-tag { font-size: clamp(13px, 1.6vw, 14px); color: var(--gold); margin-left: 8px; }

/* ── CTA BUTTON ── */
.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--cream);
  padding: 16px 40px;
  text-decoration: none;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background .3s, transform .2s;
  margin: 1.5rem auto;
  display: block;
  width: fit-content;
  text-align: center;
}
.cta-button:hover {
  background: #8f7016;
  transform: translateY(-2px);
}

/* ── WHATSAPP LINK ── */
.whatsapp-link {
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(14px, 1.7vw, 17px);
  border-bottom: 1px solid var(--gold);
  transition: all .3s;
  padding-bottom: 4px;
}
.whatsapp-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── MODAL INSCRIPCIÓN ── */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn .3s;
}

/* ── ANIMACIONES ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animaciones a elementos */
section, .fac, .enc, .precio-row {
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--cream);
  padding: 3rem;
  border-radius: 8px;
  width: 90%;
  max-width: 90vw;
  height: 90vh;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-content > div {
  flex: 1;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .3s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gold);
}

/* ── FOOTER YANTRA ── */
.footer {
  position: relative;
  text-align: center;
  padding: 3rem 0 3.5rem;
  border-top: .5px solid var(--line);
  overflow: hidden;
}

.footer-yantra {
  position: absolute;
  bottom: -25%; left: 0; right: 0;
  z-index: 0;
  opacity: 0.22;
  overflow: visible;
  height: 140%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-yantra img {
  width: 150%;
  max-width: 150%;
  height: auto;
  display: block;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 36px); font-style: italic; font-weight: 300;
  color: var(--ink); line-height: 1.65; margin-bottom: 1.5rem;
}

.footer-facs {
  font-size: 13px; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}

.footer-credits {
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--ink-mute);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: .5px solid var(--line);
}

.footer-credits a {
  color: var(--gold);
  text-decoration: none;
  transition: color .3s;
}

.footer-credits a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* MENU MOBILE - DOS LÍNEAS */
  .cover-nav {
    flex-wrap: wrap;
    padding: 0;
    height: auto;
  }
  .cover-nav a {
    font-size: 11px;
    padding: 12px 0;
    letter-spacing: .08em;
    flex: 0 1 33.333%;
    text-align: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .cover-nav a:nth-child(3n) {
    border-right: none;
  }
  .cover-nav a:nth-child(n+4) {
    border-bottom: none;
  }
  .scroll-top {
    flex: 0 1 33.333%;
    width: auto;
    border-left: none;
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-bottom: none;
    position: relative;
    right: auto;
  }

  /* BOTÓN FLOTANTE - MOBILE */
  .scroll-top-btn {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* CONDICIONES - OCULTAR NÚMEROS */
  .condition-num {
    display: none;
  }

  /* CÍRCULO FONDO MOBILE */
  .cover-bg {
    background-position: 50% 55%;
  }

  /* FACILITADORES MOBILE */
  .fac {
    flex-direction: column;
    align-items: center;
  }
  .fac-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    margin-bottom: 1.5rem;
  }
  .fac-content {
    width: 100%;
    text-align: center;
  }

  /* CONDICIONES MOBILE */
  .fac-nombre {
    font-size: clamp(18px, 4vw, 22px);
  }
  .precio-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* CITA FINAL MOBILE */
  .footer-quote {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 1rem;
  }
  .footer-facs {
    font-size: 11px;
  }
  .footer-credits {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .cover-nav a { font-size: 9.5px; padding: 13px 10px; letter-spacing: .09em; }
  .etapa { grid-template-columns: 90px 1fr; }
  .centro { grid-template-columns: 18px 1fr; }
  .centro-sk { display: none; }
  .enc { grid-template-columns: 20px 90px 1fr; }
}

@media print {
  .cover { height: 100vh; page-break-after: always; }
  .cover-nav { display: none; }
}
