/* Bukalix — dirección de arte propia.
   Idea central: el diente. Es su logo, su cartel de fachada y la
   escultura de la sala de espera — no un motivo impuesto. */

:root {
  --gold: #D4B260;
  --gold-dark: #B4924A;
  --ink: #1C1712;
  --ink-2: #14100D;
  --paper: #FAF9F9;
  --sand: #F3EEE6;
  --text: #2B2320;
  --text-soft: #5B4F47;
  --mk-primario: var(--gold);
  --mk-secundario: var(--ink);
  --mk-fondo: var(--paper);
  --mk-texto: var(--text);

  --fs-hero: clamp(2.6rem, 5.4vw + 1rem, 5.4rem);
  --fs-h2: clamp(2rem, 3vw + 1rem, 3.2rem);
  --fs-h3: clamp(1.35rem, 1.4vw + 1rem, 1.8rem);
  --fs-lead: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  --fs-body: clamp(1rem, 0.3vw + 0.9rem, 1.1rem);

  --gap: clamp(1.5rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Source Sans Pro", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }

.kicker {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1em;
}

.contenedor {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.seccion { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.seccion--sand { background: var(--sand); }
.seccion--ink { background: var(--ink); color: var(--sand); }
.seccion--ink .kicker { color: var(--gold); }
.seccion--ink h2, .seccion--ink h3 { color: #fff; }

/* --- Botones --- */
.boton {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600; font-size: 1rem;
  padding: .95em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.boton:hover { transform: translateY(-2px); }
.boton--oro { background: var(--gold); color: var(--ink); }
.boton--oro:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--gold) 45%, transparent); }
.boton--linea { border-color: currentColor; color: inherit; }
.boton--linea:hover { background: rgba(255,255,255,.08); }

/* --- Cabecera fija --- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 3vw, 2.2rem);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.cabecera__logo { height: 42px; width: auto; border-radius: 9px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cabecera__nav { display: flex; gap: 1.8rem; font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: .92rem; }
.cabecera__nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.cabecera__nav a:hover { opacity: 1; }
.cabecera__acciones { display: flex; align-items: center; gap: .8rem; }
.cabecera__tel {
  display: flex; align-items: center; gap: .5em;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700;
  text-decoration: none; color: var(--ink); font-size: .98rem;
  white-space: nowrap;
}
.cabecera__tel svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 780px) {
  .cabecera__nav { display: none; }
  .cabecera__tel span { display: none; }
  .cabecera__logo { height: 34px; }
}

/* --- Diente: motivo gráfico recurrente --- */
.diente-svg {
  fill: var(--gold);
  opacity: 0; transform: translateY(16px) scale(.94);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.diente-svg.mk-in { opacity: .9; transform: none; }
.diente-divisor { display: flex; justify-content: center; padding: clamp(2.5rem,6vw,4.5rem) 0; }
.diente-divisor svg { width: 26px; height: auto; }
.diente-divisor svg.mk-in { opacity: .55; }
.diente-bala { width: 19px; height: auto; flex: none; margin-top: .25em; }
@media (prefers-reduced-motion: reduce) {
  .diente-svg { transition: none !important; opacity: .9 !important; transform: none !important; }
  .diente-divisor svg { opacity: .55 !important; }
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 6rem;
  overflow: hidden;
  color: #fff;
}
.hero__foto { position: absolute; inset: 0; z-index: 0; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(10,7,5,.88) 0%, rgba(10,7,5,.55) 42%, rgba(10,7,5,.28) 68%, rgba(10,7,5,.5) 100%);
}
.hero__contenido { position: relative; z-index: 2; padding: 3rem 0 clamp(3rem,7vw,5rem); width: 100%; }
.hero__diente { position: absolute; right: clamp(-40px, 2vw, 20px); top: clamp(90px, 14vh, 170px); width: clamp(120px, 16vw, 230px); height: auto; z-index: 2; }
.hero h1 { font-size: var(--fs-hero); max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__lead { font-size: var(--fs-lead); max-width: 46ch; color: #f1ece4; margin-bottom: 1.8em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__tel-grande { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: clamp(1.2rem,2vw,1.5rem); color: #fff; text-decoration: none; display: flex; align-items: center; gap: .5em; }
.hero__tel-grande svg { width: 22px; height: 22px; }
@media (max-width: 780px) { .hero__diente { display: none; } }

/* --- Estadísticas --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.stats__item { text-align: left; }
.stats__num { font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--gold-dark); line-height: 1; display: block; }
.stats__label { font-size: .95rem; color: var(--text-soft); margin-top: .5em; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 1.75rem; } }

.lead-block { max-width: 62ch; }

/* --- Foto ancha con texto encima --- */
.foto-ancha { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.foto-ancha img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-ancha__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,7,5,.86) 10%, rgba(10,7,5,.25) 55%, rgba(10,7,5,.1) 100%); }
.foto-ancha__texto { position: relative; z-index: 1; padding: clamp(2.5rem,6vw,4rem) 0; color: #fff; max-width: 56ch; }
.foto-ancha__texto .kicker { color: var(--gold); }
.foto-ancha__texto p { color: #efe8dd; }

/* --- Tratamientos: acordeón de dos niveles, compacto por defecto --- */
.tratamientos__grupos { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.tratamientos__grupo { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.tratamientos__grupo-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5em;
  width: 100%; padding: 1.15em 0; margin: 0; border: 0; background: none;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: inherit;
  text-align: left; cursor: pointer;
}
.tratamientos__grupo-titulo { color: var(--gold-dark); }
.tratamientos__grupo-signo { flex: none; width: 20px; height: 20px; position: relative; }
.tratamientos__grupo-signo::before, .tratamientos__grupo-signo::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold-dark);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.tratamientos__grupo-signo::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.tratamientos__grupo-signo::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.tratamientos__grupo-btn[aria-expanded="true"] .tratamientos__grupo-signo::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.tratamientos__grupo-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22,1,.36,1);
}
.tratamientos__grupo-btn[aria-expanded="true"] + .tratamientos__grupo-panel { grid-template-rows: 1fr; }
.tratamientos__grupo-panel-inner { overflow: hidden; }
.tratamientos__grupo-panel-inner > * { padding-bottom: 1.6em; }

.tratamientos__lista { list-style: none; margin: 0; padding: 0; }
.tratamiento { border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.tratamiento:first-child { border-top: 0; }
.tratamiento__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5em;
  width: 100%; padding: .8em 0; margin: 0; border: 0; background: none;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.15rem); color: inherit;
  text-align: left; cursor: pointer; position: relative;
}
.tratamiento__btn::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--gold); transition: width .35s cubic-bezier(.22,1,.36,1);
}
.tratamiento__btn:hover::after, .tratamiento__btn[aria-expanded="true"]::after { width: 100%; }
.tratamiento__nombre { display: flex; align-items: center; gap: .8em; }
.tratamiento__signo { flex: none; width: 16px; height: 16px; position: relative; }
.tratamiento__signo::before, .tratamiento__signo::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold-dark);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.tratamiento__signo::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.tratamiento__signo::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.tratamiento__btn[aria-expanded="true"] .tratamiento__signo::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.tratamiento__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.22,1,.36,1);
}
.tratamiento__btn[aria-expanded="true"] + .tratamiento__panel { grid-template-rows: 1fr; }
.tratamiento__panel-inner { overflow: hidden; }
.tratamiento__panel-inner p {
  margin: 0 0 1em; padding-right: 2em; max-width: 56ch;
  color: var(--text-soft); font-size: clamp(.92rem, 1vw, 1rem);
}
.tratamientos__nota { margin-top: 1.6em; color: var(--text-soft); font-size: .95rem; }

/* --- Primer grupo: al abrirse, muestra también una foto --- */
.tratamientos__grupo-abre {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.tratamientos__grupo-foto { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; }
.tratamientos__grupo-foto img { width: 100%; height: 100%; object-fit: cover; }
.tratamientos__grupo-intro { color: var(--text-soft); margin: 0 0 1em; max-width: 42ch; }
@media (max-width: 780px) {
  .tratamientos__grupo-abre { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tratamiento__panel, .tratamientos__grupo-panel { transition: none; }
}

/* --- Destacado (split foto + texto) --- */
.destacado { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.destacado__foto { position: relative; padding: 0 1.4rem 1.4rem 0; }
.destacado__foto-marco { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.destacado__foto-marco img { width: 100%; height: 100%; object-fit: cover; }
.destacado__texto p { color: #dcd3c6; }
.destacado__credencial {
  font-size: .88rem; color: #b9ac96; padding-top: .8em;
  border-top: 1px solid rgba(255,255,255,.14); max-width: 40ch;
}
.destacado__credencial strong { color: #e9d9b0; font-weight: 600; }

/* --- Insignia de certificación, apoyada en la esquina de la foto --- */
.destacado__insignia {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  width: 38%; margin: 0;
  background: var(--paper); padding: .5rem .5rem .6rem;
  border-radius: 4px; box-shadow: 0 16px 34px rgba(0,0,0,.35);
  transform: rotate(-2deg);
}
.destacado__insignia img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; display: block; }
.destacado__insignia figcaption {
  font-family: "Poppins", system-ui, sans-serif; font-weight: 600;
  font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-align: center; padding-top: .45em;
}
@media (max-width: 860px) { .destacado { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .destacado__insignia { width: 44%; } }

/* --- Marquee de valores --- */
.valores { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.valores .mk-marquee-track { align-items: center; }
.valores__item { display: inline-flex; align-items: center; gap: .9em; font-family: "Poppins", system-ui, sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--text-soft); }
.valores__item svg { width: 19px; height: auto; opacity: .6; }

/* --- Confianza / financiación --- */
.confianza { position: relative; min-height: 68vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.confianza img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.confianza__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,7,5,.92) 30%, rgba(10,7,5,.55) 65%, rgba(10,7,5,.25) 100%); }
.confianza__texto { position: relative; z-index: 1; max-width: 46ch; }
.confianza__texto p { color: #efe8dd; }

/* --- Opiniones: citas reales de Google, sin cards genéricas --- */
.opiniones__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem); align-items: start;
}
.opinion { margin: 0; padding-top: 1.4em; border-top: 2px solid var(--gold); position: relative; }
.opinion__estrellas { display: flex; gap: .35em; margin-bottom: 1.2em; }
.opinion__estrellas svg { width: 24px; height: auto; color: var(--gold-dark); flex: none; }
.opinion__texto {
  font-size: 1.05rem; line-height: 1.65; color: var(--text);
  margin: 0 0 1.4em;
}
.opinion__autor { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font-family: "Poppins", system-ui, sans-serif; }
.opinion__nombre { font-weight: 600; font-size: .92rem; }
.opinion__enlace { font-size: .8rem; color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.opinion__enlace:hover { color: var(--gold-dark); }
.opiniones__mas {
  display: inline-block; margin-top: clamp(2rem, 4vw, 3rem);
  font-family: "Poppins", system-ui, sans-serif; font-weight: 600;
  color: var(--gold-dark); text-decoration: none; border-bottom: 1px solid currentColor;
  padding-bottom: .15em;
}
@media (max-width: 860px) { .opiniones__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* --- Contacto --- */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.horario { list-style: none; margin: 0; padding: 0; }
.horario li { display: flex; justify-content: space-between; gap: 1rem; padding: .7em 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); font-family: "Poppins", system-ui, sans-serif; }
.contacto__canales { display: grid; gap: 1.1rem; }
.canal { display: flex; align-items: flex-start; gap: .9em; text-decoration: none; color: inherit; }
.canal svg { width: 22px; height: 22px; flex: none; margin-top: .15em; color: var(--gold-dark); }
.canal__titulo { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; }
@media (max-width: 860px) { .contacto { grid-template-columns: 1fr; } }

/* --- WhatsApp flotante --- */
.wa-flotante {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.wa-flotante svg { width: 28px; height: 28px; }
.wa-flotante:hover { transform: scale(1.08); }
@media (max-width: 780px) {
  .wa-flotante { width: 50px; height: 50px; right: 1rem; bottom: 1rem; }
  .wa-flotante svg { width: 25px; height: 25px; }
}

/* --- Pie estático --- */
.pie {
  background: var(--ink-2); color: #cfc6ba;
  padding: clamp(3rem, 6vw, 5rem) 0 1.6rem;
}
.pie__cta { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pie__cta h2 { color: #fff; }
.pie__tel {
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5em;
  border-radius: 999px; padding: .3em 1em;
}
.pie__tel svg { width: .8em; height: .8em; }
.pie__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.pie__grid h4 { font-family: "Poppins", system-ui, sans-serif; color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .9em; }
.pie__grid p, .pie__grid a { font-size: .95rem; line-height: 1.6; text-decoration: none; color: #cfc6ba; }
.pie__redes { display: flex; gap: 1rem; margin-top: .8em; }
.pie__redes a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.pie__redes svg { width: 17px; height: 17px; }
.pie__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.6rem; font-size: .82rem; opacity: .6; }
@media (max-width: 780px) { .pie__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* --- Utilidades de imagen --- */
.foto-cuidada { aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; }
.foto-cuidada img { width: 100%; height: 100%; object-fit: cover; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
