/* OdontoLáser — estilos del sitio
   Paleta del brand board: grafito #16181D, gris tagline #4A4F5A, neutro claro #F1F2F4.
   El color de acento (--accent*) lo inyecta build.mjs según el tema elegido. */

:root {
  --accent: #0F7F78;
  --accent-dark: #0A5E59;
  --accent-soft: #E1F1EF;
  --accent-light: #46BDB3; /* acento legible sobre fondo oscuro */
  --ink: #16181D;
  --ink-2: #2A2D35;
  --slate: #4A4F5A;
  --muted: #6B7180;
  --line: #E3E5E9;
  --mist: #F1F2F4;
  --white: #FFFFFF;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 12px 32px -12px rgba(22, 24, 29, .14);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Las secciones con ancla bajan un poco más al saltar: queda ~56px de aire bajo el header en vez de todo el padding */
section[id] { scroll-margin-top: calc(56px - clamp(72px, 10vw, 128px)); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #C9CCD3; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .eyebrow { color: var(--accent-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: none; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section--ink .section-head p { color: #A9AEB8; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* Barra superior */
.topbar { background: var(--ink); color: #C9CCD3; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__group { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; color: var(--accent); }
@media (max-width: 760px) { .topbar__addr { display: none; } .topbar .container { justify-content: center; } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-display); font-weight: 500; font-size: 16px; text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--white); padding: 12px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 18px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--slate); margin: 26px 0 36px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__photo {
  position: relative; z-index: 1;
  border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4;
  background: var(--mist); box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__beam {
  position: absolute; top: -40px; right: -10px; width: 46%; height: 6px; background: var(--accent);
  border-radius: 6px; transform: rotate(-45deg); transform-origin: right center; opacity: .95; z-index: 0;
}
.hero__beam::after { content: ""; position: absolute; left: -7px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.hero__badge {
  position: absolute; z-index: 2; left: -28px; bottom: 36px; background: var(--white); border-radius: 18px;
  padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.hero__badge img { width: 48px; height: 48px; flex: none; }
.hero__badge strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; line-height: 1.25; }
.hero__badge span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__badge { left: 12px; bottom: 16px; }
  .hero__beam { right: 10px; }
}

.stats { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 40px); color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat strong span { color: var(--accent); }
.stat small { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about__text p { font-size: 18px; color: var(--slate); }
.about__text p.big { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -.015em; }
.about__text p.big strong { color: var(--accent); font-weight: 600; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; }
.pillar svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Especialidades */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.service__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px; transition: background .2s, color .2s;
}
.service:hover .service__icon { background: var(--accent); color: var(--white); }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; flex: 1; }
.service__more { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.service__more svg { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .service__more svg { transform: translateX(3px); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Láser */
.laser { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.laser__mark { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin-inline: auto; }
.laser__mark img { width: 100%; height: 100%; }
.laser__mark::after {
  content: ""; position: absolute; inset: -8%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-light) 45%, transparent); animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.laser__lead { font-size: 19px; color: #C9CCD3; }
.laser__uses { list-style: none; display: grid; gap: 14px; margin: 32px 0; }
.laser__uses li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--ink-2); border-radius: var(--radius-sm); padding: 20px; }
.laser__uses svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: color-mix(in srgb, var(--accent-light) 16%, transparent); color: var(--accent-light); }
.laser__uses strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 18px; margin-bottom: 2px; }
.laser__uses span { font-size: 15px; color: #A9AEB8; line-height: 1.55; display: block; }
.laser__note { border-left: 3px solid var(--accent-light); padding: 4px 0 4px 18px; font-size: 15px; color: #A9AEB8; margin: 0; }
.laser__note strong { color: var(--white); }
@media (max-width: 900px) { .laser { grid-template-columns: 1fr; } .laser__mark { max-width: 260px; } }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 5 / 5.2; overflow: hidden; background: var(--mist); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .5s; }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.member h3 { font-size: 24px; }
.member__role { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 6px 0 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; flex: 1; align-content: flex-start; }
.tag { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--slate); }
.member .btn { align-self: flex-start; padding: 11px 20px; font-size: 15px; }
@media (max-width: 980px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .team { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tab {
  font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--slate); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.faq__panel[hidden] { display: none; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 21px); color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .25s, background .2s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.qa__body { padding: 0 52px 24px 0; color: var(--slate); }
.qa__body ul { padding-left: 20px; margin-bottom: 1em; }
.qa__body .callout { font-weight: 600; color: var(--accent); }

/* Novedades */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
a.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.post__kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.post h3 { font-size: 23px; margin-bottom: 10px; }
.post p { font-size: 15px; color: var(--muted); flex: 1; }
.post--pro { background: var(--ink); border-color: var(--ink); color: #A9AEB8; }
.post--pro .post__kicker { color: var(--accent-light); }
.post--pro h3 { color: var(--white); }
.post--pro ul { list-style: none; display: grid; gap: 8px; font-size: 15px; margin-bottom: 20px; flex: 1; }
.post--pro li { display: flex; gap: 10px; }
.post--pro li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); margin-top: 10px; }
.pill { align-self: flex-start; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: var(--white); }
@media (max-width: 980px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--accent); color: var(--white); border-radius: var(--radius); padding: clamp(36px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.6vw, 42px); max-width: 620px; }
.cta p { margin: 12px 0 0; color: rgba(255,255,255,.85); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta .btn--outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.cta .btn--outline:hover { border-color: var(--white); }
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); }
.contact__info { display: grid; gap: 14px; align-content: start; }
.info-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.info-card svg { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.info-card small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info-card strong { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 600; }
.info-card span { display: block; color: var(--muted); font-size: 15px; }
a.info-card:hover { border-color: var(--accent); }
.map { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1); }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); }
.form h3 { font-size: 28px; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 26px; }
/* flex y no grid: si una extensión (gestor de contraseñas) inyecta un elemento en un campo, con grid desalineaba la fila */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--mist); color: var(--ink); width: 100%;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: #A9AEB8; padding: 72px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 42px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid #2A2D35; margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #23262D; color: var(--white); }
.social a:hover { background: var(--accent); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Modal */
dialog.modal {
  width: min(100% - 32px, 720px); max-height: min(88vh, 900px); padding: 0; border: 0; border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); color: var(--ink-2);
}
dialog.modal::backdrop { background: rgba(22, 24, 29, .6); backdrop-filter: blur(4px); }
.modal__head { position: sticky; top: 0; background: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 30px 18px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 26px; }
.modal__head small { display: block; color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-top: 4px; }
.modal__close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; font-size: 24px; line-height: 1; color: var(--ink); }
.modal__close:hover { background: var(--accent-soft); color: var(--accent); }
.modal__body { padding: 24px 30px 32px; font-size: 16px; }
.modal__body h4 { font-size: 18px; margin: 22px 0 10px; }
.modal__body ul { padding-left: 20px; margin-bottom: 1em; }
.modal__body li { margin-bottom: 6px; }
.modal__body dl { margin: 0; }
.modal__body dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-top: 14px; }
.modal__body dd { margin: 4px 0 0; }
.modal__cta { margin-top: 24px; }

/* Artículos */
.article-hero { padding: clamp(48px, 7vw, 88px) 0 40px; }
.article-hero .container { max-width: 820px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--slate); text-decoration: none; font-family: var(--font-display); font-weight: 500; margin-bottom: 28px; }
.back:hover { color: var(--accent); }
.article-hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; }
.article-meta { color: var(--muted); margin-top: 18px; font-size: 15px; }
.article-cover { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.prose { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 96px; font-size: 18px; color: var(--slate); }
.prose .lead { font-size: 22px; color: var(--ink); font-family: var(--font-display); line-height: 1.45; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 48px 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); }
.prose figure { margin: 36px 0; }
.prose figure img { border-radius: var(--radius-sm); width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } }
.highlight { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 28px; margin: 36px 0; }
.highlight h2 { margin-top: 0; color: var(--accent-dark); }
.highlight ol { margin-bottom: 0; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .laser__mark::after { animation: none; }
}

/* Páginas internas (especialidades y odontología láser) */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .container { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.page-hero__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.page-hero__icon svg { width: 42px; height: 42px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.03em; }
.page-hero__lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--slate); margin: 20px 0 30px; max-width: none; }
@media (max-width: 620px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero__icon { width: 64px; height: 64px; } .page-hero__icon svg { width: 32px; height: 32px; } }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 80px); padding: clamp(48px, 6vw, 80px) 0; align-items: start; }
.page-body .prose { padding: 0; margin: 0; max-width: 720px; }
.prose h2:first-child { margin-top: 0; }
.prose dl { margin: 0 0 1.2em; }
.prose dt { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 20px; margin-top: 22px; }
.prose dd { margin: 6px 0 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.aside { position: sticky; top: 104px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.aside-card--accent { background: var(--accent); border-color: var(--accent); color: rgba(255,255,255,.88); }
.aside-card--accent h2 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.aside-card--accent p { font-size: 15px; }
.aside-card--accent .btn { width: 100%; margin-top: 10px; }
.aside-card--accent .btn--outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.aside-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.doc { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 8px 0; }
.doc img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.doc strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 17px; line-height: 1.25; }
.doc span { font-size: 14px; color: var(--muted); }
.doc:hover strong { color: var(--accent); }
@media (max-width: 980px) { .page-body { grid-template-columns: 1fr; } .aside { position: static; } }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 600; color: var(--ink); transition: border-color .2s; }
.related a:hover { border-color: var(--accent); color: var(--accent); }
.related svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
@media (max-width: 980px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }

a.service { text-decoration: none; }
.laser__more { display: inline-flex; margin-top: 28px; }
.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); margin: 12px 0 16px; }
.not-found p { color: var(--muted); margin-bottom: 32px; }

/* Botón flotante de WhatsApp (abajo a la izquierda) */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.07); box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 620px) { .wa-float { left: 14px; bottom: 14px; width: 54px; height: 54px; } }
/* Campo trampa para bots del formulario de contacto: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form__note a { color: inherit; font-weight: 600; }

/* Páginas de perfil de los profesionales */
.profile-hero .container { grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.profile-hero__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--mist); box-shadow: var(--shadow); }
.profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.profile-hero__role { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: 19px; margin: 10px 0 0; }
.profile-hero .page-hero__lead { margin-top: 16px; }
@media (max-width: 760px) { .profile-hero .container { grid-template-columns: 1fr; } .profile-hero__photo { max-width: 280px; } }
.aside-links { display: grid; gap: 8px; }
.aside-links a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; color: var(--ink); padding: 6px 0; }
.aside-links a:hover { color: var(--accent); }
.aside-links svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.member h3 a { text-decoration: none; color: inherit; }
.member h3 a:hover { color: var(--accent); }
a.member__photo { display: block; }
