/* ==========================================================
   Aletheya · Centro de Psicología — estilos
   ========================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --alt: #f1eee6;
  --green: #4b5f4a;
  --green-dark: #384737;
  --green-soft: #dde5dd;
  --green-tint: #eef1eb;
  --text: #2a2f2a;
  --muted: #5f655e;
  --border: #e4e0d6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(40, 48, 38, 0.07);
  --max: 1120px;
  --header-h: 76px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #8fa98d; outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-dark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
em.serif { font-family: var(--serif); font-style: italic; font-size: 1.15em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--green-dark); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-tint); }
.main-nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--green-dark); font-size: 1.3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(75, 95, 74, .28); }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: #b9c6b8; }
.btn-outline:hover { background: var(--green-tint); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 600; color: var(--green); margin-bottom: 14px;
}
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .95rem; }
.hero-facts li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.quote {
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.35;
  color: var(--green-dark); border-left: 3px solid var(--green-soft); padding-left: 20px; margin: 28px 0;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li { background: var(--green-tint); color: var(--green-dark); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.4rem; margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(40, 48, 38, .12); color: inherit; }
.service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-card img[src*="trauma-emdr"] { object-position: center 20%; }
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: .3em; }
.service-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.service-card .more { color: var(--green); font-weight: 600; font-size: .95rem; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234b5f4a' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint);
  display: grid; place-items: center;
}
.contact-list .ic svg { width: 20px; height: 20px; fill: var(--green); }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3eae2; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--green-tint); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 48px 0 24px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { background: #2f3b2e; color: #d6ddd5; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.35rem; color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #b5bfb4; }
.footer-bottom a { color: #d6ddd5; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .hero-media { max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(0,0,0,.08); display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; }
  .main-nav .btn { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 52px; }
  .two-cols { grid-template-columns: 1fr; }
  .cta-band, .panel { padding: 32px 22px; }
  .brand img { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Ajustes */
.brand img { mix-blend-mode: multiply; height: 60px; }
h1 .eyebrow { font-family: var(--sans); }
#sobre-mi .split { align-items: start; }
#sobre-mi .split > div:last-child { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 920px) { #sobre-mi .split > div:last-child { position: static; } }
