/* Corbella Balance — estilos */

:root {
  --bg: #ffffff;
  --paper: #fbfaf7;
  --cream: #f2ede2;
  --ink: #16140f;
  --ink-soft: #56514a;
  --ink-faint: #8a8479;
  --line: rgba(22, 20, 15, 0.1);
  --line-invert: rgba(255, 255, 255, 0.14);

  --charcoal: #1b1913;
  --charcoal-soft: #262319;

  --gold-50: #faf5e8;
  --gold-light: #e3c581;
  --gold: #b8923f;
  --gold-dark: #8f6f2a;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --maxw: 1180px;
  --heading: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 4px 20px rgba(22, 20, 15, 0.06);
  --shadow-md: 0 18px 44px rgba(22, 20, 15, 0.14);
  --shadow-gold: 0 12px 28px rgba(184, 146, 63, 0.32);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--gold-light);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}

.badge.on-dark { color: var(--gold-light); border-color: rgba(227, 197, 129, 0.4); }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

h1 { font-size: clamp(38px, 5.4vw, 64px); }
h1 .accent { color: var(--gold-dark); font-style: italic; font-weight: 500; }

h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; }

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 14.5px;
  font-family: var(--sans);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-solid {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-gold);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(184, 146, 63, 0.42); }

.btn-outline { background: transparent; color: var(--ink); border-color: rgba(22, 20, 15, 0.22); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-outline.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline.on-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 700; font-size: 18px; }

.logo-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--heading);
  border-radius: var(--radius-xs);
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--gold-dark); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 20px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Sections */
section { position: relative; }
.section-pad { padding: 100px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .badge { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 17.5px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Hero */
.hero {
  padding: 56px 0 0;
  background: radial-gradient(ellipse at 15% 0%, var(--gold-50) 0%, transparent 55%), var(--paper);
  overflow: hidden;
}

.hero-inner { padding-bottom: 88px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.hero .badge { margin-bottom: 24px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 36px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--heading); font-size: 24px; font-weight: 700; color: var(--ink); }
.stat span { font-size: 13px; color: var(--ink-faint); }

.hero-photo-wrap { position: relative; }

.hero-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-photo img { filter: grayscale(0.15); }

.hero-wave { display: block; width: 100%; height: auto; margin-top: -2px; }

/* Método / pilares */
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pilar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pilar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.pilar-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
}

.pilar h3 { margin-bottom: 10px; }
.pilar p { color: var(--ink-soft); font-size: 15px; }

/* Testimonios (arriba, destacados) */
.testimonios-section { background: var(--charcoal); color: #fff; }
.testimonios-section .section-head p { color: rgba(255, 255, 255, 0.6); }
.testimonios-section .section-head h2 { color: #fff; }

.stars { color: var(--gold-light); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }

.testi-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
}

.testi-fotos { display: flex; gap: 8px; margin-bottom: 20px; }
.foto-frame { position: relative; flex: 1; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3 / 4; }
.foto-frame img { width: 100%; height: 100%; object-fit: cover; }
.foto-frame-wide { aspect-ratio: 3 / 4; object-position: top; }
.testi-card-single .foto-frame img { object-position: top; }

.foto-label {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.75); color: #fff; padding: 3px 9px; border-radius: var(--radius-xs);
}

.testi-card blockquote { font-size: 15px; line-height: 1.55; margin-bottom: 16px; color: rgba(255, 255, 255, 0.88); }
.testi-card cite { font-style: normal; font-size: 13px; font-weight: 600; color: var(--gold-light); }

/* Sobre mí */
.dark-section { background: var(--ink); color: #fff; }
.sobre-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.sobre-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.sobre-photo img { filter: grayscale(0.15); }
.dark-section h2 { color: #fff; margin: 16px 0 22px; max-width: 18ch; }
.dark-section p { color: rgba(255, 255, 255, 0.68); margin-bottom: 18px; max-width: 56ch; }

.credentials {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  margin: 26px 0 28px;
}
.credentials span {
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.credentials span:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--gold); }

.link-arrow { font-size: 14.5px; font-weight: 600; color: var(--gold-light); display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(227, 197, 129, 0.4); padding-bottom: 2px; }

/* Asesorías */
.asesorias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.asesoria {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.asesoria:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.asesoria .tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }

.seguimiento-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.seguimiento-tag.con { background: var(--gold-light); color: var(--ink); }
.seguimiento-tag.sin { background: transparent; border: 1px solid var(--line); color: var(--ink-faint); }
.asesoria h3 { margin-bottom: 12px; }

.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.price-row .price-num { font-family: var(--heading); font-weight: 700; font-size: 26px; }
.price-row .price-per { font-size: 13px; color: var(--ink-faint); }

.asesoria .desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }

.asesoria .features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.asesoria .features li { font-size: 13.5px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.asesoria .features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

.asesoria-footer { padding-top: 20px; border-top: 1px solid var(--line); }
.asesoria-footer .btn { width: 100%; padding: 11px 20px; font-size: 13.5px; }

/* App */
.app-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.app-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 28px 0 34px; }
.app-features li { font-size: 15px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.app-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }

.app-note { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }

.app-icon-wrap { display: flex; justify-content: center; }
.app-icon-wrap img { width: 200px; height: 200px; border-radius: 44px; box-shadow: var(--shadow-md); }

/* Programas */
.programas-section { background: var(--cream); }
.programas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.programa {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.programa:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.programa.featured {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}

.programa .numeral { font-family: var(--heading); font-size: 40px; font-weight: 700; margin-bottom: 24px; color: var(--gold-dark); }
.programa.featured .numeral { color: var(--gold-light); }

.programa .tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.programa.featured .tag { color: rgba(255, 255, 255, 0.5); }

.programa h3 { margin-bottom: 12px; }
.programa p.desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; flex: 1; }
.programa.featured p.desc { color: rgba(255, 255, 255, 0.72); }

.programa-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.programa.featured .programa-footer { border-top-color: rgba(255, 255, 255, 0.16); }
.programa .price { font-weight: 700; font-size: 16px; font-family: var(--heading); }

.programa .btn { padding: 9px 18px; font-size: 13px; }

/* CTA final */
.cta-final {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { color: #fff; margin-bottom: 18px; }
.cta-final p { color: rgba(255, 255, 255, 0.72); max-width: 46ch; margin: 0 auto 38px; font-size: 17.5px; }

/* Footer */
footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.55); padding: 56px 0 32px; }

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-invert); margin-bottom: 24px;
}
.footer-brand { font-family: var(--heading); font-weight: 700; font-size: 20px; color: #fff; }
.footer-socials { display: flex; gap: 26px; }
.footer-socials a { font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.7); transition: color 0.15s ease; }
.footer-socials a:hover { color: var(--gold-light); }
.footer-bottom { font-size: 12.5px; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.35); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 24px;
}
.cookie-banner p { font-size: 13.5px; margin: 0; max-width: 560px; }
.cookie-banner .btn { padding: 10px 22px; font-size: 13.5px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-wrap { order: -1; max-width: 420px; margin: 0 auto; }
  .pilares { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 32px; }
  .programas { grid-template-columns: 1fr; }
  .asesorias-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-icon-wrap { order: -1; }
  .testi-scroll { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .section-pad { padding: 68px 0; }
  .hero-inner { padding-bottom: 56px; }
  .cta-final { padding: 76px 0; }
  .stat-row { gap: 24px; }

  header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 80px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
  }
  header.open .nav-links a { padding: 10px 0; width: 100%; }
  .footer-top { flex-direction: column; }
}
