/* Concept B — Antes de su estudio: guía del Dr. Montero. All visual design for this concept lives here. */

/* ---------- Base rhythm ---------- */
body {
  font-size: 18px;
  line-height: 1.6;
  padding-bottom: 104px; /* room for the fixed dock */
}
.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--s6));
  margin-inline: auto;
  padding-inline: var(--s6);
}
h1, h2, h3 { color: var(--ink); font-weight: 600; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link:focus { z-index: 200; }

/* Placeholders on this ground: slightly stronger, always legible */
.ph { opacity: 1; color: var(--muted); border-color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 0.86em; line-height: 1.35; padding: 0.1em 0.5em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  font: 500 17px/1.25 var(--font-display);
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn svg { flex: none; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary .ph { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.75); font-family: var(--font-body); font-weight: 500; font-size: 14px; }
.btn-quiet { color: var(--primary-dark); background: transparent; border: 1.5px solid var(--line); background: var(--card); }
.btn-quiet:hover { border-color: var(--primary); }
.btn-outline { color: var(--primary-dark); background: var(--card); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--tint); }
.btn-outline .ph { font-family: var(--font-body); font-weight: 500; font-size: 14px; }
.btn-block { width: 100%; }
.text-link { color: var(--primary-dark); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; }

/* ---------- Header ---------- */
.site-header { padding: var(--s5) 0 var(--s2); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.brand img { height: 56px; width: auto; }
.header-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 15px; color: var(--muted);
}
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---------- Dock (fixed at every size) ---------- */
.dock {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 6px;
  padding: 6px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(19, 38, 63, 0.16);
}
.dock-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 6px 12px;
  border-radius: 11px;
  font: 500 15px/1.2 var(--font-display);
  color: var(--ink);
  text-decoration: none;
}
.dock-tab:hover { background: var(--tint); }
.dock-tab svg { color: var(--primary); flex: none; }
.dock-tab--wa { background: var(--primary); color: #FFFFFF; }
.dock-tab--wa svg { color: #FFFFFF; }
.dock-tab--wa:hover { background: var(--primary-dark); }
.dock-wa-text small { font: 400 13px/1.2 var(--font-body); }

/* ---------- Hero ---------- */
.hero { padding: var(--s5) 0 var(--s8); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s8);
  align-items: center;
}
.greeting { display: flex; align-items: center; gap: var(--s5); margin-bottom: var(--s6); }
.greeting-text { display: grid; gap: 2px; }
.greeting-hello { font-size: 15px; color: var(--muted); }
.greeting-name { font: 600 21px/1.25 var(--font-display); color: var(--ink); }
.greeting-role {
  justify-self: start;
  margin-top: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary-dark);
  font: 500 14px/1.4 var(--font-display);
}

/* Circular portrait with a 3px brand-blue ring */
.portrait-sm, .portrait-lg {
  flex: none;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 3px solid var(--primary);
  outline-offset: 5px;
}
.portrait-sm { width: 120px; margin: 8px; }
.portrait-sm::before { width: 40px; margin: 20px auto auto; }
.portrait-sm > span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 86px;
  margin: 0;
  padding: 3px 4px;
  border-radius: 8px;
  text-align: center;
  font: 600 12px/1.15 var(--font-body);
}

.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -0.01em; max-width: 17ch; }
.hero-lead { margin: var(--s5) 0 var(--s6); font-size: 19px; color: var(--muted); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Question-card pile on a clipboard */
.hero-stack { position: relative; padding: 64px 36px 40px 28px; }
.clipboard {
  position: absolute; inset: 0;
  background: var(--tint);
  border-radius: 20px;
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 22%, transparent) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
}
.clip {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 32px;
  border-radius: 10px;
  background: var(--ink);
}
.clip::after {
  content: ""; position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 40px; height: 12px; border-radius: 6px; background: var(--tint);
}
.stack-label {
  position: relative;
  margin: 0 0 var(--s4) 4px;
  font: 600 13px/1.2 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.qcards { position: relative; list-style: none; margin: 0; padding: 0; }
.qcard { position: relative; }
.qcard a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  grid-template-areas: "num q go" ". hint hint";
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
  min-height: 136px;
  padding: 20px 20px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 -1px 0 rgba(19, 38, 63, 0.06);
  text-decoration: none;
  color: var(--ink);
  align-content: start;
}
.qcard a:hover .qcard-q { color: var(--primary-dark); }
/* Pile: the two back cards show only their question row; each card sits 16px
   lower and 16px further right than the one behind it, so the front card
   (with its hint) is the one you read first. */
.qcard--1 a, .qcard--2 a { min-height: 0; grid-template-areas: "num q go"; padding-bottom: 20px; }
.qcard--1 .qcard-hint, .qcard--2 .qcard-hint { display: none; }
.qcard--1 { margin-right: 32px; }
.qcard--2 { margin: -16px 16px 0 16px; }
.qcard--3 { margin: -16px 0 0 32px; }
.qcard--1 a { background: #FAFCFE; }
.qcard--2 a { box-shadow: 0 0 0 1px var(--line), 0 -6px 14px rgba(19, 38, 63, 0.06); }
.qcard--3 a { box-shadow: 0 0 0 1px var(--line), 0 -6px 14px rgba(19, 38, 63, 0.07), 0 12px 24px rgba(19, 38, 63, 0.08); }
.qcard-num {
  grid-area: num;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #FFFFFF;
  font: 700 16px/1 var(--font-display);
}
.qcard-q { grid-area: q; font: 600 21px/1.2 var(--font-display); }
.qcard-go {
  grid-area: go;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font: 500 14px/1 var(--font-display); color: var(--primary-dark);
}
.qcard-hint { grid-area: hint; font-size: 16px; line-height: 1.5; color: var(--muted); }
.qcard-hint .ph { margin-top: 8px; }

/* ---------- Section scaffolding ---------- */
.block { padding: var(--s8) 0 0; scroll-margin-top: 16px; }
.block--tight { padding-top: var(--s5); }
.block-head { margin-bottom: var(--s6); max-width: 720px; }
.chapter {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: var(--s3);
  font: 500 14px/1.2 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.chapter span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 26px; padding: 0 8px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1.5px var(--sky);
  font-weight: 700; letter-spacing: 0;
}
.block h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; }
.block-intro { margin-top: var(--s3); color: var(--muted); max-width: 62ch; }
.block-note { margin-top: var(--s4); font-size: 16px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--sky); }

/* ---------- Process: checklist ---------- */
.checklist {
  list-style: none; margin: 0; padding: 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: center;
  padding: 18px var(--s6) 18px var(--s5);
  scroll-margin-top: 16px;
}
.step + .step { border-top: 1px solid var(--line); }
.step-q { display: flex; align-items: center; gap: var(--s3); }
.step-q h3 { font-size: 21px; line-height: 1.25; }
.step-a { display: grid; gap: 6px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.step-a .text-link { min-height: 32px; }
.step-ph .ph + .ph { margin-left: 6px; }

.tick { display: grid; place-items: center; width: 48px; height: 48px; flex: none; cursor: pointer; border-radius: 50%; }
.tick-num {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font: 700 15px/1 var(--font-display);
  background: var(--card) no-repeat center / 18px 18px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.tick:hover .tick-num { background-color: var(--tint); }
.tick input:focus-visible + .tick-num { outline: 3px solid var(--primary); outline-offset: 3px; }
.tick input:checked + .tick-num {
  background-color: var(--accent);
  border-color: var(--accent);
  color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.2 4.2L19 7'/></svg>");
}
.legend { display: flex; align-items: center; gap: 10px; margin-top: var(--s4); font-size: 15px; color: var(--muted); }
.legend-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #FFFFFF; }
.legend-check svg { stroke-width: 3; }

/* ---------- FAQ: closed accordion ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.faq-head { margin-bottom: 0; }
.aside-card {
  margin-top: var(--s5);
  padding: var(--s5);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.aside-card p { font-size: 16px; color: var(--muted); }
.aside-card .aside-title { font: 600 18px/1.3 var(--font-display); color: var(--ink); margin-bottom: 4px; }
.faq-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  min-height: 64px;
  padding: 12px var(--s5);
  cursor: pointer;
  list-style: none;
  font: 500 18px/1.35 var(--font-display);
  border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tint) no-repeat center / 14px 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245A8A' stroke-width='3' stroke-linecap='round'><path d='M12 4v16M4 12h16'/></svg>");
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--primary-dark); }
.faq-a { padding: 0 var(--s5) var(--s5); color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---------- Services: study cards ---------- */
.services-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.services-head { margin-bottom: 0; }
.study-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.study { padding: var(--s5); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.study h3 { font-size: 19px; margin-bottom: var(--s3); }
.study h3 .ph { font-size: 17px; font-family: var(--font-display); font-weight: 500; }
.study dl { margin: 0; }
.study dl div { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-top: 1px dashed var(--line); }
.study dt { font-size: 15px; color: var(--muted); }
.study dd { margin: 0; font-size: 15px; }

/* ---------- Location ---------- */
.facility {
  aspect-ratio: 21 / 9;
  min-height: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #E6EEF6 0%, #D3E2F0 100%);
}
.facility > span { margin-bottom: 20px; padding: 8px 16px; font-size: 15px; background: var(--card); }
.place-cards { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.place { display: grid; align-content: start; gap: 8px; padding: var(--s5); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.place svg { color: var(--primary); }
.place h3 { font-size: 19px; }
.place .text-link { min-height: 32px; }

/* ---------- About ---------- */
.about-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s7);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portrait-lg { width: 300px; justify-self: center; margin: 10px; }
.portrait-lg > span { margin-bottom: 44px; max-width: 72%; text-align: center; border-radius: 10px; font-size: 13px; }
.about-copy h2 { font-size: 36px; }
.about-role { margin-top: 8px; font: 500 18px/1.3 var(--font-display); color: var(--primary-dark); }
.about-text { margin-top: var(--s4); color: var(--muted); max-width: 56ch; }
.about-bio { margin-top: var(--s5); min-height: 96px; border-radius: var(--radius); font-size: 16px; background: var(--ground); }

/* ---------- Credentials ---------- */
.cred-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: center;
  padding: var(--s6) var(--s7);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cred-head h2 { font-size: 28px; }
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { display: flex; align-items: center; gap: var(--s3); padding: 12px 0; }
.cred-list li + li { border-top: 1px solid var(--line); }
.cred-box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px dashed color-mix(in srgb, var(--muted) 60%, transparent); }
.cred-list .ph { font-size: 16px; }

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s7);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--primary); }
.contact-actions { display: grid; gap: var(--s3); }
.contact-extra { text-align: center; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s8); padding: var(--s6) 0; background: var(--ink); color: #F2F6FA; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.footer-logo { height: 52px; width: auto; }
.footer-meta { display: grid; gap: 6px; font-size: 15px; }
.site-footer .ph { color: #F2F6FA; border-color: rgba(242, 246, 250, 0.6); }
.footer-top { display: inline-flex; align-items: center; min-height: 44px; color: #F2F6FA; font: 500 15px/1.2 var(--font-display); text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--sky); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero-stack { max-width: 560px; }
  .faq-grid, .services-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about-card { grid-template-columns: 1fr; justify-items: start; }
  .cred-card, .contact-card { grid-template-columns: 1fr; gap: var(--s5); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .wrap { padding-inline: 20px; }

  .site-header { padding: var(--s4) 0 0; }
  .brand img { height: 44px; }
  .header-tag { display: none; }

  .dock {
    left: 0; right: 0; bottom: 0;
    transform: none;
    width: 100%;
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    grid-template-columns: 1fr 1fr 1fr;
    box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(19, 38, 63, 0.10);
  }
  .dock-tab { flex-direction: column; gap: 2px; min-height: 62px; padding: 6px 4px; font-size: 13px; text-align: center; }
  .dock-wa-text small { display: block; font-size: 12px; }

  .hero { padding: var(--s4) 0 var(--s7); }
  .greeting { gap: var(--s4); margin-bottom: var(--s5); }
  .greeting-name { font-size: 18px; }
  .greeting-hello { font-size: 14px; }
  .greeting-role { font-size: 13px; }
  .hero h1 { font-size: 30px; line-height: 1.15; }
  .hero-lead { font-size: 17px; margin: var(--s4) 0 var(--s5); }
  .hero-actions .btn { width: 100%; }
  .btn { font-size: 16px; }

  .hero-stack { padding: 52px 16px 24px 12px; }
  .qcard a { grid-template-columns: 32px 1fr auto; column-gap: 10px; padding: 16px 14px 18px; min-height: 124px; }
  .qcard--1 a, .qcard--2 a { min-height: 0; padding-bottom: 16px; }
  .qcard--1 { margin-right: 24px; }
  .qcard--2 { margin: -12px 12px 0 12px; }
  .qcard--3 { margin: -12px 0 0 24px; }
  .qcard-q { font-size: 19px; }
  .qcard-go { font-size: 13px; }
  .qcard-hint { font-size: 15px; }

  .block { padding-top: var(--s7); }
  .block--tight { padding-top: var(--s4); }
  .block-head { margin-bottom: var(--s5); }
  .block h2 { font-size: 27px; }
  .block-intro { font-size: 16px; }

  .step { grid-template-columns: 1fr; gap: 4px; padding: 16px 16px 18px 8px; }
  .step-q h3 { font-size: 18px; }
  .step-a { padding-left: 60px; font-size: 16px; }

  .faq-list summary { font-size: 17px; padding: 10px 16px; }
  .faq-a { padding: 0 16px 18px; font-size: 16px; }

  .study-cards { grid-template-columns: 1fr; }

  .facility { aspect-ratio: 16 / 10; }
  .facility > span { font-size: 13px; margin: 0 12px 14px; text-align: center; border-radius: 10px; }
  .place-cards { grid-template-columns: 1fr; gap: var(--s3); }
  .place { padding: 18px 20px; }

  .about-card { padding: var(--s6) 20px; justify-items: center; gap: var(--s5); }
  .portrait-lg { width: 236px; }
  .portrait-lg > span { margin-bottom: 30px; max-width: 76%; font-size: 12px; }
  .about-copy h2 { font-size: 26px; }
  .cred-card, .contact-card { padding: var(--s6) 20px; }
  .cred-head h2 { font-size: 24px; }
  .cred-list .ph { font-size: 15px; }

  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Build additions (v004-B): real photos, drafted-content badge, study
   chips, simplified privacy notice, privacy page and 404. Same tokens and
   design language as the concept; nothing above is redesigned.
   ===================================================================== */

/* Real portrait in the circular slot (replaces the .ph-image frame) */
img.portrait-sm, img.portrait-lg {
  display: block;
  object-fit: cover;
  background: #FFFFFF;
  border: 0;
}
img.portrait-sm { width: 120px; height: 120px; }

/* Drafted content: visible "Propuesta · por confirmar" badge (policies §1) */
.draft {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .2em .65em;
  border-radius: 999px;
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: .02em;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  vertical-align: middle;
}
.draft::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
[data-draft="true"] { position: relative; }

/* Step 1: the six confirmed studies as chips */
.chips { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary-dark);
  font: 500 14px/1.35 var(--font-display);
}
.step-a strong { color: var(--ink); font-weight: 600; }

/* Simplified privacy notice next to contact CTAs (LFPDPPP art. 16-II) */
.privacy-short {
  margin-top: var(--s4);
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.privacy-short .ph { font-size: 12px; padding: 0 .4em; }
.privacy-short a { color: var(--primary-dark); font-weight: 600; text-underline-offset: 2px; }
.contact-actions .privacy-short { max-width: none; text-align: left; }

/* Services: two landscape room photos under the intro */
.room-photos { display: grid; gap: var(--s4); margin-top: var(--s6); }
.room { margin: 0; }
.room img { width: 100%; aspect-ratio: 960 / 596; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.room figcaption { margin-top: 8px; font: 500 14px/1.3 var(--font-display); color: var(--muted); }
.studies-note { margin-bottom: var(--s3); }
.study p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.study h3 { margin-bottom: 8px; }

/* Location: reception photo (portrait) beside the place cards */
.place-grid { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: var(--s5); align-items: start; }
.facility {
  margin: 0;
  aspect-ratio: auto;
  border-radius: var(--radius);
  background: none;
}
.facility img { width: 100%; height: auto; aspect-ratio: 574 / 1020; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.facility figcaption { margin-top: 8px; font: 500 14px/1.3 var(--font-display); color: var(--muted); }
.place-grid .place-cards { margin-top: 0; grid-template-columns: 1fr; align-content: start; }
.place p + p { margin-top: -4px; }

/* About: consulta photo (portrait) in the image column */
.about-photo { margin: 0; width: 100%; max-width: 340px; justify-self: center; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { margin-top: 8px; font: 500 14px/1.3 var(--font-display); color: var(--muted); text-align: center; }

/* Footer: extra rows */
.footer-meta p { max-width: 60ch; }
.footer-meta a { color: #F2F6FA; font-weight: 500; text-underline-offset: 3px; }
.footer-meta .ph + .ph { margin-left: 6px; }

/* Privacy notice page */
.privacy-page { padding: var(--s6) 0 var(--s8); }
.privacy-page .privacy-notice {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s7);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.6;
}
.privacy-page .privacy-notice h1 { font-size: 32px; margin-bottom: var(--s4); }
.privacy-page .privacy-notice h2 { font-size: 21px; margin: var(--s6) 0 var(--s3); }
.privacy-page .privacy-notice p, .privacy-page .privacy-notice li { font-size: 17px; }
.privacy-page .privacy-notice p + p { margin-top: var(--s3); }
.privacy-page .privacy-notice ul { margin: var(--s3) 0 0; padding-left: 1.3em; }
.privacy-page .privacy-notice li + li { margin-top: 6px; }
.privacy-page .privacy-notice a { color: var(--primary-dark); font-weight: 600; }
.privacy-page .privacy-updated { color: var(--muted); font-size: 15px; margin-bottom: var(--s4); }
.privacy-back { max-width: 760px; margin: 0 auto var(--s4); }

/* 404 page */
.notfound { padding: var(--s8) 0; min-height: 62vh; }
.notfound-card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s7);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.notfound-code { font: 700 15px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: var(--s3); }
.notfound h1 { font-size: 36px; }
.notfound p { margin-top: var(--s4); color: var(--muted); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

@media (max-width: 1024px) {
  .place-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .room-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .place-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .facility img { aspect-ratio: 4 / 5; }
  .room-photos { grid-template-columns: 1fr; margin-top: var(--s5); }
  .about-photo { max-width: 100%; }
  .about-photo img { aspect-ratio: 4 / 5; }
  .chips li { font-size: 13px; }
  .privacy-page .privacy-notice { padding: var(--s5) 20px; }
  .privacy-page .privacy-notice h1 { font-size: 26px; }
  .privacy-page .privacy-notice p, .privacy-page .privacy-notice li { font-size: 16px; }
  .notfound-card { padding: var(--s6) 20px; }
  .notfound h1 { font-size: 28px; }
  .notfound-actions .btn { width: 100%; }
}
