/*
Theme Name: Canet
Description: Tema de la Clínica Dental Canet & Canet. Muestra las páginas creadas con el editor visual (plugin Canet Editor) y el blog.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: canet
*/

@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-display: swap; font-weight: 400;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --rojo: #df2a30;
  --rojo-texto: #b81f26;
  --rojo-hover: #c4232a;
  --tinta: #17191c;
  --suave: #4a4f57;
  --suave2: #6b7078;
  --arena: #f4f1ec;
  --crema: #faf8f5;
  --tostado: #efe7df;
  --gris-calido: #f4f1ec;
  --linea: rgba(23, 25, 28, .12);
  --linea-clara: rgba(255, 255, 255, .18);
  --serif: "Instrument Serif", Georgia, serif;
  --cab-h: 94px;
  --curva: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: Manrope, Helvetica, Arial, sans-serif; color: var(--tinta);
  background: #fff; font-size: 17px; line-height: 1.55; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--rojo-texto); }
a:hover { color: #8e151b; }
:focus-visible { outline: 3px solid #1b5e9a; outline-offset: 2px; }
[id] { scroll-margin-top: 110px; }

.contenedor { max-width: 1264px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.fila { display: flex; flex-wrap: wrap; }
.serif { font-family: var(--serif); font-weight: 400; }
.saltar { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 16px; z-index: 100; }
.saltar:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Piezas comunes */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.3;
  padding: 16px 28px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn--rojo { background: var(--rojo); color: #fff; }
.btn--rojo:hover { background: var(--rojo-hover); color: #fff; }
.btn--borde { background: #fff; color: var(--tinta); border-color: rgba(23, 25, 28, .2); }
.btn--borde:hover { background: #f4f0ea; color: var(--tinta); }
.btn--claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--peq { padding: 13px 22px; font-size: 16px; }
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton { display: inline-block; background: var(--rojo); color: #fff; text-decoration: none; font-weight: 600; padding: 16px 28px; border-radius: 12px; }
.boton:hover { color: #fff; background: var(--rojo-hover); }

.etq { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--suave); }
.etq::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--rojo); flex: 0 0 8px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: .94; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 68px); line-height: .98; letter-spacing: -.01em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.05; }
.entradilla { font-size: clamp(18px, 1.5vw, 20px); color: #3a3f46; max-width: 540px; }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--suave2); }
.migas a { color: var(--suave2); text-decoration: none; }
.migas a:hover { color: var(--tinta); }
.migas [aria-current] { color: var(--tinta); font-weight: 500; }

.sec { padding: 96px 0; position: relative; }
.sec--blanca { background: #fff; }
.sec--arena { background: var(--arena); }
.sec--crema { background: var(--crema); }
.sec--oscura { background: var(--tinta); color: #fff; }
.sec--oscura .etq, .sec--oscura .gris { color: #c9ccd1; }
.gris { color: var(--suave); }
.sec-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 56px; }
.sec-cab > div:first-child { display: grid; gap: 12px; max-width: 760px; }
.sec-cab--centro { justify-content: center; text-align: center; }
.sec-cab--centro > div:first-child { justify-items: center; }
.foto-hueco {
  background: var(--tostado); display: flex; align-items: center; justify-content: center;
  color: #6b5f52; font-size: 15px; text-align: center; padding: 24px; width: 100%; height: 100%; min-height: 160px;
}
.cubre { width: 100%; height: 100%; object-fit: cover; display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DF2A30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
}
.sec--oscura .check::before, .oscuro .check::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
}
.lista-limpia { list-style: none; margin: 0; padding: 0; }

/* Entradas animadas (solo con JavaScript activo) */
@keyframes entra { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js [data-rev] { opacity: 0; }
.js [data-rev].visto { animation: entra .7s var(--curva) forwards; }
.js [data-rev="2"].visto { animation-delay: .12s; }
.js [data-rev="3"].visto { animation-delay: .24s; }
.js [data-rev="4"].visto { animation-delay: .36s; }

/* Sobrecabecera y cabecera */
.sobre { background: var(--tinta); color: #fff; font-size: 14px; }
.sobre .contenedor { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.sobre a { color: #fff; text-decoration: none; transition: opacity .15s ease; display: inline-flex; align-items: center; gap: 8px; }
.sobre a:hover { opacity: .72; }
.sobre-tel { display: flex; gap: 20px; font-variant-numeric: tabular-nums; }
.sobre-tel a:last-child { font-weight: 600; }
.cab-hueco { height: var(--cab-h); position: relative; z-index: 40; }
.cab { position: relative; background: transparent; transition: background-color .2s ease; }
.cab.abierta { background: #fff; }
@keyframes baja { from { transform: translateY(-100%); } to { transform: none; } }
.cab.fija { position: fixed; top: 0; left: 0; right: 0; background: #fff; box-shadow: 0 6px 24px rgba(23, 25, 28, .10); animation: baja .3s ease; }
.admin-bar .cab.fija { top: 32px; }
.cab-fila { height: var(--cab-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .2s ease; }
.cab.fija .cab-fila { height: 72px; }
.cab-logo { display: flex; align-items: center; }
.cab-logo img { display: block; height: 62px; width: auto; transition: height .2s ease; }
.cab.fija .cab-logo img { height: 48px; }
.cab-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; }
.cab-nav a, .cab-mega-boton {
  color: var(--tinta); text-decoration: none; padding: 12px 0; font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 8px;
  background: none; border: 0; border-bottom: 2px solid transparent; font-family: inherit; cursor: pointer; transition: color .15s ease;
}
.cab-nav a:hover, .cab-mega-boton:hover { color: var(--rojo-texto); }
.cab-nav .actual > a, .cab-nav .actual > .cab-mega-boton, .cab-mega-boton[aria-expanded="true"] { color: var(--rojo-texto); font-weight: 600; border-bottom-color: var(--rojo); }
.cab-mega-boton svg { transition: transform .2s ease; }
.cab-mega-boton[aria-expanded="true"] svg { transform: rotate(180deg); }
.cab-acciones { display: flex; align-items: center; gap: 12px; }
.cab-movil { display: none; border: 1px solid rgba(23, 25, 28, .2); background: #fff; color: var(--tinta); border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.cab-tel { display: none; color: var(--tinta); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.cab.fija .cab-tel { display: inline; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 24px 48px rgba(23, 25, 28, .12); }
.mega[hidden] { display: none; }
@keyframes mega-abre { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega:not([hidden]) { animation: mega-abre .22s ease; }
.mega-cuerpo { display: grid; grid-template-columns: repeat(3, 1fr) 320px; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.mega-grupo h2 { font-size: 14px; font-weight: 600; color: var(--suave2); margin-bottom: 12px; }
.mega-grupo a { display: block; text-decoration: none; color: var(--tinta); padding: 9px 12px; margin: 0 -12px; border-radius: 12px; transition: background-color .15s ease; }
.mega-grupo a:hover { background: var(--arena); color: var(--tinta); }
.mega-grupo a span { display: block; }
.mega-grupo a span:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.mega-grupo a span + span { font-size: 14px; color: var(--suave2); }
.mega-caja { background: var(--tinta); color: #fff; border-radius: 24px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.mega-caja p:first-child { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.mega-caja p + p { color: #c9ccd1; font-size: 16px; }
.mega-caja .enlace { color: #fff; font-weight: 600; font-size: 15px; }
.mega-movil { display: none; }

@media (max-width: 1040px) {
  .cab-movil { display: inline-block; }
  .cab-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 24px 48px rgba(23, 25, 28, .12); padding: 8px 24px 24px; max-height: calc(100vh - 140px); overflow: auto; }
  .cab-nav.abierto { display: block; }
  .cab-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .cab-nav li { border-bottom: 1px solid var(--linea); }
  .cab-nav a { padding: 16px 0; border-bottom: 0; }
  .cab-mega-boton { display: none; }
  .mega { display: none !important; }
  .mega-movil { display: flex; }
  .cab:has(.cab-nav.abierto) { background: #fff; }
  .cab-acciones .btn { padding: 12px 16px; font-size: 15px; }
}
@media (min-width: 1041px) { .cab-nav .solo-movil { display: none; } }
@media (max-width: 560px) {
  :root { --cab-h: 76px; }
  .cab-logo img { height: 46px; }
  .sobre-mail { display: none !important; }
  .sobre .contenedor { justify-content: center; }
}

/* Portadas: suben por debajo de la cabecera transparente */
.hero { margin-top: calc(-1 * var(--cab-h)); padding-top: var(--cab-h); position: relative; overflow: hidden; }
.hero-cuerpo { display: grid; gap: 26px; align-content: center; justify-items: start; }

.hero-inicio { min-height: min(860px, 100vh); display: flex; align-items: center; background: var(--crema); }
.hero-inicio-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero-inicio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 248, 245, .97) 0%, rgba(250, 248, 245, .9) 34%, rgba(250, 248, 245, 0) 66%), linear-gradient(180deg, rgba(250, 248, 245, .8) 0, rgba(250, 248, 245, 0) 180px); }
.hero-inicio .contenedor { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 72px; }
.hero-inicio .hero-cuerpo { max-width: 590px; }
.hero-inicio .h1 { font-size: clamp(52px, 7.6vw, 108px); }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 500; color: #3a3f46; margin-top: 10px; }

.hero-trat { background: #fff; }
.hero-trat .contenedor { padding-top: 64px; padding-bottom: 72px; }
.hero-trat .hero-cuerpo, .hero-trat .ficha { position: relative; z-index: 2; }
.hero-trat .hero-cuerpo { max-width: 580px; min-height: 460px; }
.hero-trat-foto { position: absolute; right: 0; top: 0; bottom: 0; width: 51%; background: #eef0f2; }
.hero-trat-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .6) 12%, rgba(255, 255, 255, 0) 30%), linear-gradient(180deg, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 170px); }
.ficha { margin: 56px 0 0; background: var(--tinta); color: #fff; border-radius: 24px; padding: 28px 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); box-shadow: 0 24px 56px rgba(15, 16, 18, .22); }
.ficha > div { padding: 6px 28px; border-left: 1px solid var(--linea-clara); display: grid; gap: 6px; align-content: start; }
.ficha > div:first-child { border-left: 0; }
.ficha dt { font-size: 14px; font-weight: 600; color: #c9ccd1; }
.ficha dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; }

.hero-equipo { background: var(--crema); }
.hero-equipo .contenedor { display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 640px); justify-content: space-between; gap: 40px; align-items: stretch; }
.hero-equipo .hero-cuerpo { padding: 72px 0 96px; }
.marquesina { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; height: 760px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 86%, transparent 100%); }
@keyframes sube { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.marquesina-pista { animation: sube 46s linear infinite; will-change: transform; }
.marquesina-col:nth-child(2) .marquesina-pista { animation-direction: reverse; animation-duration: 54s; }
.marquesina-col:nth-child(3) .marquesina-pista { animation-duration: 62s; }
.marquesina:hover .marquesina-pista { animation-play-state: paused; }
.marquesina-foto { aspect-ratio: 200 / 260; border-radius: 20px; overflow: hidden; background: var(--tostado); margin-bottom: 20px; }
.bajar { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--suave2); margin-top: 16px; }
@keyframes bota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.bajar span { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(23, 25, 28, .22); display: flex; align-items: center; justify-content: center; color: var(--tinta); animation: bota 1.8s ease-in-out infinite; }

.hero-clinica { background: var(--crema); }
.hero-clinica .hero-cuerpo { justify-items: center; text-align: center; max-width: 1000px; margin: 0 auto; padding: 40px 0 56px; gap: 20px; }
.hero-clinica .entradilla { max-width: 640px; }
.tira { display: flex; gap: 20px; align-items: flex-end; height: 400px; }
.tira > div { flex: 1 1 0; min-width: 0; height: 80%; border-radius: 28px 28px 0 0; overflow: hidden; background: var(--tostado); }
.tira > div:nth-child(2), .tira > div:nth-child(3) { flex: 1.25 1 0; height: 100%; }
.tira img { transition: transform .6s ease; }
.tira > div:hover img { transform: scale(1.05); }

.hero-simple { background: var(--crema); }
.hero-simple .contenedor { padding-top: 56px; padding-bottom: 72px; }
.hero-simple .hero-cuerpo { max-width: 820px; gap: 20px; }
.hero-simple .h1 { font-size: clamp(44px, 6vw, 80px); }

/* Home: tratamientos destacados */
.td { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: stretch; }
.td-lista { display: flex; flex-direction: column; border-bottom: 1px solid var(--linea-clara); }
.td-tab {
  flex: 1 1 auto; background: none; border: 0; border-top: 1px solid var(--linea-clara); color: #9499a1; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05; text-align: left; padding: 18px 0; cursor: pointer; display: flex; align-items: center; gap: 16px; transition: color .2s ease, padding-left .25s var(--curva);
}
.td-tab::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: transparent; flex: 0 0 10px; transition: background-color .2s ease; }
.td-tab:hover { color: #fff; }
.td-tab[aria-selected="true"] { color: #fff; padding-left: 8px; }
.td-tab[aria-selected="true"]::before { background: var(--rojo); }
.td-todos { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.td-panel { display: none; position: relative; border-radius: 28px; overflow: hidden; min-height: 560px; background: #23262b; }
.td-panel.activo { display: block; animation: entra .5s var(--curva); }
.td-panel > img { position: absolute; inset: 0; }
.td-tarjeta { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 440px; background: #fff; color: var(--tinta); border-radius: 20px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgba(15, 16, 18, .25); }
.td-tarjeta .gris { color: var(--suave); }
.td-tarjeta ul { display: grid; gap: 8px; font-size: 16px; }
.td-tarjeta .enlace { font-weight: 600; text-decoration: none; }

/* Home: la clínica */
.cr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.cr-texto { display: grid; gap: 20px; justify-items: start; }
.cr-datos { margin: 8px 0; width: 100%; }
.cr-datos > div { border-top: 1px solid var(--linea); padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.cr-datos > div:last-child { border-bottom: 1px solid var(--linea); }
.cr-datos dt { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.cr-datos dd { margin: 0; color: var(--suave); font-size: 16px; align-self: center; }
.collage { position: relative; aspect-ratio: 1 / 1; }
.collage::before { content: ""; position: absolute; right: 0; top: 8%; width: 62%; height: 72%; background: var(--rojo); border-radius: 28px; }
.collage div { position: absolute; border-radius: 24px; overflow: hidden; background: var(--tostado); box-shadow: 0 16px 40px rgba(23, 25, 28, .14); }
.collage div:nth-child(1) { left: 0; top: 0; width: 60%; height: 54%; }
.collage div:nth-child(2) { right: 6%; top: 26%; width: 52%; height: 44%; border: 6px solid var(--crema); }
.collage div:nth-child(3) { left: 10%; bottom: 0; width: 58%; height: 36%; }

/* Home: equipo en acordeón */
.acordeon { display: flex; gap: 12px; height: 500px; margin-bottom: 40px; }
.acordeon-panel { flex: 1 1 0; min-width: 0; position: relative; border-radius: 24px; overflow: hidden; background: var(--tostado); transition: flex-grow .5s var(--curva); }
.acordeon-panel img { object-position: center 15%; }
.acordeon-info { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 16px; padding: 20px 22px; display: grid; gap: 6px; box-shadow: 0 10px 28px rgba(23, 25, 28, .12); opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .4s var(--curva); min-width: 260px; }
.acordeon-info .cargo { font-size: 15px; font-weight: 600; color: var(--rojo-texto); }
.acordeon-info .bio { font-size: 15px; color: var(--suave); }
.acordeon-panel:hover, .acordeon-panel:focus-visible, .acordeon:not(:hover):not(:focus-within) .acordeon-panel.inicial { flex-grow: 3.4; }
.acordeon-panel:hover .acordeon-info, .acordeon-panel:focus-visible .acordeon-info, .acordeon:not(:hover):not(:focus-within) .acordeon-panel.inicial .acordeon-info { opacity: 1; transform: none; transition-delay: .15s; }
.centro { display: flex; justify-content: center; }

/* Pedir cita */
.cita-banda { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: var(--tinta); padding: 72px 24px 150px; overflow: hidden; }
.cita-banda > img { position: absolute; inset: 0; }
.cita-banda::after { content: ""; position: absolute; inset: 0; background: rgba(15, 16, 18, .58); }
.cita-banda > div { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: center; max-width: 860px; }
.cita-banda .etq { color: #fff; }
.cita-banda .tel { color: #fff; font-size: 18px; }
.cita-banda .tel a { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.cita-cuerpo { background: var(--crema); padding-bottom: 88px; }
.cita-form { position: relative; z-index: 3; margin-top: -90px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 24px 56px rgba(23, 25, 28, .14); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--suave); }
.campo input, .campo select { height: 54px; border: 1px solid rgba(23, 25, 28, .28); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--tinta); width: 100%; }
.cita-form .btn { height: 54px; padding-top: 0; padding-bottom: 0; }
.cita-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--suave); }
.cita-legal label { display: flex; gap: 10px; align-items: flex-start; }
.cita-legal input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; }
.cita-trampa { position: absolute; left: -9999px; }
.cita-estado { font-weight: 600; color: var(--tinta); }
.cita-info { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; margin-top: 64px; }
.cita-info h3 { margin-bottom: 14px; }
.cita-info a { color: var(--tinta); }
.horario { margin: 0; }
.horario > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--linea); font-size: 16px; }
.horario dt { font-weight: 600; }
.horario dd { margin: 0; color: var(--suave); text-align: right; }
.cita-contacto { display: grid; gap: 6px; justify-items: start; }
.cita-contacto .grande { font-family: var(--serif); font-size: 34px; line-height: 1.1; text-decoration: none; font-variant-numeric: tabular-nums; }
.pre { white-space: pre-line; }

/* Tratamiento: qué es */
.anclas { background: #fff; border-bottom: 1px solid var(--linea); position: relative; z-index: 3; }
.anclas .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.anclas nav { display: flex; gap: 36px; overflow-x: auto; font-size: 16px; font-weight: 500; }
.anclas nav a { color: var(--suave2); text-decoration: none; padding: 20px 0; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s ease; }
.anclas nav a:hover { color: var(--tinta); }
.anclas nav a:first-child { color: var(--tinta); font-weight: 600; border-bottom-color: var(--rojo); }
.anclas .cta { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 16px; }
.que-cab { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 32px 88px; margin-bottom: 64px; }
.que-cab > div { display: grid; gap: 12px; align-content: start; }
.que-cab .txt { gap: 18px; padding-top: 34px; }
.que-cab .txt p:first-child { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.que-cab .txt p + p { color: var(--suave); }
.partes { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.parte { flex: 1 1 220px; min-width: 0; background: #fff; border-radius: 24px; padding: 12px 12px 24px; display: grid; gap: 8px; align-content: start; transition: transform .18s ease, box-shadow .18s ease; }
.parte:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 25, 28, .08); }
.parte-foto { height: 152px; border-radius: 16px; overflow: hidden; background: #eef0f2; }
.parte h3 { margin: 12px 16px 0; }
.parte p { margin: 0 16px; font-size: 16px; color: var(--suave); }
.caja-oscura { flex: 1.3 1 280px; min-width: 0; background: var(--tinta); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.caja-oscura h3 { font-size: 36px; }
.caja-oscura ul { display: grid; gap: 12px; font-size: 16px; color: #e6e8eb; }
.caja-oscura .btn { margin-top: auto; }

/* Tratamiento: paso a paso */
.datos-caja { margin: 0; display: flex; flex-wrap: wrap; border: 1px solid var(--linea-clara); border-radius: 16px; }
.datos-caja > div { padding: 16px 24px; display: grid; gap: 2px; border-left: 1px solid var(--linea-clara); }
.datos-caja > div:first-child { border-left: 0; }
.datos-caja dt { font-size: 14px; color: #c9ccd1; }
.datos-caja dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 64px; }
.paso { display: grid; gap: 24px; align-content: start; padding-right: 32px; }
.paso-cab { display: flex; align-items: center; }
.paso-cab::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255, 255, 255, .28); margin-right: -32px; }
.paso:last-child .paso-cab::after { display: none; }
.paso-nodo { flex: 0 0 56px; height: 56px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; transition: background-color .18s ease, border-color .18s ease; }
.paso:hover .paso-nodo { background: var(--rojo); border-color: var(--rojo); }
.paso-txt { display: grid; gap: 10px; }
.paso-momento { font-size: 14px; font-weight: 600; color: #ff8a8e; }
.paso-txt p:last-child { font-size: 16px; color: #c9ccd1; }
.nota { background: #23262b; border-radius: 24px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.nota > div { display: grid; gap: 4px; flex: 1 1 420px; }
.nota p { font-size: 16px; color: #c9ccd1; }

/* Tratamiento: qué cambia */
.cambia { display: grid; grid-template-columns: minmax(0, 1fr) 340px minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 48px; }
.cambia-col { border-radius: 28px; padding: 32px; display: grid; gap: 8px; align-content: start; background: var(--tostado); }
.cambia-col.despues { background: var(--tinta); color: #fff; }
.cambia-col .cuando { font-size: 14px; font-weight: 600; color: #6b5f52; }
.cambia-col.despues .cuando { color: #ff8a8e; }
.cambia-col h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin-bottom: 12px; }
.cambia-col li { border-top: 1px solid rgba(23, 25, 28, .14); padding: 14px 0; display: flex; align-items: flex-start; gap: 12px; color: #3a3f46; }
.cambia-col.despues li { border-top-color: var(--linea-clara); color: #e6e8eb; }
.cambia-col.antes li::before { content: ""; flex: 0 0 12px; height: 2px; background: #9a8f82; margin-top: 12px; }
.cambia-foto { border-radius: 28px; overflow: hidden; background: #eef0f2; position: relative; min-height: 320px; }
.cambia-foto img { transition: transform .5s ease; }
.cambia-foto:hover img { transform: scale(1.03); }
.cambia-foto span { position: absolute; left: 50%; bottom: 20px; margin-left: -28px; width: 56px; height: 56px; border-radius: 999px; background: var(--rojo); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 20px rgba(23, 25, 28, .25); }
.trio { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid rgba(23, 25, 28, .14); }
.trio > div { padding: 24px 32px 0; border-left: 1px solid rgba(23, 25, 28, .14); display: grid; gap: 6px; align-content: start; }
.trio > div:first-child { padding-left: 0; border-left: 0; }
.trio dt { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.trio dd { margin: 0; font-size: 16px; color: var(--suave); }

/* Tratamiento: casos con comparador */
.caso { display: grid; grid-template-columns: minmax(0, 776fr) minmax(0, 376fr); gap: 64px; align-items: stretch; }
.caso + .caso { margin-top: 64px; }
.comparar { position: relative; aspect-ratio: 776 / 500; border-radius: 28px; overflow: hidden; background: var(--tostado); --pos: 50%; }
.comparar > img, .comparar-antes { position: absolute; inset: 0; }
.comparar-antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.comparar .chip { position: absolute; top: 20px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.comparar .chip.a { left: 20px; background: var(--tinta); color: #fff; }
.comparar .chip.d { right: 20px; background: #fff; color: var(--tinta); }
.comparar input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparar-linea { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.comparar-linea span { position: absolute; left: -25px; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--tinta); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 6px 18px rgba(23, 25, 28, .22); }
.caso-ficha { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.caso-ficha dl { margin: 0; width: 100%; }
.caso-ficha dl > div { border-top: 1px solid var(--linea); padding: 14px 0; display: grid; gap: 2px; }
.caso-ficha dl > div:last-child { border-bottom: 1px solid var(--linea); }
.caso-ficha dt { font-size: 14px; font-weight: 600; color: var(--suave2); }
.caso-ficha dd { margin: 0; font-size: 16px; }
.caso-ficha .aviso { font-size: 14px; color: var(--suave2); }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 728px); justify-content: space-between; gap: 48px; }
.faq-lado { display: flex; flex-direction: column; gap: 12px; }
.faq-caja { margin-top: auto; background: var(--arena); border-radius: 24px; padding: 28px; display: grid; gap: 14px; justify-items: start; }
.faq-caja p { font-size: 16px; color: var(--suave); }
.faq-caja .tel { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--tinta); text-decoration: none; font-variant-numeric: tabular-nums; }
.faq-caja .tel:hover { color: var(--rojo-texto); }
.faq-lista { border-bottom: 1px solid rgba(23, 25, 28, .14); align-self: start; }
.faq-lista details { border-top: 1px solid rgba(23, 25, 28, .14); }
.faq-lista summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 20px; font-weight: 600; transition: color .15s ease; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista summary:hover { color: var(--rojo-texto); }
.faq-lista summary::after { content: "+"; flex: 0 0 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(23, 25, 28, .22); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; line-height: 1; transition: background-color .15s ease, color .15s ease; }
.faq-lista summary:hover::after { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.faq-lista details[open] summary::after { content: "−"; }
.faq-lista details p { padding: 0 84px 24px 0; color: var(--suave); animation: entra .35s var(--curva); }

/* Enlaces a otros tratamientos y listado */
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tarjeta { background: #fff; border-radius: 24px; padding: 28px; text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; gap: 8px; transition: transform .18s ease, box-shadow .18s ease; }
.sec--blanca .tarjeta { background: var(--arena); }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(23, 25, 28, .10); color: var(--tinta); }
.tarjeta .txt { font-size: 16px; color: var(--suave); }
.tarjeta .ir { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 600; color: var(--rojo-texto); }
.grupo + .grupo { margin-top: 72px; }
.grupo > h2 { margin-bottom: 28px; font-size: clamp(34px, 4vw, 48px); }

/* Equipo: quién es quién */
.quien { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 400fr) minmax(0, 264fr); gap: 56px; align-items: stretch; }
.quien-fotos { display: grid; border-radius: 28px; overflow: hidden; background: var(--tostado); aspect-ratio: 440 / 560; }
.quien-fotos img { grid-area: 1 / 1; object-position: center 15%; opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform .9s var(--curva); }
.quien-fotos img.activo { opacity: 1; transform: none; }
.quien-fichas { display: grid; }
.quien-ficha { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; opacity: 0; transform: translateY(18px); pointer-events: none; visibility: hidden; transition: opacity .45s ease, transform .55s var(--curva), visibility 0s .45s; }
.quien-ficha.activo { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.quien-ficha .cargo { font-size: 15px; font-weight: 600; color: var(--rojo-texto); }
.quien-ficha .nombre { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: .98; letter-spacing: -.01em; }
.quien-ficha .bio { font-size: 18px; color: #3a3f46; }
.quien-ficha dl { margin: 8px 0 0; width: 100%; }
.quien-ficha dl > div { border-top: 1px solid var(--linea); padding: 14px 0; display: grid; gap: 2px; }
.quien-ficha dl > div:last-child { border-bottom: 1px solid var(--linea); }
.quien-ficha dt { font-size: 14px; font-weight: 600; color: var(--suave2); }
.quien-ficha dd { margin: 0; font-size: 16px; }
.quien-ficha .btn { margin-top: auto; }
.quien-lista { display: flex; flex-direction: column; gap: 8px; justify-content: space-between; }
.quien-tab { border: 0; border-radius: 16px; padding: 14px; background: transparent; display: flex; align-items: center; gap: 14px; cursor: pointer; font: inherit; color: inherit; text-align: left; transition: background-color .18s ease, transform .18s ease; }
.quien-tab:hover { background: var(--arena); transform: translateX(-4px); }
.quien-tab[aria-selected="true"] { background: var(--arena); }
.quien-tab .mini { flex: 0 0 56px; height: 56px; border-radius: 999px; overflow: hidden; background: var(--tostado); box-shadow: 0 0 0 2px transparent; transition: box-shadow .18s ease; }
.quien-tab[aria-selected="true"] .mini { box-shadow: 0 0 0 2px var(--rojo); }
.quien-tab .mini img { object-position: center 15%; }
.quien-tab .t { min-width: 0; display: grid; }
.quien-tab .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quien-tab .t span:first-child { font-size: 16px; font-weight: 600; }
.quien-tab .t span + span { font-size: 14px; color: var(--suave2); }

/* Equipo: cómo trabajamos */
.cinta { overflow: hidden; margin-bottom: 64px; }
@keyframes corre { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.cinta-pista { display: flex; width: max-content; white-space: nowrap; font-family: var(--serif); font-size: clamp(64px, 8vw, 112px); line-height: 1.15; color: rgba(255, 255, 255, .16); animation: corre 48s linear infinite; will-change: transform; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
.cinta-pista span { display: flex; align-items: center; }
.cinta-pista i { width: 14px; height: 14px; border-radius: 999px; background: var(--rojo); margin: 0 40px; }
.ct { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 568fr); gap: 88px; align-items: stretch; }
.ct-texto { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ct-texto .gris { font-size: 18px; max-width: 500px; }
.ct-datos { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; width: 100%; }
.ct-dato { border: 1px solid var(--linea-clara); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; transition: border-color .18s ease, transform .18s ease; }
.ct-dato:hover { border-color: var(--rojo); transform: translateY(-2px); }
.ct-dato span:first-child { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.ct-dato span + span { font-size: 15px; color: #c9ccd1; }
.ct-foto { position: relative; border-radius: 28px; overflow: hidden; background: #23262b; min-height: 480px; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.ct-foto img, .lento img { animation: zoom 14s ease-in-out infinite alternate; }
.ct-chip { position: absolute; left: 20px; bottom: 20px; right: 20px; width: fit-content; background: #fff; color: var(--tinta); border-radius: 16px; padding: 16px 20px; display: grid; gap: 2px; box-shadow: 0 10px 28px rgba(15, 16, 18, .25); }
.ct-chip span:first-child { font-size: 14px; color: var(--suave2); }
.ct-chip span + span { font-weight: 600; font-size: 16px; }

/* Clínica: recorrido y tecnología */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 265px; gap: 20px; }
.bento-celda { position: relative; border-radius: 24px; overflow: hidden; background: var(--tostado); }
.bento-celda:nth-child(1) { grid-column: span 2; grid-row: span 2; border-radius: 28px; }
.bento-celda:nth-child(4) { grid-column: span 2; }
.bento-celda > img { position: absolute; inset: 0; transition: transform .7s var(--curva); }
.bento-celda:hover > img { transform: scale(1.06); }
.bento-pie { position: absolute; left: 12px; bottom: 12px; max-width: min(360px, calc(100% - 24px)); background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 28px rgba(23, 25, 28, .14); }
.bento-pie p:first-child { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.bento-celda:nth-child(1) .bento-pie p:first-child { font-size: 28px; }
.bento-pie p + p { font-size: 14px; color: var(--suave); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease; }
.bento-celda:hover .bento-pie p + p, .bento-celda:focus-visible .bento-pie p + p { max-height: 90px; opacity: 1; margin-top: 4px; }
.tec { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 688fr); gap: 88px; align-items: stretch; }
.tec-lado { display: flex; flex-direction: column; gap: 12px; }
.tec-foto { margin-top: auto; height: 280px; border-radius: 24px; overflow: hidden; background: #23262b; }
.tec-filas { display: flex; flex-direction: column; border-bottom: 1px solid var(--linea-clara); }
.tec-fila { flex: 1 1 auto; border-top: 1px solid var(--linea-clara); display: flex; align-items: center; gap: 28px; color: #fff; text-decoration: none; padding: 28px 8px 28px 0; transition: padding-left .25s var(--curva), background-color .2s ease; }
.tec-fila:hover { padding-left: 20px; background: rgba(255, 255, 255, .05); color: #fff; }
.tec-num { flex: 0 0 48px; font-family: var(--serif); font-size: 28px; color: #9499a1; transition: color .2s ease; }
.tec-fila:hover .tec-num { color: #ff6b70; }
.tec-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.tec-txt span:first-child { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.02; }
.tec-txt span + span { font-size: 16px; color: #c9ccd1; }
.tec-ir { flex: 0 0 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background-color .2s ease, border-color .2s ease, transform .25s ease; }
.tec-fila:hover .tec-ir { background: var(--rojo); border-color: var(--rojo); transform: translateX(4px); }

/* Texto corrido (páginas legales) */
.prosa { max-width: 760px; display: grid; gap: 18px; }
.prosa h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; }
.prosa p { color: #343840; white-space: pre-line; }

/* Pie */
.pie { background: var(--tinta); color: #fff; font-size: 16px; }
.pie-fila { display: grid; grid-template-columns: 280px 190px 280px minmax(0, 1fr); gap: 48px 56px; padding-top: 64px; padding-bottom: 48px; }
.pie-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.pie-col.marca { gap: 18px; }
.pie-col.marca img { height: 62px; width: auto; display: block; }
.pie-col p, .pie-col a { color: #c9ccd1; }
.pie-col a { text-decoration: none; transition: color .15s ease; }
.pie-col a:hover { color: #fff; }
.pie-col a.fuerte { color: #fff; font-weight: 600; }
.pie-col .btn { color: #fff; margin-top: 12px; }
.pie-titulo { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 6px; }
.pie-col ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.pie-col.ancha ul { columns: 2 160px; column-gap: 24px; }
.pie-col.ancha li { padding: 5px 0; break-inside: avoid; }
.pie-legal { background: #0f1012; color: #9499a1; font-size: 14px; }
.pie-legal .contenedor { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.pie-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.pie-legal a { color: #9499a1; text-decoration: none; transition: color .15s ease; }
.pie-legal a:hover { color: #fff; }

/* Adaptación a tableta y móvil */
@media (max-width: 1040px) {
  .sec { padding: 72px 0; }
  .sec-cab { margin-bottom: 40px; }
  .td, .cr, .faq, .tec, .ct, .caso, .que-cab { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .que-cab .txt { padding-top: 0; }
  .td-tab { padding: 14px 0; }
  .td-panel { min-height: 460px; }
  .collage { max-width: 560px; }
  .hero-trat-foto { position: relative; width: auto; height: 320px; margin: 40px -24px 0; }
  .hero-trat-foto::after { display: none; }
  .hero-trat .hero-cuerpo { min-height: 0; }
  .hero-trat .contenedor { padding-top: 40px; padding-bottom: 56px; }
  .ficha { margin-top: -40px; position: relative; }
  .hero-equipo .contenedor { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-equipo .hero-cuerpo { padding: 40px 0 40px; }
  .marquesina { height: 380px; }
  .cambia { grid-template-columns: minmax(0, 1fr); }
  .cambia-foto { min-height: 260px; order: -1; }
  .quien { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .quien-lista { grid-column: 1 / -1; order: -1; flex-direction: row; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
  .quien-tab { flex: 0 0 auto; }
  .quien-tab:hover { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .cita-form { grid-template-columns: 1fr 1fr; }
  .cita-info { grid-template-columns: 1fr 1fr; }
  .pie-fila { grid-template-columns: 1fr 1fr; }
  .mega-cuerpo { grid-template-columns: 1fr; }
  .faq-caja { margin-top: 16px; }
  .tec-foto { margin-top: 16px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .sec { padding: 56px 0; }
  .hero-inicio { min-height: 0; }
  .hero-inicio::after { background: rgba(250, 248, 245, .88); }
  .hero-inicio .contenedor { padding-top: 40px; padding-bottom: 56px; }
  .btn { padding: 15px 22px; font-size: 16px; }
  .acordeon { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .acordeon-panel, .acordeon-panel:hover, .acordeon:not(:hover):not(:focus-within) .acordeon-panel.inicial { flex: 0 0 78%; height: 420px; scroll-snap-align: start; }
  .acordeon-info { opacity: 1 !important; transform: none !important; min-width: 0; }
  .tira { height: 260px; gap: 12px; }
  .tira > div:nth-child(1), .tira > div:nth-child(4) { display: none; }
  .paso { padding-right: 0; grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 28px; }
  .paso-cab::after { display: none; }
  .pasos { grid-template-columns: 1fr; margin-bottom: 36px; }
  .trio > div { padding-left: 0; border-left: 0; padding-bottom: 8px; }
  .quien { grid-template-columns: minmax(0, 1fr); }
  .quien-fotos { max-height: 420px; aspect-ratio: auto; height: 420px; }
  .bento { grid-template-columns: 1fr; }
  .bento-celda:nth-child(1), .bento-celda:nth-child(4) { grid-column: auto; grid-row: auto; }
  .bento-pie p + p { max-height: 90px; opacity: 1; margin-top: 4px; }
  .tec-fila { gap: 16px; padding: 22px 0; }
  .tec-num { flex-basis: 36px; }
  .tec-ir { display: none; }
  .cita-form, .cita-info, .pie-fila { grid-template-columns: 1fr; }
  .cita-info { gap: 36px; margin-top: 48px; }
  .cita-banda { min-height: 380px; padding-bottom: 130px; }
  .faq-lista summary { font-size: 18px; }
  .faq-lista details p { padding-right: 0; }
  .ficha { padding: 12px 0; }
  .ficha > div { border-left: 0; border-top: 1px solid var(--linea-clara); padding: 16px 24px; }
  .ficha > div:first-child { border-top: 0; }
  .datos-caja > div { border-left: 0; }
  .anclas .cta { display: none; }
  .cinta { margin-bottom: 40px; }
  .ct-foto { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-rev] { opacity: 1; }
}

/* Texto de entradas del blog y páginas normales */
.entrada { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.entrada > * + * { margin-top: 1.1em; }
.entrada h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.01em; }
.entrada h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin-top: 1.8em; }
.entrada h3 { font-size: 23px; line-height: 1.25; margin-top: 1.6em; }
.entrada p, .entrada li { color: #343840; }
.entrada ul, .entrada ol { padding-left: 24px; }
.entrada li + li { margin-top: 0.4em; }
.entrada img { height: auto; border-radius: 24px; }
.entrada figure { margin-left: 0; margin-right: 0; }
.entrada figcaption { font-size: 14px; color: #5a5f66; margin-top: 8px; }
.entrada blockquote { margin-left: 0; margin-right: 0; padding-left: 20px; border-left: 3px solid var(--linea); color: var(--suave); }
.entrada table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entrada th, .entrada td { border: 1px solid var(--linea); padding: 10px 12px; text-align: left; }
.entrada-meta { font-size: 15px; color: #5a5f66; }
.entrada-imagen img { width: 100%; }

/* Listado del blog */
.blog-cabecera { background: var(--crema); margin-top: calc(-1 * var(--cab-h)); padding-top: var(--cab-h); }
.blog-cabecera .contenedor { padding-top: 64px; padding-bottom: 64px; }
.blog-cabecera h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 80px); line-height: .96; letter-spacing: -0.01em; }
.blog-cabecera p { margin-top: 14px; font-size: 20px; color: var(--suave); max-width: 640px; }
.blog-lista { padding-top: 64px; padding-bottom: 80px; display: grid; gap: 40px; }
.blog-rejilla { gap: 24px; }
.tarjeta-entrada { flex: 1 1 300px; max-width: 420px; text-decoration: none; color: var(--tinta); border: 1px solid var(--linea); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.tarjeta-entrada:hover { color: var(--tinta); border-color: #b9b3ab; }
.tarjeta-entrada img, .tarjeta-entrada .foto-hueco { width: 100%; height: 190px; object-fit: cover; display: block; border-radius: 0; }
.tarjeta-cuerpo { padding: 24px; display: grid; gap: 8px; }
.tarjeta-cuerpo time { font-size: 14px; color: #5a5f66; }
.tarjeta-cuerpo h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.tarjeta-cuerpo p { font-size: 15px; color: #5a5f66; }
.paginacion .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.paginacion .page-numbers { padding: 10px 16px; border: 1px solid var(--linea); border-radius: 12px; text-decoration: none; color: var(--tinta); }
.paginacion .page-numbers.current { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
