/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:        #fef9ef;
  --bg-warm:   #f5ede1;
  --accent:    #99582a;
  --dark:      #2a2b2f;
  --dark-70:   rgba(42,43,47,.7);
  --dark-56:   rgba(42,43,47,.56);
  --border:    rgba(153,88,41,.12);
}

/* ── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; }

/* ── Utility ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center;
  width: fit-content;
  padding: 4px 14px; border-radius: 50px;
  font-size: 14px; font-weight: 500; letter-spacing: -.05em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 50px;
  font-size: 16px; font-weight: 500; letter-spacing: -.05em;
  cursor: pointer; transition: opacity .2s;
  white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn-primary   { background: var(--accent); color: var(--bg); }
.btn-secondary { background: var(--bg-warm); color: var(--dark); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  height: 85px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 64px;
  background: transparent;
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-links {
  display: flex; align-items: center; gap: 20px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--bg);
  letter-spacing: -.05em; line-height: 1.5;
}
.nav-links a:hover { opacity: .75; }
.nav-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-logo img {
  width: 48px; height: 48px;
}

/* ── Hamburger (mobile) ─────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--bg);
  border-radius: 2px; transition: .3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 201;
  background: var(--dark);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
body.mobile-menu-open .hamburger { visibility: hidden; }
.mobile-menu a { font-size: 24px; color: var(--bg); font-weight: 500; }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--bg); font-size: 28px; cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────── */
#hero {
  position: relative; width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 160px 64px 80px;
  overflow: hidden; background: var(--bg);
}
#hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  filter: brightness(.8) saturate(1.2);
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-pill {
  background: rgba(254,249,239,.24); backdrop-filter: blur(50px);
  color: var(--bg);
}
.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 7vw, 90px);
  font-weight: 400; line-height: 1;
  letter-spacing: -.03em; color: var(--bg);
  max-width: 780px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: #f5ede1;
  max-width: 446px;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: nowrap;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 400;
  letter-spacing: -.07em; color: var(--bg); line-height: 1.1;
}
.stat-label {
  font-size: clamp(14px, 1.5vw, 18px); font-weight: 400;
  letter-spacing: -.05em; color: #f5ede1; white-space: nowrap;
}
.stat-divider {
  width: 1px; align-self: stretch;
  background: rgba(254,249,239,.32);
}

/* ── Problem ────────────────────────────────────────────────── */
#problem {
  background: var(--bg);
  padding: 64px 64px;
  display: flex; flex-direction: column; align-items: center;
  gap: 48px;
}
.problem-heading {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400; line-height: 1;
  letter-spacing: -.07em; color: var(--dark);
  text-align: center; max-width: 850px;
}
.problem-heading .accent { color: var(--accent); }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%;
}
@media (max-width: 809px) {
  .problem-cards { grid-template-columns: 1fr; }
}
@media (min-width: 810px) and (max-width: 1024px) {
  .problem-cards { grid-template-columns: repeat(2, 1fr); }
}
.problem-card {
  background: var(--bg-warm);
  border-radius: 16px;
  display: flex; align-items: center; gap: 0;
  height: 160px; overflow: hidden;
}
.problem-card-img {
  width: 160px; height: 160px; flex-shrink: 0;
  border-radius: 16px 0 0 16px; overflow: hidden;
}
.problem-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.problem-card-text {
  padding: 8px 12px;
  font-size: 17px; font-weight: 500; line-height: 1.4;
  letter-spacing: -.05em; color: var(--dark);
}

/* ── About ──────────────────────────────────────────────────── */
#about {
  background: var(--bg-warm);
  display: flex; flex-direction: row;
  min-height: 560px; max-height: 680px; overflow: hidden;
}
.about-image {
  flex: 1.4; min-height: 380px;
  overflow: hidden;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.about-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 24px;
  padding: 80px 64px;
}
.about-badge { background: var(--accent); color: var(--bg); }
.about-title {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -.05em; color: var(--dark);
}
.about-title .accent { color: var(--accent); }
.about-subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400; line-height: 1.3;
  letter-spacing: -.06em; color: var(--dark);
  max-width: 440px;
}
.about-body {
  font-size: 18px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
  max-width: 535px;
}
.about-body p + p { margin-top: 18px; }
.about-stars img { width: 157px; }

/* ── Services ───────────────────────────────────────────────── */
#services {
  background: var(--bg);
  padding: 80px 64px;
  display: flex; flex-direction: column;
  align-items: center; gap: 64px;
}
.section-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
}
.section-badge-light { background: var(--bg-warm); color: var(--dark); }
.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -.07em; color: var(--dark);
}
.section-title .accent { color: var(--accent); }
.section-desc {
  font-size: 16px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
  max-width: 363px;
}
.services-desc-nowrap {
  max-width: none;
  white-space: nowrap;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; width: 100%;
}
.services-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(42,43,47,.16);
  background: transparent;
  color: var(--dark-70);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: -.04em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.service-card {
  background: var(--bg-warm);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-start;
  min-height: 480px;
  position: relative;
  padding-top: 300px;
}
.service-card-img {
  position: absolute; top: 0; left: 0; right: 0;
  height: 300px; overflow: hidden;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.service-card-body {
  position: relative; z-index: 1;
  padding: 32px;
  display: flex; flex-direction: column; gap: 4px;
}
.service-card-title {
  font-size: 22px; font-weight: 500; line-height: 1.3;
  letter-spacing: -.05em; color: var(--dark);
}
.service-card-desc {
  font-size: 16px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
}

/* ── Testimonials — infinite scroll columns ─────────────────── */
#testimonials {
  background: var(--bg-warm);
  padding: 80px 64px;
  display: flex; flex-direction: column;
  align-items: center; gap: 64px;
  overflow: hidden;
}
.testimonials-mask {
  width: 100%;
  max-height: 720px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}
.testimonials-columns {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.t-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  width: 300px;
}
.t-col-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scrollUp var(--dur, 20s) linear infinite;
  will-change: transform;
}
@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.t-col-inner:hover { animation-play-state: paused; }

.testimonial-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 4px 24px rgba(153,88,42,.08);
  border: 1px solid rgba(153,88,42,.08);
}
.testimonial-text {
  font-size: 15px; font-weight: 400; line-height: 1.6;
  letter-spacing: -.03em; color: var(--dark-70);
}
.testimonial-avatar {
  display: flex; align-items: center; gap: 10px;
}
.testimonial-avatar img {
  width: 40px; height: 40px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.testimonial-name {
  font-size: 14px; font-weight: 600; letter-spacing: -.04em;
  color: var(--dark); line-height: 1.3;
}
.testimonial-role {
  font-size: 12px; font-weight: 400; letter-spacing: -.02em;
  color: var(--dark-70); line-height: 1.3;
}
@media (max-width: 1024px) { .t-col:nth-child(3) { display: none; } }
@media (max-width: 809px)  {
  #testimonials { padding: 60px 24px; }
  .t-col:nth-child(2) { display: none; }
  .t-col { width: calc(100vw - 48px); }
}

/* ── Programs / Modalidades — pricing style ─────────────────── */
#programs {
  background: var(--bg);
  padding: 80px 64px 80px;
  display: flex; flex-direction: column;
  align-items: center; gap: 80px;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  align-items: start;
  padding-top: 24px;
}
.program-card {
  background: var(--bg);
  border-radius: 20px;
  border: 1.5px solid rgba(42,43,47,.12);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.program-card:hover {
  box-shadow: 0 8px 32px rgba(42,43,47,.1);
  transform: translateY(-4px);
}
.program-card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 48px rgba(153,88,42,.16);
  transform: translateY(-20px);
}
.program-card.popular:hover {
  transform: translateY(-24px);
  box-shadow: 0 20px 60px rgba(153,88,42,.22);
}
.program-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  padding: 5px 18px; border-radius: 50px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.program-badge svg { width: 13px; height: 13px; fill: var(--bg); }
.program-title {
  font-size: 22px; font-weight: 600; line-height: 1.3;
  letter-spacing: -.05em; color: var(--dark);
}
.program-desc {
  font-size: 15px; font-weight: 400; line-height: 1.6;
  letter-spacing: -.03em; color: var(--dark-70);
}
.program-features {
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 400; line-height: 1.5;
  color: var(--dark-70);
}
.feature-icon {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
}
.features-label {
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--dark-70); text-transform: uppercase; text-align: left;
}
.program-card .btn {
  margin-top: auto;
}

/* ── Process steps ──────────────────────────────────────────── */
#process {
  background: var(--bg);
  padding: 40px 64px;
  display: flex; flex-direction: column;
  align-items: center; gap: 64px;
}
.process-steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 32px;
  width: 100%; max-width: 1072px;
  position: relative;
}
.process-connector {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 64px;
  pointer-events: none; z-index: 0;
  overflow: visible;
}
.process-step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  text-align: center;
  position: relative; z-index: 1;
}
.step-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bg-warm);
}
.step-icon svg { width: 32px; height: 32px; stroke: var(--accent); }
@media (max-width: 809px) { .process-connector { display: none; } }
.step-title {
  font-size: 22px; font-weight: 500; line-height: 1.3;
  letter-spacing: -.05em; color: var(--dark);
}
.step-desc {
  font-size: 16px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
  max-width: 240px;
}

/* ── FAQ ────────────────────────────────────────────────────── */
#faq {
  background: var(--bg);
  padding: 40px 64px 80px;
  display: flex; flex-direction: column;
  align-items: center; gap: 64px;
}
.faq-list {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 600px;
}
.faq-item {
  background: var(--bg-warm);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer;
  text-align: left;
}
.faq-question-text {
  font-size: 18px; font-weight: 500; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark);
}
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: #2b180a; transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 24px;
}
.faq-answer p {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
}

/* ── CTA / Footer hero ──────────────────────────────────────── */
#cta {
  background: var(--bg-warm);
  padding: 80px 64px 32px;
  display: flex; flex-direction: column;
  align-items: center; gap: 48px;
}
.cta-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  text-align: center;
}
.cta-logo {
  width: 110px; height: 110px;
  padding: 16px;
  background: var(--bg);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(153,88,42,.12);
}
.cta-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -.07em; color: var(--dark);
  max-width: 557px;
}
.cta-title .accent { color: var(--accent); }
.cta-subtitle {
  font-size: 18px; font-weight: 400; line-height: 1.5;
  letter-spacing: -.05em; color: var(--dark-70);
  max-width: 318px;
}

/* ── Footer links ───────────────────────────────────────────── */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; width: 100%; max-width: 1072px;
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col-title {
  font-size: 16px; font-weight: 500; letter-spacing: -.05em;
  color: var(--dark);
}
.footer-col a {
  font-size: 14px; font-weight: 400; letter-spacing: -.05em;
  color: var(--dark); transition: opacity .2s;
}
.footer-col a:hover { opacity: .6; }

/* ── Copyright bar ──────────────────────────────────────────── */
.copyright {
  width: 100%; max-width: 1072px;
  border-top: .5px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.copyright p, .copyright a {
  font-size: 14px; font-weight: 400; letter-spacing: -.05em;
  color: var(--dark-70);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .program-card.popular { transform: translateY(-12px); }
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(153,88,42,.06); opacity: 1; }

@media (max-width: 809px) {
  /* Nav */
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-logo { position: static; transform: none; }

  /* Desc nowrap reset */
  .services-desc-nowrap { white-space: normal; max-width: 100%; }

  /* Hero */
  #hero { padding: 100px 24px 60px; }
  .hero-title { font-size: clamp(44px, 10vw, 70px); }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .stat-label { white-space: normal; }

  /* Problem */
  #problem { padding: 60px 24px; }
  .problem-cards { grid-template-columns: 1fr; }

  /* About */
  #about { flex-direction: column; max-height: none; overflow: visible; }
  .about-image { min-height: 350px; }
  .about-content { padding: 48px 24px; }

  /* Services */
  #services { padding: 60px 24px; }
  .services-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  #testimonials { padding: 60px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Programs */
  #programs { padding: 60px 24px 40px; gap: 48px; }
  .programs-grid { grid-template-columns: 1fr; max-width: 480px; padding-top: 8px; }
  .program-card.popular { transform: none; box-shadow: 0 8px 32px rgba(153,88,42,.14); }
  #programs .section-desc { white-space: normal; }

  /* Process */
  #process { padding: 40px 24px; }
  .process-steps { flex-direction: column; align-items: center; gap: 40px; }

  /* FAQ */
  #faq { padding: 40px 24px 60px; }

  /* CTA */
  #cta { padding: 60px 24px 32px; }

  /* Footer */
  .footer-links { grid-template-columns: 1fr 1fr; gap: 40px; }
  .copyright { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ── Entrance animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Consent Banner ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 200;
  background: var(--dark);
  overflow: hidden;
  box-sizing: border-box;
  transform: translateY(100%) translateZ(0);
  -webkit-transform: translateY(100%) translateZ(0);
  transition: transform 0.4s ease;
  will-change: transform;
}
.cookie-banner.visible {
  transform: translateY(0) translateZ(0);
  -webkit-transform: translateY(0) translateZ(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 240px; }
.cookie-banner__title {
  font-size: 15px; font-weight: 600;
  color: var(--bg); margin-bottom: 4px;
  letter-spacing: -.03em;
}
.cookie-banner__desc {
  font-size: 13px; font-weight: 400; line-height: 1.55;
  color: rgba(254,249,239,.65); letter-spacing: -.02em;
}
.cookie-banner__desc a {
  color: var(--bg); text-decoration: underline; opacity: .8;
}
.cookie-banner__actions {
  display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.cookie-btn-reject {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(254,249,239,.35);
}
.cookie-btn-reject:hover { background: rgba(254,249,239,.08); opacity: 1; }
@media (max-width: 600px) {
  .cookie-banner__inner { padding: 20px 24px; flex-direction: column; align-items: flex-start; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn-reject, .cookie-btn-accept { flex: 1; text-align: center; }
}
