: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; }
}

