/* ======================================================
   MATÍAS REBOZOV — Diseño web personal
   Estética: negro profundo · dorado · crema cálida
   ====================================================== */

/* === TOKENS ============================================ */
:root {
  --deep:       #0B0907;
  --dark:       #161210;
  --card:       #1E1916;
  --mid:        #28231E;
  --border:     rgba(201,162,100,.12);
  --gold:       #C9A264;
  --gold-hi:    #DEAD7A;
  --gold-lo:    #9A7A48;
  --cream:      #F2E8D5;
  --cream-off:  #FBF8F2;
  --cream-dim:  #DDD0BC;
  --muted:      #7A6D60;
  --text-dark:  #2A2420;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-ui:    'Inter', system-ui, sans-serif;

  --pad:        clamp(4rem, 8vw, 8rem);
  --inner:      min(1160px, 90vw);
  --ease:       cubic-bezier(.25,.1,.25,1);
  --ease-out:   cubic-bezier(0,0,.3,1);
  --spring:     cubic-bezier(.34,1.56,.64,1);
}

/* === RESET ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  background: var(--deep);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* === CURSOR (desktop) ================================= */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: background .2s, width .2s var(--spring), height .2s var(--spring);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(201,162,100,.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .12s var(--ease-out), width .3s var(--spring), height .3s var(--spring), opacity .3s;
}
.cursor.cursor--hover { width: 14px; height: 14px; background: var(--gold-hi); }
.cursor-ring.cursor--hover { width: 60px; height: 60px; opacity: .4; }

/* === UTILITIES ======================================== */
.container { max-width: var(--inner); margin: 0 auto; }
.label {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.label--light { color: var(--gold); }
.label--centered { text-align: center; }

h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
}
h2 em { font-style: italic; color: var(--gold-lo); }
.title-light { color: var(--cream); }
.title-light em { color: var(--gold); }

h3 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream);
}

.body-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #5A4E44;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

/* === BUTTONS =========================================== */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: var(--deep);
}
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,100,.3); }
.btn--outline {
  border: 1px solid rgba(255,255,255,.4);
  color: var(--cream);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline-light {
  border: 1px solid rgba(255,255,255,.5);
  color: var(--cream);
}
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark {
  background: var(--dark);
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn--dark:hover { border-color: var(--gold); transform: translateY(-2px); }

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* === NAVIGATION ======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.nav--scrolled {
  background: rgba(22,18,16,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 5vw;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo-img { width: 32px; height: 32px; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--cream);
  letter-spacing: .04em;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242,232,213,.7);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--cream);
  transition: all .3s var(--ease);
}
.nav-toggle--open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === HERO ============================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform-origin: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,9,7,.82) 0%,
    rgba(11,9,7,.55) 50%,
    rgba(11,9,7,.35) 100%
  );
}
.hero-watermark {
  position: absolute;
  right: 5%; top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 35vw, 500px);
  opacity: .05;
  pointer-events: none;
  z-index: 1;
}
.hero-watermark img { width: 100%; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 5vw;
  width: 100%;
  padding-top: 6rem;
}
.hero-eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp .8s var(--ease-out) .4s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--cream-off);
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.hero-word {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 1s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-word:nth-child(1) { animation-delay: .5s; }
.hero-word--italic {
  font-style: italic;
  color: var(--gold);
  animation-delay: .68s;
}
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(242,232,213,.7);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp .8s var(--ease-out) .9s forwards;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp .8s var(--ease-out) 1.1s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDown 2.2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  45%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* === ABOUT ============================================= */
.about {
  padding: var(--pad) 5vw;
  background: var(--cream-off);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about-photos {
  position: relative;
  padding-bottom: 4rem;
}
.about-photo-main {
  position: relative;
  z-index: 1;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.about-photo-main img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-photo-side {
  position: absolute;
  bottom: 0; right: -2.5rem;
  width: 52%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border: 4px solid var(--cream-off);
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
  z-index: 2;
}
.about-photo-side img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-text { display: flex; flex-direction: column; align-items: flex-start; }
.about-text .label { color: var(--gold-lo); }
.about-text h2 { margin-bottom: 1.5rem; }
.about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0 2.5rem;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1;
}
.stat-plus { font-size: .9rem; color: var(--gold-lo); margin-top: -4px; align-self: flex-start; }
.stat-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .25rem;
}
.stat-sep { width: 1px; height: 40px; background: var(--cream-dim); }

/* === PHILOSOPHY ======================================== */
.philosophy {
  position: relative;
  padding: var(--pad) 5vw;
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}
.philosophy-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: min(70vw, 600px);
  opacity: .04;
  pointer-events: none;
}
.spinning-ouroboros { width: 100%; animation: spinSlow 80s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.philosophy-inner { position: relative; z-index: 1; }
.ornament-line {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
}
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  quotes: none;
}
.philosophy-quote em { color: var(--gold); font-style: italic; }
.philosophy-body {
  font-size: .9rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 1.5rem auto 0;
  line-height: 1.8;
}
.philosophy-video {
  max-width: 720px;
  margin: 3rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.philosophy-video video {
  width: 100%;
  display: block;
  background: #000;
}
.philosophy-cta {
  display: inline-flex;
  margin-top: 2rem;
}

/* === PROGRAMS ========================================== */
.programs {
  padding: var(--pad) 5vw;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.program-card {
  background: var(--card);
  padding: clamp(2rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background .3s;
  position: relative;
}
.program-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .4s var(--ease-out);
}
.program-card:hover { background: var(--mid); }
.program-card:hover::after { width: 100%; }
.program-card--featured { background: var(--mid); }
.program-card--featured::before {
  content: 'Popular';
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,162,100,.3);
  padding: .2rem .6rem;
  border-radius: 20px;
}
.program-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,162,100,.15);
  line-height: 1;
  margin-bottom: -.5rem;
}
.program-icon svg { width: 28px; height: 28px; color: var(--gold); }
.program-icon--brand img { width: 28px; height: 28px; }
.program-card p { font-size: .9rem; color: var(--muted); line-height: 1.7; flex: 1; }
.program-link {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  transition: gap .2s;
}
.program-link:hover { gap: .8rem; }

/* === SPEAKER =========================================== */
.speaker {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.speaker-bg {
  position: absolute;
  inset: 0;
}
.speaker-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.speaker-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,9,7,.88) 0%, rgba(11,9,7,.5) 60%, rgba(11,9,7,.1) 100%);
}
.speaker-content {
  position: relative;
  z-index: 1;
  padding: 5vw;
  max-width: 600px;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.speaker-content p { font-size: .95rem; color: rgba(242,232,213,.7); margin: 1.5rem 0 2rem; line-height: 1.8; max-width: 50ch; }

/* === GALLERY =========================================== */
.gallery {
  padding: var(--pad) 0;
  background: var(--deep);
}
.gallery-header { padding: 0 5vw; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.gallery-header h2 { color: var(--cream); }
.gallery-header h2 em { color: var(--gold); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--card);
}
.gallery-item.g-tall  { grid-row: span 2; }
.gallery-item.g-wide  { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.25,.1,.25,1);
}
.gallery-item:hover img { transform: scale(1.07); }
.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201,162,100,0);
  transition: background .3s;
}
.gallery-item:hover .g-overlay { background: rgba(201,162,100,.06); }

/* === TESTIMONIALS ====================================== */
.testimonials {
  padding: var(--pad) 5vw;
  background: var(--cream-off);
}
.testimonials .section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.testimonials .section-header h2 { color: var(--text-dark); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: white;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.testimonial-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: .5;
  color: var(--gold);
  opacity: .3;
  user-select: none;
}
.testimonial-card p { font-size: .9rem; line-height: 1.8; color: #5A4E44; flex: 1; }
.testimonial-footer { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.testimonial-avatar {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--deep);
  flex-shrink: 0;
}
.testimonial-footer strong { display: block; font-size: .85rem; color: var(--text-dark); }
.testimonial-footer span { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

/* === RETREATS ========================================== */
.retreats {
  padding: var(--pad) 5vw;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.retreats-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.retreats-text { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.retreats-text p { font-size: .95rem; color: var(--muted); line-height: 1.8; max-width: 48ch; margin-bottom: .5rem; }
.retreats-list { margin: .5rem 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.retreats-list li { font-size: .9rem; color: rgba(242,232,213,.7); display: flex; gap: .7rem; align-items: baseline; }
.feat-dot { color: var(--gold); font-size: .6rem; flex-shrink: 0; }
.retreats-photo { overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.4); }
.retreats-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.2s var(--ease); }
.retreats-photo:hover img { transform: scale(1.04); }

/* === CONTACT =========================================== */
.contact {
  padding: var(--pad) 5vw;
  background: var(--deep);
  border-top: 1px solid var(--border);
}
.contact-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact-sub { font-size: 1rem; color: var(--muted); margin-top: .75rem; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--card);
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background .3s;
}
.contact-card:hover { background: var(--mid); }
.contact-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .3s;
}
.contact-card:hover .contact-icon { border-color: rgba(201,162,100,.4); }
.contact-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-icon--brand img { width: 24px; height: 24px; }
.contact-info { flex: 1; }
.contact-info strong { display: block; font-size: .85rem; color: var(--cream); margin-bottom: .15rem; }
.contact-info span { font-size: .78rem; color: var(--muted); }
.contact-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: all .3s var(--ease);
}
.contact-card:hover .contact-arrow { opacity: 1; transform: translateX(0); }

/* === FOOTER ============================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 4rem 5vw;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.footer-brand { text-align: center; }
.footer-ouroboros { width: 56px; height: 56px; margin: 0 auto 1rem; }
.footer-name {
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .25em;
  color: var(--cream);
  margin-bottom: .3rem;
}
.footer-tagline { font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, transform .2s;
}
.footer-social a:hover { border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; color: var(--muted); transition: color .2s; }
.footer-social a:hover svg { color: var(--gold); }
.footer-social-ouroboros { width: 17px; height: 17px; opacity: .5; filter: brightness(0) invert(1); transition: opacity .2s; }
.footer-social a:hover .footer-social-ouroboros { opacity: .9; }
.footer-copy { font-size: .72rem; color: var(--muted); opacity: .5; }
.footer-credit { font-size: .65rem; color: var(--muted); opacity: .4; margin-top: -1rem; }
.footer-credit a { color: inherit; text-decoration: underline; transition: opacity .2s; }
.footer-credit a:hover { opacity: .8; }

/* === CHATBOT =========================================== */
.chatbot {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 5000;
}
.chatbot-btn {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(201,162,100,.4);
  transition: transform .3s var(--spring), background .3s;
  cursor: pointer;
}
.chatbot-btn:hover { transform: scale(1.1); background: var(--gold-hi); }
.chatbot-pulse {
  position: absolute;
  inset: 0; border-radius: 50%;
  background: var(--gold);
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.2); opacity: 0; }
}
.cb-icon { width: 22px; height: 22px; color: var(--deep); position: absolute; transition: opacity .2s, transform .2s; }
.cb-icon--close { opacity: 0; transform: rotate(-90deg); }
.chatbot-btn.cb-open .cb-icon--chat  { opacity: 0; transform: rotate(90deg); }
.chatbot-btn.cb-open .cb-icon--close { opacity: 1; transform: rotate(0deg); }
.chatbot-btn.cb-open .chatbot-pulse  { display: none; }

.chatbot-panel {
  position: absolute;
  bottom: 74px; right: 0;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 64px rgba(0,0,0,.55);
  transform: scale(.95) translateY(12px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--spring);
}
.chatbot-panel.cb-panel-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.chatbot-head {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--mid);
  border-bottom: 1px solid var(--border);
}
.chatbot-head-logo { width: 34px; height: 34px; }
.chatbot-head strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--cream); }
.chatbot-status { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; flex-shrink: 0; }

.chatbot-messages {
  height: 300px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 4px; }

.cb-msg { max-width: 86%; }
.cb-msg p {
  padding: .6rem .9rem;
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.55;
  margin: 0;
}
.cb-msg a { color: var(--gold); text-decoration: underline; }
.cb-msg--bot { align-self: flex-start; }
.cb-msg--bot p { background: var(--mid); color: var(--cream); border-bottom-left-radius: 3px; }
.cb-msg--user { align-self: flex-end; }
.cb-msg--user p { background: var(--gold); color: var(--deep); border-bottom-right-radius: 3px; }

.cb-typing {
  align-self: flex-start;
  background: var(--mid);
  padding: .65rem .9rem;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.cb-typing span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typeDot 1.3s ease-in-out infinite;
}
.cb-typing span:nth-child(2) { animation-delay: .18s; }
.cb-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typeDot {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50%       { transform: translateY(-4px); opacity: 1; }
}
.cb-quickreplies { display: flex; flex-wrap: wrap; gap: .4rem; padding: .2rem 0; }
.cb-quickreplies button {
  background: transparent;
  border: 1px solid rgba(201,162,100,.25);
  color: var(--gold);
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  transition: all .2s;
  cursor: pointer;
}
.cb-quickreplies button:hover { background: rgba(201,162,100,.1); border-color: var(--gold); }

.chatbot-input-row {
  display: flex;
  gap: .4rem;
  padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.chatbot-input-row input {
  flex: 1;
  background: var(--mid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .5rem .75rem;
  color: var(--cream);
  font-size: .85rem;
  font-family: var(--font-ui);
  outline: none;
  transition: border-color .2s;
}
.chatbot-input-row input:focus { border-color: rgba(201,162,100,.35); }
.chatbot-input-row input::placeholder { color: var(--muted); }
.chatbot-input-row #chatbot-send {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.chatbot-input-row #chatbot-send:hover { background: var(--gold-hi); transform: scale(1.08); }
.chatbot-input-row #chatbot-send svg { width: 15px; height: 15px; color: var(--deep); }

/* === KEYFRAMES ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE ======================================== */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr; gap: 1px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photos { max-width: 420px; margin: 0 auto; }
  .retreats-inner { grid-template-columns: 1fr; }
  .retreats-photo { order: -1; max-height: 380px; overflow: hidden; }
  .retreats-photo img { aspect-ratio: 16/9; }
  .speaker { min-height: 60vh; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.g-wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0; top: 64px;
    background: rgba(22,18,16,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav-links--open { transform: translateX(0); }
  .nav-links a { font-size: .9rem; letter-spacing: .2em; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .about-photo-side { display: none; }
  .chatbot-panel { width: calc(100vw - 2rem); right: -1.6rem; }
  .footer-nav { gap: 1.25rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .about-stats { gap: 1rem; }
}
