/* Concept A — Panorámica serena: Dra. Juliana Montero. All visual design for this concept lives here. */

/* ---------- Foundations ---------- */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-size: 17px;
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.section {
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--rule);
}
p { max-width: 64ch; }
h1, h2, h3 { font-weight: 400; color: var(--ink); }
h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.005em; }
h2 { font-size: 40px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.2; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.5; }

a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}
.text-link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 6px;
  font: 500 16px/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 85%, var(--ink)); }
.btn--outline { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Placeholders: keep them legible, quiet and consistent with the type scale */
.ph { font-size: 15px; line-height: 1.4; border-color: color-mix(in srgb, var(--ink) 45%, transparent); opacity: 1; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.draft { margin-right: 8px; font-size: 12px; }
.draft-block { margin-top: 20px; }
.draft-block > .draft { margin-bottom: 10px; }
.draft-block p + p { margin-top: 12px; }

/* ---------- Photo placeholders: read as an out-of-focus photograph ---------- */
.ph-image {
  border-radius: 0;
  border: 0;
  min-height: 0;
  isolation: isolate;
  background:
    linear-gradient(160deg, #F3F7F8 0%, #DCEBEF 38%, #B9DEE6 70%, #8FCDD8 100%);
  box-shadow: inset 0 0 140px rgba(30, 34, 53, 0.22);
}
/* diffuse light patches, blurred like a lens out of focus */
.ph-image::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(28% 34% at 70% 22%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(46% 40% at 78% 82%, rgba(44, 140, 156, 0.42) 0%, rgba(44, 140, 156, 0) 100%),
    radial-gradient(30% 30% at 40% 78%, rgba(127, 207, 220, 0.55) 0%, rgba(127, 207, 220, 0) 100%),
    radial-gradient(22% 26% at 55% 50%, rgba(30, 34, 53, 0.14) 0%, rgba(30, 34, 53, 0) 100%);
  filter: blur(34px);
}
.ph-image::before { z-index: 1; width: min(28%, 3.25rem); opacity: 0.16; }
.ph-image > span {
  z-index: 1;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font: 500 12px/1.2 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--ground);
  border-bottom: 1px solid var(--accent);
  z-index: 50;
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: auto; height: 38px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: underline; }
.site-nav a.btn--primary { margin-left: 8px; color: #fff; }
.menu-toggle { display: none; }

/* ---------- Hero: content first, bounded photo frame beside it ---------- */
.hero { border-bottom: 1px solid var(--rule); padding: 56px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: center;
}
.hero__content { max-width: 600px; }
.hero__content h1 { margin-bottom: 20px; }
.hero__content .lead { margin-bottom: 28px; max-width: 30em; }
.hero__services { margin-bottom: 32px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hero__services-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__services-label .draft { margin: 0; letter-spacing: 0.02em; text-transform: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.chips a:hover { border-color: var(--primary); color: var(--primary); }
/* Real photos: bounded frames, never backgrounds, never text on top */
.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--porcelain);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font: 500 12px/1.2 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--ink);
}
/* Hero: the portrait is square (512×512); a 1:1 frame shows it whole, ≈21% of the first screen at 1440×900 */
.hero__photo {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Simplified privacy notice under every contact CTA (LFPDPPP art. 16-II) */
.privacy-short {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.privacy-short a { color: var(--primary); }
address { font-style: normal; }
.text-link--inline { margin-top: 0; }

/* ---------- About ---------- */
.grid-about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.about__photo { width: 100%; max-width: 480px; aspect-ratio: 4 / 5; }
.about__practice { font-size: 17px; font-weight: 500; margin-top: 10px; }

/* ---------- Credentials ---------- */
.grid-cred {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.cred__intro .muted { margin-top: 14px; }
.cred__list { margin: 0; border-top: 1px solid var(--rule); }
.cred__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.cred__row dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.cred__row dd { margin: 0; }

/* ---------- Services ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head__note { margin-top: 16px; color: var(--muted); font-size: 16px; }
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.service__num { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--primary); padding-top: 3px; }
.service h3 { margin-bottom: 8px; }
.service p { font-size: 16px; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.services__foot {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px 80px;
  align-items: center;
  margin-top: 48px;
}
.services__photo { width: 100%; aspect-ratio: 16 / 10; }
.services__referral { font-size: 16px; }
.services__referral > .draft { margin-bottom: 10px; }
.services__referral strong { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 720px; margin-inline: auto; }
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1v12M1 7h12' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1v12M1 7h12' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 40px 24px 0; color: color-mix(in srgb, var(--ink) 85%, transparent); }

/* ---------- Location ---------- */
.grid-location {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.info-list { margin: 32px 0 0; border-top: 1px solid var(--rule); }
.info-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.info-list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info-list dd { margin: 0; }
.location__photo { width: 100%; aspect-ratio: 16 / 10; }

/* ---------- Contact ---------- */
.grid-contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.contact__intro p:not(.eyebrow) { margin-top: 16px; }
.contact__intro .actions { margin-top: 28px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact__list a { color: var(--ink); font-weight: 500; }
.contact__list a:hover { color: var(--primary); }
.contact__list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.contact__list .ph { justify-self: start; }
.contact__label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--porcelain); padding: 56px 0 64px; }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 24px 64px; align-items: start; }
.footer__brand img { height: 36px; width: auto; margin-bottom: 12px; }
.footer__brand .muted { font-size: 15px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.footer__nav a:hover { color: var(--primary); text-decoration: underline; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-top: 8px; }
.footer__legal .ph { font-size: 14px; }

/* ---------- Secondary pages: aviso de privacidad, 404 ---------- */
.site-nav--static { display: flex; }
.privacy-notice { max-width: 720px; }
.privacy-notice h1 { font-size: 48px; line-height: 1.05; margin-bottom: 20px; }
.privacy-notice h2 { font-size: 28px; margin: 48px 0 14px; }
.privacy-notice p { margin-top: 14px; max-width: 64ch; }
.privacy-notice ul { margin: 14px 0 0; padding-left: 22px; }
.privacy-notice li { margin-top: 8px; max-width: 62ch; }
.privacy-notice .privacy-updated { margin-top: 0; margin-bottom: 28px; }
.privacy-back { margin-top: 48px; }
.page-secondary .section { border-bottom: 0; }
.not-found { max-width: 720px; }
.not-found h1 { font-size: 56px; line-height: 1.05; margin-bottom: 20px; }
.not-found .lead { margin-bottom: 32px; }
.not-found .actions { margin-bottom: 40px; }
.not-found__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.not-found__links li { border-bottom: 1px solid var(--rule); }
.not-found__links a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 500; }
.not-found__links a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Mobile bottom bar (hidden on desktop) ---------- */
.mobile-bar { display: none; }

/* ---------- Tablet and below ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .grid-about, .grid-cred, .grid-location, .grid-contact { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 420px; }
  .service-list { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Square portrait below the actions, capped at 45vh, never behind text */
  .hero__photo { width: min(100%, 45vh); max-width: none; justify-self: start; }
  .services__foot { grid-template-columns: 1fr; gap: 32px; }
  .services__photo { max-width: 640px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; --space-section: var(--space-section-m); }
  body { padding-bottom: 72px; }
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
  body { font-size: 16px; }
  .lead { font-size: 17px; }

  /* Header: logo + menu; nav drops as a white sheet */
  .brand img { height: 30px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 6px 0 10px;
    background: none;
    border: 0;
    color: var(--ink);
    font: 500 15px/1 var(--font-body);
    cursor: pointer;
  }
  .menu-toggle__bars {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; box-shadow: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor;
    transform: rotate(45deg); box-shadow: none;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px rgba(30, 34, 53, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .btn { margin: 12px 0 0; border-bottom: 0; }
  /* Secondary pages keep a small inline nav instead of the sheet */
  .site-nav--static { display: flex; position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; border: 0; box-shadow: none; }
  .site-nav--static a { min-height: 44px; font-size: 15px; border-bottom: 0; }
  .site-nav--static .btn { margin: 0; }
  .privacy-notice h1, .not-found h1 { font-size: 38px; }
  .privacy-notice h2 { font-size: 24px; margin-top: 36px; }

  /* Hero: content first, compact photo frame below the actions (≤ 45vh, never behind text) */
  .hero { padding: 32px 0 40px; }
  .hero__grid { gap: 28px; }
  .hero__content h1 { margin-bottom: 14px; }
  .hero__content .lead { margin-bottom: 20px; }
  .hero__services { margin-bottom: 24px; padding-top: 16px; }
  .chips a { min-height: 44px; font-size: 14px; padding: 0 14px; }
  .hero__photo { width: min(100%, 40vh); }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .privacy-short { font-size: 12px; }

  .about__photo { max-width: 100%; aspect-ratio: 4 / 5; }
  .services__foot { margin-top: 32px; }
  .cred__row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .section-head { margin-bottom: 32px; }
  .service { grid-template-columns: 36px 1fr; gap: 12px; padding: 22px 0; }
  .service__num { font-size: 19px; }
  .faq__item summary { font-size: 20px; min-height: 56px; padding: 14px 0; }
  .faq__item p { padding-right: 24px; }
  .info-list > div, .contact__list li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .footer-row { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding: 40px 0 48px; }

  /* Bottom bar with two actions, shown once the hero button leaves the screen */
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    height: 60px;
    padding: 8px var(--gutter);
    background: var(--ground);
    border-top: 1px solid var(--rule);
    transition: transform .2s ease;
  }
  .mobile-bar .btn { min-height: 44px; padding: 0 16px; }
  .mobile-bar.is-hidden { transform: translateY(100%); }
}

@media (max-width: 380px) {
  h1 { font-size: 34px; }
}
