/* Odontotecnia — hoja de estilos del sitio */

@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/libre-baskerville.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --verde: #1e9c9a;
  --verde-fuerte: #15807e; /* botones y textos pequeños: mismo tono, con contraste suficiente sobre blanco */
  --carbon: #373737;
  --negro: #141318;
  --gris: #f7f7f7;
  --titulos: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --lectura: "Libre Baskerville", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--titulos); color: var(--carbon); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd, blockquote, address { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--verde-fuerte); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.ancho { width: min(1170px, 100% - 40px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 10; }
.saltar:focus { left: 8px; top: 8px; }

/* Cabecera */
.cabecera { background: #fff; border-bottom: 1px solid #ececec; }
.cabecera__fila { display: flex; align-items: center; gap: 32px; min-height: 90px; }
.cabecera__logo img { width: 58px; height: 58px; }
.menu { display: flex; gap: 32px; }
.menu a { color: #1e293b; text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:hover { color: var(--verde-fuerte); }
.cabecera__boton { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: var(--verde-fuerte); padding: 12px 11px; cursor: pointer; }
.cabecera__boton span { display: block; height: 2px; background: #fff; margin: 4px 0; }

/* Botones */
.boton { display: inline-block; background: var(--verde-fuerte); color: #fff; border: 2px solid var(--verde-fuerte); padding: 22px 46px; font: 700 16px/1.2 var(--titulos); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.boton:hover { background: #0f6665; border-color: #0f6665; }
.boton--borde { background: transparent; border-color: #fff; }
.boton--borde:hover { background: #fff; border-color: #fff; color: var(--negro); }
.boton--borde-oscuro { background: transparent; border-color: var(--carbon); color: var(--carbon); }
.boton--borde-oscuro:hover { background: var(--carbon); border-color: var(--carbon); color: #fff; }
.boton--ancho { display: block; width: 100%; }
.boton[disabled] { opacity: .6; cursor: progress; }
.pila { display: grid; gap: 12px; }

.raya { display: block; width: 100px; height: 4px; background: #fff; margin-bottom: 24px; }
.raya--centro { margin-inline: auto; background: var(--verde); }
.raya--oscura { background: var(--verde); }

/* Portada */
.portada { position: relative; background: #000 url("/img/fondo-laboratorio.webp") center / cover no-repeat; color: #fff; isolation: isolate; }
.portada::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #000 48%, rgba(53, 53, 66, .52) 48%); opacity: .93; }
.portada__texto { padding: 64px 0 74px; }
.portada__texto > * { max-width: 890px; }
.portada__sobre { color: #3cc4c1; font-size: 18px; line-height: 1.4; margin-bottom: 18px; }
.portada h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; line-height: 1.3; text-transform: uppercase; margin-bottom: 20px; }
.portada__bajada { font-family: var(--lectura); font-size: clamp(18px, 2vw, 24px); line-height: 1.45; max-width: 640px; margin-bottom: 34px; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 20px; }

/* Productos */
.productos { background: #fff; padding: 64px 0 40px; }
.especialistas { text-align: center; font-size: clamp(22px, 3vw, 34px); color: #1e293b; line-height: 1.3; margin-bottom: 40px; }
.especialistas strong { color: var(--verde-fuerte); font-weight: 700; display: inline-block; transition: opacity .35s; }
.especialistas strong.sale { opacity: 0; }
.tarjetas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 46px; }
.tarjetas li { background: var(--carbon); }
.tarjetas img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tarjetas span { display: block; padding: 16px 8px; color: #fff; font-weight: 700; font-size: 18px; text-align: center; text-transform: uppercase; }

.titulo { font-size: clamp(26px, 3.4vw, 39px); font-weight: 700; line-height: 1.25; text-transform: uppercase; color: var(--carbon); margin-bottom: 14px; }
.titulo--centro { text-align: center; font-size: 35px; }
.titulo--grande { font-size: clamp(32px, 4.4vw, 50px); }
.sobretitulo { color: var(--verde-fuerte); font-weight: 600; font-size: 18px; text-transform: uppercase; margin-bottom: 14px; }
.destacado { font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.texto { font-family: var(--lectura); font-size: 16px; line-height: 1.75; margin-bottom: 18px; }
.texto strong { font-weight: 700; }
.texto--centro { text-align: center; max-width: 1000px; margin-inline: auto; }

/* Franja oscura con llamado */
.franja { background: var(--carbon); color: #fff; text-align: center; padding: 26px 0 40px; }
.franja .raya { margin-bottom: 14px; }
.franja h2 { font-size: clamp(22px, 3vw, 35px); font-weight: 400; text-transform: uppercase; line-height: 1.3; margin-bottom: 20px; }

/* Secciones claras con textura de mármol */
.textura { position: relative; background: var(--gris); padding: 90px 0 56px; isolation: isolate; }
.textura::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/img/textura.webp") center / cover; opacity: .2; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.dos__img { width: 100%; max-width: 460px; justify-self: center; }

.cita { text-align: center; padding-top: 48px; }
.cita .boton { margin-bottom: 30px; }
.cita blockquote p { font-family: var(--lectura); font-size: 16px; line-height: 1.9; max-width: 1040px; margin: 0 auto 20px; }
.cita footer { display: grid; justify-items: center; gap: 2px; }
.cita img { width: 110px; height: 110px; border-radius: 50%; margin-bottom: 8px; }
.cita cite { font-style: normal; font-weight: 700; font-size: 19px; text-transform: uppercase; }
.cita span { font-size: 15px; }

/* Cifras */
.cifras { position: relative; background: #131212 url("/img/fondo-laboratorio.webp") center / cover no-repeat; color: #fff; text-align: center; padding: 130px 0 150px; isolation: isolate; }
.cifras::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(19, 18, 18, .72); }
.cifras h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 500; text-transform: uppercase; line-height: 1.25; }
.cifras__sub { color: #3cc4c1; font-weight: 600; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: 1px; margin: 6px 0 14px; }
.cifras__lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 26px 0 44px; }
.cifras__lista div { display: flex; flex-direction: column-reverse; }
.cifras dd { color: var(--verde); font-weight: 700; font-size: clamp(44px, 6vw, 70px); line-height: 1.05; }
.cifras dt { font-weight: 700; font-size: 17px; text-transform: uppercase; max-width: 240px; margin: 8px auto 0; line-height: 1.4; }

/* Banda fotográfica */
.banda { height: 270px; background: url("/img/fondo-laboratorio.webp") center / cover no-repeat; filter: grayscale(1); }

/* Contacto */
.contacto__cabeza { background: var(--negro); color: #fff; padding: 62px 0 36px; }
.contacto__cabeza h2 { font-size: clamp(34px, 5vw, 50px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.contacto__cabeza p { color: #3cc4c1; font-weight: 700; font-style: italic; font-size: 18px; letter-spacing: 1px; margin-top: 6px; line-height: 1.4; }
.contacto__cuerpo { background: #f4f4f4; padding: 110px 0 100px; }
.contacto__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contacto h3 { font-family: var(--lectura); font-size: 22px; font-weight: 700; text-transform: uppercase; color: #202125; margin-bottom: 16px; }
.contacto h3.separado { margin-top: 44px; }
.contacto address { font-style: normal; font-size: 17px; color: #48494c; }
.datos li { display: flex; align-items: center; gap: 14px; font-size: 18px; color: #54595f; margin-bottom: 14px; }
.datos svg { flex: none; width: 34px; height: 34px; padding: 7px; background: var(--verde-fuerte); fill: #fff; border-radius: 4px; }
.datos a { color: inherit; text-decoration: none; }
.datos a:hover { color: var(--verde-fuerte); text-decoration: underline; }

.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo { grid-column: 1 / -1; }
.campo--mitad { grid-column: auto; }
.campo label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.campo input, .campo textarea { width: 100%; font: 400 16px/1.4 var(--titulos); color: #202125; background: #fff; border: 1px solid #c9c9c9; border-radius: 3px; padding: 11px 14px; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo textarea:focus { border-color: var(--verde-fuerte); }
.campo .mal { border-color: #b3261e; }
.campo--extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acepto { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #48494c; cursor: pointer; }
.acepto input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--verde-fuerte); flex: none; }
.formulario .boton { grid-column: 1 / -1; padding-block: 14px; }
.formulario__estado { grid-column: 1 / -1; font-size: 16px; min-height: 1.6em; color: #0f6665; font-weight: 600; }
.formulario__estado--error { color: #b3261e; }

.mapa { background: #e9e9e9; text-align: center; padding: 56px 20px; margin-block: 0 10px; display: grid; gap: 14px; justify-items: center; }
.mapa p { font-size: 18px; font-weight: 600; }
.mapa small { color: #5d5d5d; font-size: 13px; }
.mapa iframe { width: 100%; height: 300px; border: 0; display: block; }
.mapa.abierto { padding: 0; background: none; }

/* Pie */
.pie { background: #fff; text-align: center; padding: 28px 0; font-size: 15px; color: #54595f; }
.pie p + p { margin-top: 6px; }

/* Página de texto (privacidad, 404) */
.pagina { padding: 64px 0 80px; }
.pagina .ancho { max-width: 780px; }
.pagina h1 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; line-height: 1.2; margin-bottom: 8px; }
.pagina h2 { font-size: 21px; margin: 34px 0 10px; }
.pagina p, .pagina li { font-family: var(--lectura); font-size: 16px; line-height: 1.75; margin-bottom: 12px; }
.pagina ul { list-style: disc; padding-left: 22px; }
.pagina .fecha { font-family: var(--titulos); color: #5d5d5d; font-size: 15px; margin-bottom: 26px; }

@media (max-width: 900px) {
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .dos, .contacto__cols { grid-template-columns: 1fr; gap: 40px; }
  .textura { padding-top: 60px; }
  .cifras { padding: 80px 0 90px; }
  .contacto__cuerpo { padding: 60px 0; }
}
@media (max-width: 720px) {
  .cabecera__fila { flex-wrap: wrap; min-height: 76px; gap: 0; }
  .cabecera__boton { display: block; }
  .menu { display: none; flex-direction: column; gap: 0; width: 100%; padding-bottom: 12px; }
  .menu.abierto { display: flex; }
  .menu a { padding: 13px 0; border-top: 1px solid #ececec; }
  .portada::before { background: rgba(0, 0, 0, .78); opacity: 1; }
  .portada__texto { padding: 48px 0 56px; }
  .portada__sobre { font-size: 14px; }
  .boton { padding: 18px 22px; letter-spacing: 2px; font-size: 15px; }
  .portada__botones .boton { width: 100%; }
  .cifras__lista { grid-template-columns: 1fr; }
  .formulario { grid-template-columns: 1fr; }
  .campo--mitad { grid-column: 1 / -1; }
  .datos li { font-size: 16px; }
  .banda { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
