:root {
  --navy: #343959;
  --blue: #4f598e;
  --lavender: #d4b1d2;
  --peach: #f0ddd7;
  --cream: #f8f1f2;
  --paper: #fffbfc;
  --muted: #666d9b;
  --line: rgba(79, 89, 142, .18);
  --title: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--body);
  line-height: 1.62;
  background:
    radial-gradient(circle at 12% 8%, rgba(212,177,210,.25), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(79,89,142,.12), transparent 28%),
    linear-gradient(180deg, var(--paper), var(--cream) 55%, var(--peach));
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Encabezado */
.guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255,251,252,.96);
  backdrop-filter: blur(16px);
}
.guide-nav {
  width: min(1080px, calc(100% - 36px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}
.guide-logo-frame {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(52,57,89,.08);
}
.guide-logo-frame img {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
}
.guide-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.guide-brand-copy strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: .25em;
  white-space: nowrap;
}
.guide-brand-copy em {
  display: block;
  margin-top: 5px;
  color: #77739a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.back-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.back-link:hover { text-decoration: underline; }

/* ===== BEGIN elune-tap-targets — PRUEBA REVERSIBLE (borrar bloque completo para revertir) =====
   Solo agranda el área táctil en móvil. No cambia color, tamaño de letra ni texto. */
@media (max-width: 760px) {
  /* "← Volver a las guías": 30px -> 44px de alto */
  .back-link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* ===== END elune-tap-targets ===== */

/* Contenido */
.guide-main {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 54px) 0;
}
.guide-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,251,252,.95);
  box-shadow: 0 24px 64px rgba(52,57,89,.12);
}
.guide-hero-copy {
  min-width: 0;
  padding: clamp(28px, 3.8vw, 42px);
  background:
    radial-gradient(circle at 15% 10%, rgba(212,177,210,.18), transparent 32%),
    rgba(255,251,252,.94);
}
.guide-hero-media {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #ebe7ec;
}
.guide-hero-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}
.page-psicoterapia .guide-hero-media img { object-position: center 45% !important; }
.page-fonoaudiologia .guide-hero-media img { object-position: center 42% !important; }
.page-terapia-ocupacional .guide-hero-media img { object-position: center 46% !important; }
.guide-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(52,57,89,.18));
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2 { font-family: var(--title); line-height: 1.05; }
h1 {
  margin: 0 0 15px;
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 17px);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.guide-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(52,57,89,.08);
}
.guide-card h2 {
  margin: 0 0 11px;
  font-size: clamp(25px, 3vw, 31px);
}
.guide-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.62; }
.guide-card p:last-child { margin-bottom: 0; }
.guide-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.58; }
.guide-card li + li { margin-top: 9px; }
.notice {
  margin-top: 22px;
  padding: 18px 21px;
  border-left: 5px solid var(--lavender);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lavender));
  box-shadow: 0 13px 28px rgba(52,57,89,.18);
}
.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.84);
}
.guide-footer {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .guide-hero {
    grid-template-columns: 1fr !important;
  }
  .guide-hero-media {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    order: -1;
  }
}
@media (max-width: 720px) {
  .guide-nav { min-height: 72px; }
  .guide-logo-frame {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .guide-logo-frame img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
  }
  .guide-brand-copy strong { font-size: 17px; letter-spacing: .17em; }
  .guide-brand-copy em { margin-top: 3px; font-size: 13px; }
  .back-link { font-size: 12px; }
  .guide-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}
@media (max-width: 520px) {
  .guide-nav { width: min(100% - 22px, 1180px); gap: 10px; }
  .guide-brand { gap: 9px; }
  .guide-brand-copy strong { font-size: 15px; letter-spacing: .14em; }
  .guide-brand-copy em { font-size: 12px; }
  .back-link { max-width: 90px; text-align: right; line-height: 1.25; }
  .guide-main { width: min(100% - 22px, 1040px); padding-top: 22px; }
  .guide-hero { border-radius: 24px; }
  .guide-hero-copy { padding: 24px 20px 27px; }
  .guide-hero-media {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
  }
  h1 { font-size: clamp(33px, 10vw, 43px); }
}

/* Contenido editorial ampliado */
.guide-card--wide {
  grid-column: 1 / -1;
}
.guide-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.guide-card li strong {
  color: var(--navy);
}
.guide-small {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.notice strong {
  color: var(--navy);
}
@media (max-width: 720px) {
  .guide-card--wide { grid-column: auto; }
}


/* ===== BEGIN equipo por especialidad ===== */
.guide-team { width: min(1040px, calc(100% - 36px)); margin: 8px auto 0; }
.guide-team > h2 {
  margin: 0 0 6px;
  font-family: var(--title);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  color: var(--navy);
}
.guide-team-intro { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.guide-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}
.guide-team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(52,57,89,.08);
}
.guide-team-card img {
  width: 100%;
  height: 262px;
  object-fit: cover;
  object-position: center top;
  background: var(--cream);
}
.guide-team-body { padding: 20px 22px 22px; }
.guide-team-role {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
.guide-team-body h3 {
  margin: 0 0 10px;
  font-family: var(--title);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}
.guide-team-body p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.guide-team-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.guide-team-cta:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .guide-team-card img { height: 232px; }
}
/* ===== END equipo por especialidad ===== */
