/* Nalanda Psicología Integral — main stylesheet */
:root {
  --cream: #f8f4ed;
  --tint: #e6f2ed;
  --lilac: #f0e9f2;
  --green: #155049;
  --green-dark: #163d36;
  --green-deeper: #0f2d28;
  --teal: #086762;
  --teal-hover: #06524e;
  --plum: #6b3a6e;
  --ink: #1b3a35;
  --muted: #5a6b67;
  --line: #dfe6e2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 45, 40, .06), 0 6px 20px rgba(15, 45, 40, .06);
  --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0 0 .5em; color: var(--green-dark); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.plain { list-style: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 700 .95rem/1 var(--sans); text-decoration: none; text-align: center;
  padding: 15px 22px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-hover); color: #fff; }
.btn--ghost { background: var(--white); color: var(--teal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-hover); }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--tint); color: var(--green-dark); }
.link-arrow { font-weight: 700; font-size: .95rem; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--plum); letter-spacing: .01em; margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: block; line-height: 0; }
.brand img { height: 68px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; list-style: none; gap: 26px; }
.site-nav li a { color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav li a:hover { color: var(--plum); }
.site-nav li a.is-current { color: var(--plum); border-bottom-color: var(--plum); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .site-header__inner { min-height: 72px; }
  .brand img { height: 56px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 9px 14px; font: 700 .9rem var(--sans); color: var(--green-dark); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; content: ''; position: relative; transition: transform .2s;
  }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
    gap: 16px; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(15, 45, 40, .1);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav li a.is-current { border-bottom-color: var(--line); }
  .site-nav__cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }
.section--cream { background: var(--cream); }
.section__lead { color: var(--muted); max-width: 70ch; margin-bottom: 2rem; }
.section h2 + .grid, .section h2 + .rows { margin-top: 1.6rem; }

/* Hero */
.hero { background: var(--cream); padding: clamp(40px, 6vw, 80px) 0; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--text-only .hero__inner { grid-template-columns: 1fr; }
.hero--text-only .hero__copy { max-width: 760px; }
.hero__extra { margin-top: 1.4rem; }
.hero__extra p { margin: 0 0 .4rem; }
.hero__subtitle { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--plum); margin-bottom: .6em; }
.hero__text { font-size: 1.1rem; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1rem; }
.hero__note { font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 11; object-fit: cover; }
@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* Grids & cards */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card.pad { padding: 26px; }
.card h3 { margin-bottom: .4em; }
.therapy-card { display: flex; flex-direction: column; }
.therapy-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.therapy-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.therapy-card__body p { color: var(--muted); font-size: .95rem; }
.price { margin-top: auto; color: var(--ink); }
.price strong { font-size: 1.6rem; color: var(--teal); font-family: var(--sans); }
.price span { font-size: .8rem; color: var(--muted); margin-left: 4px; }
.therapy-card__body .link-arrow { margin-top: 6px; }

/* Servicios rows & plans */
.rows { display: grid; gap: 16px; }
.row-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.row-card h3 { margin-bottom: .3em; }
.row-card p { margin: 0 0 .5em; color: var(--muted); }
.row-card .price { color: var(--ink); margin: 0; }
.row-card .btn { white-space: nowrap; flex: none; }
@media (max-width: 719px) { .row-card { flex-direction: column; align-items: stretch; } .row-card .btn { width: 100%; } }
.plan__count { font-family: var(--serif); font-size: 1.5rem; margin: 0; color: var(--green-dark); }
.plan__price { font-weight: 700; color: var(--teal); font-size: 1.35rem; }
.area h3 { color: var(--plum); }

/* Feature card (lilac) */
.feature-card { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--lilac); border-radius: var(--radius); overflow: hidden; }
.feature-card__copy { padding: clamp(28px, 5vw, 56px); }
.feature-card__media { position: relative; min-height: 280px; }
.feature-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 799px) { .feature-card { grid-template-columns: 1fr; } .feature-card__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; } }

/* Quote */
.quote-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
blockquote { margin: 0; border-left: 3px solid var(--plum); padding-left: 28px; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--plum); line-height: 1.35; }
@media (max-width: 799px) { .quote-grid { grid-template-columns: 1fr; } }

/* Green split band (empresas) */
.band--green { background: var(--green); color: #e8f2ef; padding: clamp(40px, 6vw, 72px) 0; }
.band--green h2 { color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 799px) { .split { grid-template-columns: 1fr; } }

/* Blog teaser */
.blog-teaser { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; }
.blog-teaser__card { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.blog-teaser__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.blog-teaser__text { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 1.35rem; color: var(--green-dark); line-height: 1.25; }
.blog-teaser__text .link-arrow { font-family: var(--sans); font-size: .95rem; color: var(--teal); }
@media (max-width: 799px) { .blog-teaser { grid-template-columns: 1fr; } .blog-teaser__card { grid-template-columns: 110px 1fr; } .blog-teaser__text { font-size: 1.1rem; } }

/* CTA band */
.cta-band { background: var(--green-dark); color: #dcebe7; padding: clamp(44px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0 0 .5em; }
.cta-band__meta { font-size: .9rem; color: #a9c4bd; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
@media (max-width: 719px) { .cta-band__inner { flex-direction: column; align-items: stretch; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 1.6rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step__num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 799px) { .steps { grid-template-columns: 1fr; } }

/* Contact */
.contact-phone { font-size: 1.2rem; margin-bottom: .4rem; }
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 1.4rem; }
.location__info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.location__info h3 { margin-top: 1.2rem; }
.location__info h3:first-child { margin-top: 0; }
.location__map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--line); }
.location__map .link-arrow { display: inline-block; margin-top: 10px; }
@media (max-width: 799px) { .location { grid-template-columns: 1fr; } .location__map iframe { height: 280px; } }
.form { margin-top: 1.4rem; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid #c9d6d1; border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(8, 103, 98, .25); }
.form small { display: block; margin-top: 6px; color: var(--muted); }
.form__privacy { font-size: .92rem; }
.notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.notice--ok { background: var(--tint); color: var(--green); }
.notice--error { background: #fbeaea; color: #8a2a2a; }

/* Blog */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 2rem; }
.filters__group { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters__label { font-weight: 700; color: var(--muted); font-size: .9rem; margin-right: 4px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); background: #fff; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.featured-post { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--cream); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.featured-post__copy { padding: clamp(24px, 4vw, 48px); }
.featured-post__copy h2 a { color: inherit; text-decoration: none; }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
@media (max-width: 799px) { .featured-post { grid-template-columns: 1fr; } .featured-post__media { order: -1; } }
.post-card { display: flex; flex-direction: column; }
.post-card__media { position: relative; display: block; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 a { color: inherit; text-decoration: none; }
.post-card__body p { color: var(--muted); font-size: .95rem; }
.post-card__body .link-arrow { margin-top: auto; }
.pagination { margin-top: 2rem; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Article */
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article__meta { color: var(--muted); font-size: .92rem; }
.article__media img { border-radius: var(--radius); margin: 1.4rem 0; width: 100%; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.article__more { margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--green-deeper); color: #cfe0db; padding: 36px 0; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 24px; align-items: start; }
.site-footer__brand strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.site-footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__contact { margin: 0; text-align: right; }
@media (max-width: 899px) { .site-footer__inner { grid-template-columns: 1fr; } .site-footer__contact { text-align: left; } }
