:root {
  color-scheme: light;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: #102d45;
  background: #fff;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #2283cb; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #e3ecf1; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 750; text-decoration: none; }
.brand-logo { display: block; width: clamp(132px, 20vw, 218px); height: auto; }
nav { display: flex; gap: 30px; }
nav a { text-decoration: none; color: #365365; }
nav a:hover, .header-action:hover { text-decoration: underline; }
.header-action { color: #116448; font-weight: 700; text-decoration: none; }
.hero { background: linear-gradient(120deg, #f5fbff, #e2f4fb); padding: clamp(40px, 7vw, 86px) 0; }
.hero-grid { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(32px, 6vw, 82px); }
.eyebrow { color: #286585; font-weight: 750; font-size: .94rem; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.1rem, 7vw, 6.3rem); line-height: .99; letter-spacing: -.068em; margin-bottom: 23px; }
h1 em { font-style: normal; color: #2464a7; }
.intro { max-width: 40ch; color: #385768; font-size: 1.14rem; line-height: 1.6; margin-bottom: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 9px; min-height: 49px; font-weight: 700; text-decoration: none; transition: background-color .15s; }
.primary { background: #126647; color: white; }
.primary:hover { background: #0a5037; }
.secondary { background: white; border: 1px solid #c7dce9; }
.secondary:hover { background: #f6fbff; }
.hero-photo { position: relative; margin: 0; border-radius: 25px; overflow: hidden; background: #dbeef9; box-shadow: 0 18px 45px #102d4521; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.23; object-fit: cover; display: block; }
.hero-photo figcaption { position: absolute; bottom: 12px; right: 12px; border-radius: 6px; background: white; padding: 4px 8px; font-size: .78rem; }
.section { padding-top: 66px; padding-bottom: 72px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.045em; margin-bottom: 25px; }
h3 { font-size: 1.36rem; margin-bottom: 9px; letter-spacing: -.018em; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.services article { padding: 25px; border: 1px solid #dce9ef; border-radius: 16px; }
.services p, .reception p { line-height: 1.55; color: #385768; }
.services a { font-weight: 700; color: #116448; text-underline-offset: .2em; }
.location { background: #102d45; color: white; padding: 55px 0; }
.location-inner { display: grid; grid-template-columns: 1fr .8fr; gap: 36px; align-items: center; }
.location .eyebrow, address { color: #d1eaf8; }
.location h2 { margin-bottom: 12px; }
address { font-style: normal; line-height: 1.55; }
.location-button { background: white; color: #102d45; margin-top: 20px; }
.location-button:hover { background: #d1eaf8; }
.reception { border: 1px solid #67889d; border-radius: 14px; padding: 22px; }
.reception p { color: #d1eaf8; }
.reception a { color: #b4ffdc; font-size: 1.18rem; font-weight: 750; text-underline-offset: .22em; }
.footer { display: flex; gap: 14px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; color: #385768; }
@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .location-inner { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 1.45; }
  .services { grid-template-columns: 1fr; }
  .topbar { min-height: 64px; gap: 12px; }
  nav { display: none; }
  .header-action { font-size: .92rem; }
  .section { padding-top: 45px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

.home-hero .hero-grid { grid-template-columns: 1fr 1.05fr; }
.home-hero h1 { font-size: clamp(3rem, 6.5vw, 5.75rem); }
.branch-card { display: grid; gap: 12px; background: #f6fbfe; align-content: start; }
.branch-card h3 { margin: 0; font-size: 1.62rem; }
.branch-card address { color: #385768; }
.branch-card .branch-more { width: fit-content; color: #185787; }
.branch-card .branch-chat { width: fit-content; color: white; text-decoration: none; background: #126647; padding: 11px 14px; border-radius: 8px; }
.branch-card .branch-chat:hover { background: #0a5037; }
.treatments-band { background: #102d45; color: white; padding: 44px 0; }
.treatments-band ul { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; list-style: none; }
.treatments-band li { padding: 8px 13px; border: 1px solid #7795a7; border-radius: 8px; }
.treatments-band p { margin-bottom: 0; color: #d1eaf8; }
@media(max-width:780px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; }
}


.hero-photo img { aspect-ratio: 1.18; }
.hero-photo--portrait img { object-position: center 25%; }
.hero-photo--facade img { object-position: center 63%; }
.hero-photo--office img { object-position: center 72%; }
.hero-photo figcaption { max-width: calc(100% - 24px); color: #102d45; }
@media (max-width: 780px) { .hero-photo img { aspect-ratio: 1.25; } }

/* Portada Dental 32 y landing de Breña */
.skip-link { position: absolute; z-index: 2; top: 10px; left: 10px; transform: translateY(-180%); padding: 12px; background: #fff; color: #102d45; }
.skip-link:focus { transform: translateY(0); }
.home-hero { background: radial-gradient(ellipse at 88% 12%, #c5eaf4 0, transparent 48%), #eff8fc; }
.home-hero .hero-grid { grid-template-columns: 1.04fr .96fr; }
.home-hero h1 { max-width: 10ch; font-size: clamp(3.35rem, 7.1vw, 6.1rem); }
.home-hero .hero-photo { border-radius: 28px 28px 110px 28px; }
.home-hero .hero-photo img { aspect-ratio: 1.13; object-position: center 24%; }
.home-hero .hero-photo figcaption { right: auto; left: 15px; bottom: 15px; padding: 8px 12px; }
.branch-cards .branch-card { border-radius: 22px; min-height: 208px; }
.branch-cards .branch-card--brena { background: #e8f6fb; border-color: #ace0ed; }
.treatments-band { padding: clamp(40px, 7vw, 85px) 0; }
.treatment-layout { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(28px, 8vw, 100px); }
.treatment-photo { margin: 0; overflow: hidden; border-radius: 28px; }
.treatment-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 74%; }
.treatment-list { margin: 0; }
.treatment-list div { padding: 13px 0; border-top: 1px solid #698295; }
.treatment-list dt { font-size: 1.15rem; font-weight: 700; }
.treatment-list dd { margin: 4px 0 0; color: #d1eaf8; line-height: 1.5; }
.team-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.team-section h2 { margin-bottom: 8px; }
.team-section p:last-child { margin-bottom: 0; color: #385768; }
.campaign-hero h1 { max-width: 11ch; }
@media (max-width: 780px) {
  .home-hero .hero-grid, .treatment-layout { grid-template-columns: minmax(0, 1fr); }
  .home-hero .hero-photo { border-bottom-right-radius: 62px; }
  .home-hero .hero-photo img { aspect-ratio: 1.3; }
  .team-section { align-items: flex-start; flex-direction: column; }
}

/* Encabezado y reserva en la portada */
.site-header--home { background: #f7f7f7; border-bottom: 1px solid #e0e9ee; }
.site-header--home .topbar { min-height: 78px; }
.site-header--home .brand-logo { width: clamp(132px, 16vw, 188px); }
.site-header--home nav { gap: clamp(16px, 3vw, 34px); }
.site-header--home nav a { font-size: .96rem; font-weight: 600; }
.site-header--home .header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #b9d2df;
  border-radius: 8px;
  color: #185577;
  background: #fff;
  white-space: nowrap;
}
.site-header--home .header-action:hover { background: #eaf5fa; text-decoration: none; }
.contact-hero { background: #eff7fa; color: #102d45; }
.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas: "copy portrait" "picker portrait";
  gap: 24px clamp(30px, 5vw, 75px);
  align-content: center;
  padding-block: clamp(42px, 6vw, 82px);
}
.contact-hero-copy { grid-area: copy; align-self: end; }
.contact-hero-copy h1 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.contact-hero-copy h1 em { display: block; color: #215f86; }
.contact-hero-copy .intro { color: #385768; margin-bottom: 0; }
.contact-hero-portrait {
  grid-area: portrait;
  align-self: stretch;
  position: relative;
  margin: 0;
  overflow: hidden;
  min-width: 0;
  border-radius: 20px;
  background: #dcecf6;
}
.contact-hero-portrait img { display: block; width: 100%; height: 100%; min-height: 330px; max-height: 495px; object-fit: cover; object-position: center 28%; }
.contact-hero-portrait figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  color: #102d45;
  font-size: .85rem;
}
.contact-picker {
  grid-area: picker;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px 16px;
  padding: 16px;
  border: 1px solid #d8e7ed;
  border-radius: 14px;
  background: #fff;
  color: #102d45;
}
.contact-picker[hidden] { display: none; }
.contact-picker-field { min-width: 0; }
.contact-picker label, .contact-picker-field span { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 700; }
.contact-picker select { width: 100%; min-height: 46px; padding: 8px 10px; border: 1px solid #a9c0d0; border-radius: 8px; background: #f5fafd; color: #102d45; font: inherit; }
.contact-picker select:focus-visible { outline: 3px solid #2283cb; outline-offset: 3px; }
.contact-picker-phone a { display: flex; align-items: center; min-height: 46px; font-weight: 750; text-underline-offset: 4px; white-space: nowrap; }
.contact-picker .primary { grid-column: 1 / -1; width: 100%; }
.contact-picker .contact-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.branch-card .branch-phone { font-variant-numeric: tabular-nums; }
@media (max-width: 780px) {
  .site-header--home .topbar { min-height: 64px; }
  .site-header--home .brand-logo { width: 145px; }
  .contact-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "picker" "portrait";
    padding-block: 28px 36px;
    gap: 19px;
  }
  .contact-hero-copy h1 { margin-bottom: 10px; font-size: clamp(2.3rem, 8vw, 3.8rem); }
  .contact-hero-copy .intro { font-size: 1rem; }
  .contact-hero-portrait img { height: auto; min-height: 0; aspect-ratio: 1.45; object-position: 50% 25%; }
  .contact-picker { gap: 9px 12px; padding: 12px; }
}
@media (max-width: 360px) {
  .site-header--home .brand-logo { width: 132px; }
  .site-header--home .header-action { padding-inline: 10px; }
  .contact-picker-phone a { font-size: .9rem; }
}

/* Catálogo de tratamientos y preguntas frecuentes */
.service-catalog { background: #eef6fa; }
.catalog-heading { max-width: 42rem; margin-bottom: 26px; }
.catalog-heading h2, .faq-intro h2 { margin-bottom: 12px; }
.catalog-heading p, .catalog-card p, .catalog-card li, .faq-list p { color: #385768; line-height: 1.55; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.catalog-card { background: #fff; border: 1px solid #dbe7ee; border-radius: 16px; padding: 22px; }
.catalog-card ul { margin: 0; padding-inline-start: 20px; }
.catalog-card p { margin: 0; }
.faq-section { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr); gap: clamp(22px, 5vw, 68px); align-items: start; }
.faq-intro .button { margin-top: 6px; }
.faq-list { min-width: 0; }
.faq-list details { border-top: 1px solid #d7e4ec; }
.faq-list details:last-child { border-bottom: 1px solid #d7e4ec; }
.faq-list summary { cursor: pointer; padding: 16px 10px; min-height: 50px; font-weight: 700; }
.faq-list summary:focus-visible { outline: 3px solid #2283cb; outline-offset: 3px; }
.faq-list p { margin: 0; padding: 0 10px 16px; }
.sede-catalog-link { margin-top: -26px; padding-bottom: 36px; }
.sede-catalog-link a { color: #185787; font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .88rem; }
}
@media (max-width: 780px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-section { grid-template-columns: minmax(0, 1fr); }
  .sede-catalog-link { margin-top: -14px; }
}
@media (max-width: 500px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-card { padding: 18px; }
}

/* Acceso a citas y diseño de la sede Breña */
body[data-branch="brena"] .campaign-hero { background: #eff7fa; }
body[data-branch="brena"] .campaign-hero .hero-photo { border-radius: 18px; }
body[data-branch="brena"] .campaign-hero .hero-photo img { object-position: 50% 55%; }
.brena-direccion { color: #385768; margin: 16px 0 0; font-size: .95rem; }
.brena-mobile-contact { display: none; }
@media (max-width: 650px) {
  body[data-branch="brena"] { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body[data-branch="brena"] .campaign-hero { padding: 26px 0 32px; }
  body[data-branch="brena"] .campaign-hero .hero-grid { gap: 22px; }
  body[data-branch="brena"] .campaign-hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .brena-mobile-contact {
    position: fixed;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #dbe7ee;
    background: #fff;
  }
  .brena-mobile-contact .button { width: 100%; }
}
