/* ============================================================
   Psicología en Línea — design system
   Portado desde el proyecto de Claude Design:
   _ds/psicolog-a-en-l-nea-design-system-v2-.../_ds_bundle.css
   (que a su vez es la hoja de producción copiada verbatim
   desde public_html/index.html).

   Ningún valor, color, medida ni breakpoint fue tocado.
   Los únicos cambios respecto del bundle original:
     1. Se incluyen sólo las secciones que esta pieza usa
        (tokens, reset, grilla, nav, menú, botones, problem,
        cta y footer). Home, doctor, servicios, audiencia y
        el FAB de WhatsApp quedaron afuera por no usarse acá.
     2. Los @import de Google Fonts pasaron a <link> en el
        <head> — que es como estaban en producción.
     3. Se eliminó el @font-face placeholder de "GC Bargain"
        que el bundle había dejado con src: local(...): acá
        tenemos los .ttf reales, cargados desde fonts/fonts.css.
   ============================================================ */

:root {
  --c-ink:    #231F20;
  --c-orange: #FE5400;
  --c-cream:  #EFF0EB;
  --c-bone:   #F9FAF8;

  --display: "Signos Interrogacion", "GC Bargain", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  /* Grilla: 12 col, gutter 24, márgenes 48 */
  --margin-x: 48px;
  --gutter:   24px;
  --max-w:    1440px;
}

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--c-ink);
  background: var(--c-bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--margin-x);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* ───── NAV ───── */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 32px;
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark  { display: block; height: 135px; width: auto; }
.nav-menu-btn {
  background: none; border: 0; padding: 8px;
  cursor: pointer; color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
}
.nav-menu-btn svg { width: 36px; height: 36px; display: block; }

/* ── MENU BACKDROP ── */
.menu-backdrop {
  position: fixed; inset: 0; z-index: 48;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
}

/* ── MENU PANEL GLASS ── */
.menu-panel {
  position: fixed;
  top: 5rem; right: var(--margin-x);
  z-index: 50;
  visibility: hidden;
  width: 90vw; max-width: 440px;
  background: rgba(239, 240, 235, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 6px;
  pointer-events: none;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  overflow: hidden;
  isolation: isolate;
}
.menu-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0) 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  z-index: -1;
}

/* ── MENU LINKS ── */
.menu-link {
  display: block;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--c-orange);
  transition: color .15s;
}
.menu-link:hover { color: rgba(254,84,0,0.55); }

/* ───── CTAs base ───── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  padding: 16px 30px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-orange);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(254,84,0,.28);
}
.btn-white {
  background: #fff;
  color: var(--c-ink);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn .wa-ico { width: 22px; height: 22px; display: block; }

/* ───── EL PROBLEMA ───── */
.problem {
  background: var(--c-cream);
  padding-block: 64px 120px;
}
.problem-title {
  grid-column: 2 / span 10;
  color: var(--c-orange);
  text-align: center;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.08;
}

/* ───── CTA FINAL ───── */
.cta {
  background: linear-gradient(
    to bottom,
    var(--c-cream)  0%,
    var(--c-cream)  8%,
    var(--c-orange) 55%,
    var(--c-orange) 100%
  );
  padding-top: 220px;
  padding-bottom: 100px;
}
.cta-grid { align-items: center; }
.cta-title {
  grid-column: 1 / span 7;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
}
.cta-action {
  grid-column: 9 / -1;
  display: flex;
  justify-content: flex-end;
}
.cta .btn-white { padding: 20px 36px; font-size: 17px; }
.cta .btn-white .wa-ico { width: 26px; height: 26px; }

/* ───── FOOTER ───── */
.footer {
  background: var(--c-orange);
  color: #fff;
  padding-block: 80px 32px;
}
.footer-grid {
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { grid-column: 1 / span 5; }
.footer-logo {
  width: clamp(190px, 22vw, 338px);
  height: auto;
  object-fit: contain;
}
.footer-logo-mobile { display: none; }
.footer-brand .mark {
  font-family: var(--display);
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
}
.footer-brand .tagline {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
}
.footer-nav  { grid-column: 6 / span 4; }
.footer-social { grid-column: 10 / span 3; }

.footer-nav h4, .footer-social h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-nav ul, .footer-social ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px;
}
.footer-nav a, .footer-social a {
  transition: color .2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-nav a:hover, .footer-social a:hover { color: rgba(255,255,255,0.6); }
.footer-social a svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-bottom {
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .dot { opacity: 0.5; }

/* ───────────────────────────── */
/* MOBILE — reorganizar real     */
/* ───────────────────────────── */
@media (max-width: 840px) {
  :root { --margin-x: 24px; }

  .nav { padding-block: clamp(18px, 4.8vw, 28px); }
  .nav-logo { margin-top: 0; margin-left: 0; }
  .nav-logo .logo-light { display: none; }
  .nav-logo .logo-dark  {
    display: block;
    /* Un 20% más grande que el achique anterior (era 89–116px) */
    width: clamp(107px, 28.8vw, 139px);
    height: auto;
    object-fit: contain;
  }
  .nav-menu-btn { color: #eff0eb; }

  .nav-menu-btn svg { width: clamp(34px, 9vw, 42px); height: clamp(34px, 9vw, 42px); }

  .grid { grid-template-columns: 1fr; gap: 24px; }

  .problem { padding-block: 0 80px; }
  .problem-title {
    grid-column: 1 / -1;
    font-size: clamp(28px, 7.5vw, 44px);
    text-align: center;
    line-height: 1.05;
  }

  .cta {
    padding-top: 175px;
    padding-bottom: 56px;
    background: linear-gradient(
      to bottom,
      #eff0eb     0%,
      #eff0eb     8%,
      var(--c-orange) 55%,
      var(--c-orange) 100%
    );
  }
  .cta-title, .cta-action { grid-column: 1 / -1; }
  .cta-title { font-size: clamp(28px, 7.5vw, 44px); text-align: center; }
  .cta-action { justify-content: center; margin-top: 40px; }

  .footer { padding-block: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 36px; }
  .footer-brand { grid-column: 1; }
  .footer-logo { display: none; }
  .footer-logo-mobile {
    display: block;
    width: clamp(160px, 45vw, 220px);
    height: auto;
    object-fit: contain;
  }
  .footer-social { grid-column: 2; }
  .footer-nav { display: none; }
}
