:root {
  --aqua: #60c3ca;
  --aqua-soft: #e7f7f7;
  --purple: #775ea8;
  --purple-dark: #4f3b76;
  --night: #49494a;
  --cream: #f6f2ec;
  --white: #ffffff;
  --ink: #252331;
  --muted: #625f6c;
  --line: #dcd7e0;
  --shadow: 0 16px 40px rgba(73, 73, 74, .12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { display: block; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; transform: translateY(-160%); background: var(--white); color: var(--night); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--night); color: var(--white); }
.eyebrow { display: block; margin-bottom: 12px; color: var(--purple); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--aqua); }
h1, h2, h3 { margin-top: 0; font-family: "Trebuchet MS", "Segoe UI", sans-serif; line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
h1 { font-size: clamp(2.55rem, 11vw, 5.2rem); }
h2 { font-size: clamp(2rem, 8vw, 3.65rem); }
h3 { font-size: 1.35rem; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; }
.section-dark .lead { color: #d5cfdf; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua); color: var(--purple-dark); }
.button-secondary { background: var(--purple); color: var(--white); }
.button-outline { border: 2px solid currentColor; background: transparent; color: var(--purple); }
.button-light { background: var(--white); color: var(--purple-dark); }
.button-row { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--purple-dark); font-weight: 700; text-decoration: none; }
.text-link .icon { width: 20px; height: 20px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--aqua); color: var(--purple-dark); box-shadow: 0 4px 18px rgba(73,73,74,.16); }
.site-header :focus-visible { outline-color: var(--purple-dark); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.brand { display: inline-flex; width: 116px; padding: 8px 0; }
.brand img { width: 116px; }
.menu-toggle { min-width: 48px; min-height: 48px; display: grid; place-items: center; border: 1px solid rgba(79,59,118,.42); border-radius: 50%; background: rgba(255,255,255,.22); color: var(--purple-dark); }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; padding: 12px 16px 20px; background: var(--aqua); border-top: 1px solid rgba(79,59,118,.24); box-shadow: 0 14px 24px rgba(73,73,74,.14); }
.main-nav.is-open { display: grid; }
.main-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(79,59,118,.2); color: var(--purple-dark); font-weight: 700; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--purple-dark); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.header-cta { display: none; }
.site-header .header-cta { background: var(--night); color: var(--white); }

.hero { background: linear-gradient(125deg, var(--cream), var(--aqua-soft)); padding: 34px 0 50px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { align-self: center; }
.hero-copy h1 span { color: var(--purple); }
.hero-copy .lead { font-size: 1.05rem; }
.hero-media { position: relative; overflow: hidden; min-height: 360px; border-radius: 120px 22px 120px 22px; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; position: absolute; inset: 0; }
.hero-badge { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; }
.hero-badge .icon { color: var(--purple); }

.quick-grid { display: grid; gap: 12px; margin-top: -26px; position: relative; z-index: 3; }
.quick-card, .feature-card, .treatment-card, .contact-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.quick-card { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px; text-decoration: none; }
.quick-card > .icon { width: 34px; height: 34px; color: var(--purple); }
.quick-card strong { display: block; }
.quick-card small { color: var(--muted); }

.split { display: grid; gap: 30px; }
.feature-grid, .treatment-grid, .contact-grid { display: grid; gap: 16px; }
.feature-card, .treatment-card, .contact-card { padding: 24px; }
.treatment-card h3 { color: var(--ink); }
.feature-card .card-icon, .treatment-card .card-icon, .contact-card .card-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 22px; background: var(--aqua-soft); color: var(--purple); }
.feature-card .card-icon .icon, .treatment-card .card-icon .icon, .contact-card .card-icon .icon { width: 44px; height: 44px; }
.treatment-card:nth-child(3n+2) .card-icon { background: rgba(119,94,168,.14); }
.treatment-card:nth-child(3n) { background: var(--purple); color: var(--white); }
.treatment-card:nth-child(3n) h3 { color: var(--white); }
.treatment-card:nth-child(3n) .card-icon { background: rgba(255,255,255,.16); color: var(--aqua); }
.treatment-card:nth-child(3n) .text-link { color: var(--white); }
.treatment-card p, .feature-card p, .contact-card p { color: var(--muted); }
.treatment-card:nth-child(3n) p { color: #e7e1ed; }

.clinic-showcase { display: grid; gap: 0; }
.clinic-photo { min-height: 290px; border-radius: var(--radius) var(--radius) 0 0; background: url('../images/clinica-smilux.webp') center/cover no-repeat; }
.clinic-copy { padding: 30px 24px; border-radius: 0 0 var(--radius) var(--radius); background: var(--night); color: var(--white); }
.clinic-copy p { color: #d3cddd; }

.page-hero { padding: 52px 0; background: linear-gradient(120deg, var(--aqua-soft), var(--cream)); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--purple-dark); }
.page-hero h1 { max-width: 850px; margin-bottom: 18px; }
.page-hero .card-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 24px; background: var(--white); color: var(--purple); box-shadow: var(--shadow); }
.page-hero .card-icon .icon { width: 50px; height: 50px; }

.action-panel { padding: 28px 22px; border-radius: var(--radius); background: var(--aqua); }
.action-panel h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
.location-grid { display: grid; gap: 18px; }
.location-card { padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.location-actions { display: grid; gap: 10px; }
.location-actions .button { justify-content: flex-start; }
.regulatory { padding: 20px; border-left: 5px solid var(--purple); background: var(--aqua-soft); }
.regulatory p:last-child { margin-bottom: 0; }
.site-footer { padding: 56px 0 100px; background: var(--night); color: var(--white); }
.footer-grid { display: grid; gap: 36px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid h2 { margin-bottom: 6px; font-size: 1.05rem; letter-spacing: 0; }
.footer-grid a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #eee9f2; text-decoration: none; }
.footer-grid p { color: #cfc8d9; }
.footer-logo { width: 150px; margin-bottom: 8px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.icon-social { width: 26px; height: 26px; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .88rem; }
.footer-bottom p { margin: 0; color: #cfc8d9; }

.mobile-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--aqua); border-top: 1px solid rgba(79,59,118,.24); box-shadow: 0 -8px 24px rgba(73,73,74,.16); }
.mobile-actions a { min-height: 64px; display: grid; place-items: center; align-content: center; gap: 2px; border-right: 1px solid rgba(79,59,118,.18); color: var(--purple-dark); font-size: .72rem; font-weight: 700; text-decoration: none; }
.mobile-actions a:last-child { border-right: 0; }
.mobile-actions :focus-visible { outline-color: var(--purple-dark); outline-offset: -4px; }
.mobile-actions .icon { width: 24px; height: 24px; }

@media (min-width: 560px) {
  .button-row { flex-direction: row; align-items: center; }
  .quick-grid, .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .location-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .section { padding: 92px 0; }
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 82px; }
  .brand, .brand img { width: 130px; }
  .menu-toggle { display: none; }
  .main-nav { display: flex; position: static; justify-content: center; gap: 22px; padding: 0; border: 0; }
  .main-nav a { min-height: 48px; border: 0; font-size: .9rem; }
  .header-cta { display: inline-flex; }
  .hero { padding: 50px 0 66px; }
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-media { min-height: 490px; border-radius: 190px 28px 190px 28px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .treatment-grid { grid-template-columns: repeat(3, 1fr); }
  .clinic-showcase { grid-template-columns: 1.12fr .88fr; align-items: center; }
  .clinic-photo { min-height: 430px; border-radius: var(--radius); }
  .clinic-copy { margin-left: -48px; padding: 48px; border-radius: var(--radius); }
  .location-grid { grid-template-columns: 1.05fr .95fr; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.25fr .8fr 1fr .8fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .site-footer { padding-bottom: 34px; }
  .mobile-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
