/*
 * Tema «Profesional» de la página web de las clínicas.
 * Se carga EN LUGAR de navigation.css, stylesheet.css, cristian.css y responsive.css cuando la clínica
 * elige este diseño (Configuración > Página web > Secciones y avisos > Diseño de la página).
 * Los colores salen de --web-principal y --web-oscuro (los que elige la clínica).
 */
:root {
  --tp-p: var(--web-principal, #1092AF);
  --tp-o: var(--web-oscuro, #0F2E3B);
  --tp-txt: #1d2b33;
  --tp-sub: #586a73;
  --tp-suave: #8a9aa2;
  --tp-borde: #e3eaed;
  --tp-fondo: #f5f8f9;
  --tp-tinte: rgba(16, 146, 175, .09);
  --tp-r: 16px;
  --tp-sombra: 0 1px 2px rgba(15, 40, 52, .04), 0 10px 30px rgba(15, 40, 52, .07);
  --tp-sombra-h: 0 2px 4px rgba(15, 40, 52, .05), 0 18px 40px rgba(15, 40, 52, .12);
  --tp-fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tp-titulos: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --tp-alto-header: 76px;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  :root { --tp-tinte: color-mix(in srgb, var(--tp-p) 10%, #fff); }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tp-alto-header) + 12px); }
body.tp { overflow-x: clip; font-family: var(--tp-fuente); color: var(--tp-txt); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.tp h1, .tp h2, .tp h3, .tp h4, .tp h5, .tp h6 { font-family: var(--tp-titulos); color: var(--tp-o); letter-spacing: -.01em; font-weight: 700; }
.tp a { color: var(--tp-p); transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.tp a:hover { color: var(--tp-o); text-decoration: none; }
.tp img { max-width: 100%; }
.tp .container { max-width: 1200px; padding-left: 20px; padding-right: 20px; }
.tp :focus-visible { outline: 3px solid color-mix(in srgb, var(--tp-p) 45%, #fff); outline-offset: 2px; }
.tp .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-saltar { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--tp-sombra); }
.tp-saltar:focus { left: 8px; }
.tp .contenido-editor { color: var(--tp-sub); line-height: 1.75; }
.tp .contenido-editor h2, .tp .contenido-editor h3, .tp .contenido-editor h4 { margin: 1.4em 0 .5em; color: var(--tp-o); }
.tp .contenido-editor img { border-radius: 12px; height: auto; }
.tp .contenido-editor ul, .tp .contenido-editor ol { padding-left: 1.2em; }
.tp .contenido-editor li { margin-bottom: .35em; }
.tp .contenido-editor iframe { border-radius: 12px; }

/* ---------- Botones ---------- */
.tp-btn, .tp .btn-custom, .tp .btn-slider {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid var(--tp-p); background: var(--tp-p); color: #fff !important;
  font-family: var(--tp-fuente); font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; line-height: 1.2;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tp-p) 28%, transparent); cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.tp-btn:hover, .tp .btn-custom:hover, .tp .btn-slider:hover { background: var(--tp-o); border-color: var(--tp-o); color: #fff !important; transform: translateY(-1px); }
.tp-btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.tp-btn-borde { background: transparent; color: var(--tp-p) !important; box-shadow: none; }
.tp-btn-borde:hover { background: var(--tp-p); color: #fff !important; border-color: var(--tp-p); }
.tp-btn-ws { background: #1FAF5A; border-color: #1FAF5A; box-shadow: 0 6px 16px rgba(31, 175, 90, .25); }
.tp-btn-ws:hover { background: #178a47; border-color: #178a47; }
.tp-btn-blanco { background: #fff; border-color: #fff; color: var(--tp-o) !important; box-shadow: none; }
.tp-btn-blanco:hover { background: transparent; color: #fff !important; border-color: #fff; }
.tp .btn-slider { background: #fff; border-color: #fff; color: var(--tp-o) !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.tp .btn-slider:hover { background: var(--tp-p); border-color: var(--tp-p); color: #fff !important; }
.tp .btn-light { border-radius: 999px; }

/* ---------- Barra superior ---------- */
.tp-top { background: var(--tp-o); color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.tp-top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.tp-top a { color: inherit; } .tp-top a:hover { color: #fff; }
.tp-top-datos, .tp-top-redes { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tp-top-datos i { margin-right: 6px; opacity: .75; }
.tp-top-redes { gap: 14px; } .tp-top-redes a { font-size: 14px; }

/* ---------- Encabezado ---------- */
.tp-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.tp-header.tp-scroll { box-shadow: 0 6px 24px rgba(15, 40, 52, .08); border-bottom-color: var(--tp-borde); }
.tp-header-in { display: flex; align-items: center; gap: 24px; min-height: var(--tp-alto-header); }
.tp-logo { display: flex; align-items: center; flex: 0 0 auto; font-family: var(--tp-titulos); font-weight: 800; font-size: 20px; color: var(--tp-o) !important; }
.tp-logo img { max-height: 52px; max-width: 190px; width: auto; height: auto; display: block; }
.tp-nav { margin-left: auto; }
.tp-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tp-nav > ul > li { position: relative; }
.tp-nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; color: var(--tp-txt); font-weight: 500; font-size: 15px; }
.tp-nav > ul > li > a:hover, .tp-nav > ul > li > a.activo { color: var(--tp-p); background: var(--tp-tinte); }
.tp-nav > ul > li > a .fa-chevron-down { font-size: 10px; opacity: .6; }
.tp-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 70vh; overflow: auto; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--tp-borde); border-radius: 14px; box-shadow: var(--tp-sombra-h); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.tp-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.tp-tiene-sub:hover > .tp-sub, .tp-tiene-sub:focus-within > .tp-sub { opacity: 1; visibility: visible; transform: none; }
.tp-sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--tp-txt); font-size: 14.5px; }
.tp-sub a:hover { background: var(--tp-fondo); color: var(--tp-p); }
.tp-sub .tp-sub-todos { border-top: 1px solid var(--tp-borde); margin-top: 6px; padding-top: 6px; }
.tp-sub .tp-sub-todos a { color: var(--tp-p); font-weight: 600; }
.tp-header-acc { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tp-tel { display: flex; align-items: center; gap: 8px; color: var(--tp-o) !important; font-weight: 600; font-size: 14.5px; }
.tp-tel i { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tp-tinte); color: var(--tp-p); font-size: 14px; }
.tp-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--tp-borde); background: #fff; border-radius: 12px; position: relative; cursor: pointer; }
.tp-burger span, .tp-burger span::before, .tp-burger span::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--tp-o); border-radius: 2px; transition: .2s; content: ''; }
.tp-burger span { top: 50%; margin-top: -1px; } .tp-burger span::before { top: -6px; left: 0; margin: 0; } .tp-burger span::after { top: 6px; left: 0; margin: 0; }
.tp-menu-abierto .tp-burger span { background: transparent; }
.tp-menu-abierto .tp-burger span::before { top: 0; transform: rotate(45deg); } .tp-menu-abierto .tp-burger span::after { top: 0; transform: rotate(-45deg); }
.tp-nav-movil { display: none; }
.tp-velo { position: fixed; inset: 0; background: rgba(10, 25, 33, .45); z-index: 998; opacity: 0; visibility: hidden; transition: .2s; }

/* ---------- Encabezado de página interna ---------- */
.tp-pagehead { background: linear-gradient(180deg, var(--tp-fondo), #fff); border-bottom: 1px solid var(--tp-borde); padding: 44px 0 38px; }
.tp-migas { font-size: 13.5px; color: var(--tp-suave); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp-migas a { color: var(--tp-sub); } .tp-migas a:hover { color: var(--tp-p); }
.tp-migas i { font-size: 9px; opacity: .6; }
.tp-pagehead h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0; line-height: 1.15; max-width: 860px; }
.tp-pagehead p { color: var(--tp-sub); margin: 10px 0 0; max-width: 700px; }

/* ---------- Contenido y secciones ---------- */
.tp-main > section { padding: 8px 0 72px; }
.tp-main > .tp-pagehead + section, .tp-pagehead + .tp-main > section { padding-top: 48px; }
.tp .section-title { text-align: center; margin: 72px auto 32px; max-width: 760px; }
.tp .section-title h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0; line-height: 1.2; text-transform: none; }
.tp .section-title h2::after { content: ''; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--tp-p); margin: 14px auto 0; }
.tp .section-title h4 { font-family: var(--tp-fuente); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-p); margin-bottom: 10px; }
.tp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-p); margin-bottom: 10px; }

/* Tarjeta base: servicios, promociones, especialistas, contacto */
.tp .service-box, .tp .contact-box, .tp-card {
  background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); padding: 28px 24px; box-shadow: var(--tp-sombra);
  text-align: center; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.tp .service-box:hover, .tp-card:hover { transform: translateY(-3px); box-shadow: var(--tp-sombra-h); border-color: transparent; }
.tp .service-box .cb-circle { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--tp-tinte); display: flex; align-items: center; justify-content: center; transition: .2s; border: 0; }
.tp .service-box:hover .cb-circle { background: var(--tp-p); }
.tp .service-box .cb-circle i { color: var(--tp-p); font-size: 26px; }
.tp .service-box:hover .cb-circle i, .tp .service-box:hover .esp-ini { color: #fff; }
.tp .service-box .sb-caption h4 { font-size: 18px; margin: 0 0 6px; }
.tp .service-box p { color: var(--tp-sub); font-size: 15px; }
.tp .esp-box { padding-bottom: 24px; }
.tp .esp-box .sb-caption h4 { margin-top: 4px; }
.tp .esp-box .esp-tags { color: var(--tp-p); font-size: 14px; font-weight: 600; }
.tp .esp-box .esp-dato { color: var(--tp-suave); font-size: 13px; }
.tp .esp-box > br { display: none; }
.tp .esp-box .btn-custom { margin-top: auto; font-size: 13.5px; min-height: 42px; padding: 9px 18px; text-transform: none; }
.tp .esp-box .sb-caption { margin-bottom: 18px; }
.tp .promo-box { border-top: 0; text-align: left; }
.tp .promo-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: var(--tp-r) var(--tp-r) 0 0; background: var(--tp-p); }
.tp .promo-box .cb-circle { margin: 0 0 14px; }
.tp .precios-box { text-align: left; } .tp .precios-box:hover { transform: none; }
.tp .precios-box li::marker { color: var(--tp-p); }

/* Servicios en cuadrícula (tema profesional) */
.tp-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tp-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tp-srv { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); overflow: hidden; box-shadow: var(--tp-sombra); color: inherit !important; height: 100%; transition: .2s; }
.tp-srv:hover { transform: translateY(-3px); box-shadow: var(--tp-sombra-h); border-color: transparent; }
.tp-srv-foto { aspect-ratio: 16/10; background: var(--tp-tinte) center/cover no-repeat; position: relative; }
.tp-srv-ico { position: absolute; left: 20px; bottom: -26px; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: var(--tp-sombra); display: flex; align-items: center; justify-content: center; padding: 10px; }
.tp-srv-ico img { max-width: 100%; max-height: 100%; }
.tp-srv-ico i { color: var(--tp-p); font-size: 22px; }
.tp-srv-cuerpo { padding: 36px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tp-srv-cuerpo h3 { font-size: 18.5px; margin: 0 0 8px; }
.tp-srv-cuerpo p { color: var(--tp-sub); font-size: 15px; margin: 0 0 16px; flex: 1; }
.tp-mas { color: var(--tp-p); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.tp-mas i { transition: transform .2s; font-size: 12px; }
.tp-srv:hover .tp-mas i, a:hover > .tp-mas i { transform: translateX(3px); }
.tp-srv-sinfoto .tp-srv-foto { display: none; }
.tp-srv-sinfoto .tp-srv-cuerpo { padding-top: 24px; }
.tp-srv-sinfoto .tp-srv-ico { position: static; margin-bottom: 14px; box-shadow: none; background: var(--tp-tinte); }

/* Quiénes somos */
.tp-about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 72px; }
.tp-about h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.2; margin: 0 0 16px; }
.tp-about-foto { position: relative; }
.tp-about-foto img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 22px; box-shadow: var(--tp-sombra-h); display: block; }
.tp-about-foto::before { content: ''; position: absolute; inset: 24px -18px -18px 24px; border-radius: 22px; background: var(--tp-tinte); z-index: -1; }
.tp-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; color: var(--tp-p) !important; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.tp-play:hover { transform: scale(1.06); }
.tp-faq-mini { margin-top: 22px; }
.tp-faq-mini details { border-bottom: 1px solid var(--tp-borde); }
.tp-faq-mini summary { cursor: pointer; padding: 14px 30px 14px 0; font-weight: 600; color: var(--tp-o); list-style: none; position: relative; }
.tp-faq-mini summary::-webkit-details-marker { display: none; }
.tp-faq-mini summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--tp-p); font-size: 22px; font-weight: 400; }
.tp-faq-mini details[open] summary::after { content: '\2212'; }
.tp-faq-mini .tp-faq-r { color: var(--tp-sub); padding-bottom: 14px; }

/* Destacadas */
.tp-destacadas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.tp-destacadas img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--tp-r); display: block; box-shadow: var(--tp-sombra); }
.tp-redes-inicio { display: flex; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0 0 8px; }
.tp-redes-inicio a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tp-borde); display: flex; align-items: center; justify-content: center; color: var(--tp-o); font-size: 18px; background: #fff; }
.tp-redes-inicio a:hover { background: var(--tp-p); border-color: var(--tp-p); color: #fff; }

/* Opiniones */
.tp-opiniones { background: var(--tp-fondo); padding: 8px 0 64px; margin-top: 72px; }
.tp-opiniones .section-title { margin-top: 0; padding-top: 64px; }
.tp-testis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 48px) / 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.tp-testi { scroll-snap-align: start; background: #fff; border-radius: var(--tp-r); padding: 26px; box-shadow: var(--tp-sombra); display: flex; flex-direction: column; margin: 0; }
.tp-testi .tp-estrellas { color: #F5B301; font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.tp-testi blockquote { color: var(--tp-txt); font-size: 15.5px; line-height: 1.65; margin: 0 0 20px; flex: 1; }
.tp-testi figcaption { display: flex; align-items: center; gap: 12px; }
.tp-testi figcaption img, .tp-testi .tp-ini { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 46px; }
.tp-testi .tp-ini { background: var(--tp-tinte); color: var(--tp-p); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tp-testi b { display: block; color: var(--tp-o); font-size: 15px; } .tp-testi small { color: var(--tp-suave); }
.tp-google { margin-top: 28px; }

/* Blog: tarjetas */
.tp-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); overflow: hidden; box-shadow: var(--tp-sombra); height: 100%; transition: .2s; }
.tp-post:hover { transform: translateY(-3px); box-shadow: var(--tp-sombra-h); border-color: transparent; }
.tp-post-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tp-fondo); }
.tp-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tp-post:hover .tp-post-img img { transform: scale(1.04); }
.tp-post-cuerpo { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.tp-post-meta { font-size: 13px; color: var(--tp-suave); margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.tp-post h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
.tp-post h3 a { color: var(--tp-o); } .tp-post h3 a:hover { color: var(--tp-p); }
.tp-post p { color: var(--tp-sub); font-size: 14.5px; margin: 0 0 14px; flex: 1; }

/* Plantilla vieja del blog (blog.php, blog-categoria) */
.tp .thumbnail-box { background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); overflow: hidden; box-shadow: var(--tp-sombra); margin-bottom: 28px; height: calc(100% - 28px); display: flex; flex-direction: column; transition: .2s; }
.tp .thumbnail-box:hover { transform: translateY(-3px); box-shadow: var(--tp-sombra-h); }
.tp .thumbnail-box .tb-image { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--tp-fondo); }
.tp .thumbnail-box .tb-image img { width: 100%; height: 100%; object-fit: cover; }
.tp .thumbnail-box .tb-caption { padding: 18px 22px 6px; flex: 1; }
.tp .thumbnail-box .post-date p { font-size: 13px; color: var(--tp-suave); margin: 0 0 6px; }
.tp .thumbnail-box h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; color: var(--tp-o); }
.tp .thumbnail-box a:hover h3 { color: var(--tp-p); }
.tp .thumbnail-box .inner-caption > p { color: var(--tp-sub); font-size: 14.5px; }
.tp .thumbnail-box .tb-bottom { padding: 0 22px 18px; font-size: 13px; color: var(--tp-suave); }
.tp .thumbnail-box .tb-bottom p { margin: 0; }
.tp .thumbnail-box .user-box p::before { content: '\f007'; font-family: 'Font Awesome 5 Free'; font-weight: 400; margin-right: 6px; }
.tp .site-pagination { display: flex; justify-content: center; margin-top: 12px; }
.tp .site-pagination nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp .site-pagination a, .tp .site-pagination strong, .tp .site-pagination .page-link { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--tp-borde); display: inline-flex; align-items: center; justify-content: center; color: var(--tp-txt); background: #fff; }
.tp .site-pagination strong, .tp .site-pagination .active .page-link { background: var(--tp-p); border-color: var(--tp-p); color: #fff; }
.tp .site-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }

/* Artículo y servicio */
.tp .post-picture, .tp .department-img { margin: 0 0 28px; }
.tp .post-picture img, .tp .department-img img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 20px; display: block; }
.tp .post-content > h2:first-child, .tp .department-information > h2:first-child { display: none; }
.tp .post-details { display: flex; gap: 18px; flex-wrap: wrap; color: var(--tp-suave); font-size: 14px; }
.tp .post-details p { margin: 0; }
.tp .pd-date p::before { content: '\f133'; font-family: 'Font Awesome 5 Free'; font-weight: 400; margin-right: 6px; }
.tp .pd-user p::before { content: '\f007'; font-family: 'Font Awesome 5 Free'; font-weight: 400; margin-right: 6px; }
.tp .post-content .contenido-editor, .tp .department-information .contenido-editor { font-size: 16.5px; color: #3a4a52; padding: 18px 0; }
.tp-articulo-acc { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.tp .departments, .tp aside { position: sticky; top: calc(var(--tp-alto-header) + 20px); }
.tp .departments .list-group { margin-bottom: 6px; }
.tp .departments .list-group-item { border: 1px solid var(--tp-borde) !important; border-radius: 12px !important; padding: 13px 16px; color: var(--tp-txt); font-weight: 500; font-size: 15px; background: #fff; }
.tp .departments .list-group-item:hover { border-color: var(--tp-p) !important; color: var(--tp-p); }
.tp .departments .list-group-item.active { background: var(--tp-p); border-color: var(--tp-p) !important; color: #fff; }
.tp .departments .list-group-item .badge { color: inherit; font-size: 11px; opacity: .6; }
.tp .departments .banner { margin: 18px 0 0; } .tp .departments .banner img { border-radius: var(--tp-r); width: 100%; }
.tp-caja-cta { background: var(--tp-o); color: #fff; border-radius: var(--tp-r); padding: 24px; margin-top: 18px; }
.tp-caja-cta h4 { color: #fff; font-size: 18px; margin-bottom: 6px; } .tp-caja-cta p { color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.tp-caja-cta .tp-btn { width: 100%; margin-top: 6px; }

/* Lateral del blog */
.tp .blog-search { position: relative; margin-bottom: 22px; }
.tp .blog-search .form-control-feedback { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tp-suave); }
.tp .blog-search input { padding-left: 42px; }
.tp .aside-list-group, .tp aside > .aside-related-posts { background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); padding: 18px 20px; margin-bottom: 20px; }
.tp aside h4 { font-size: 16px; margin-bottom: 12px; }
.tp .aside-list-group .list-group-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-color: var(--tp-borde); background: transparent; }
.tp .aside-list-group .list-group-item a { color: var(--tp-txt); } .tp .aside-list-group .list-group-item a:hover { color: var(--tp-p); }
.tp .aside-list-group .badge { background: var(--tp-tinte); color: var(--tp-p); font-weight: 600; }
.tp .aside-related-posts .media { padding: 8px 0; align-items: center; }
.tp .aside-related-posts .media img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.tp .aside-related-posts h5 { font-size: 14.5px; line-height: 1.35; margin: 0 0 2px; font-family: var(--tp-fuente); font-weight: 600; }
.tp .aside-related-posts h5 a { color: var(--tp-o); }
.tp .aside-related-posts p { font-size: 12.5px; color: var(--tp-suave); margin: 0; }
.tp .blog-item .post-preview-img img { border-radius: var(--tp-r); width: 100%; max-height: 360px; object-fit: cover; }
.tp .post-preview .blog-item { border-bottom: 1px solid var(--tp-borde); padding-bottom: 28px; margin-bottom: 8px; }
.tp .post-preview .blog-item > br { display: none; }
.tp .pp-caption h3 { font-size: 22px; margin: 16px 0 6px; } .tp .pp-caption > p { color: var(--tp-sub); margin-top: 10px; }
.tp .post-divider { display: none; }

/* Formularios */
.tp .form-control { min-height: 48px; border-radius: 12px; border: 1px solid #d5e0e4; padding: 10px 16px; font-size: 15.5px; color: var(--tp-txt); box-shadow: none; background: #fff; }
.tp textarea.form-control { min-height: 120px; }
.tp .form-control:focus { border-color: var(--tp-p); box-shadow: 0 0 0 4px var(--tp-tinte); }
.tp .form-check-label { color: var(--tp-sub); }

/* Contacto */
.tp .contact-info { background: #fff; border: 1px solid var(--tp-borde); border-radius: 20px; padding: 34px; box-shadow: var(--tp-sombra); }
.tp .contact-info h5 { font-family: var(--tp-fuente); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-p); margin-bottom: 6px; }
.tp .contact-info h2 { font-size: 2rem; margin-bottom: 8px; }
.tp .contact-info > p { color: var(--tp-sub); margin-bottom: 22px; }
.tp #sedes h3 { font-size: 20px; margin: 4px 0 14px; }
.tp .map { border-radius: 20px; overflow: hidden; box-shadow: var(--tp-sombra); }
.tp .map-iframe { width: 100%; height: 440px; border: 0; display: block; }
.tp .contact-box { margin-bottom: 24px; height: calc(100% - 24px); }
.tp .contact-box a { color: inherit; display: block; }
.tp .contact-box h3 { font-size: 18px; margin: 4px 0 8px; }
.tp .contact-box p { color: var(--tp-sub); margin-bottom: 8px; }
.tp .contact-box .phone-icon { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px; background: var(--tp-tinte); color: var(--tp-p); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.tp .sede-box .sede-acciones a { display: inline-flex; align-items: center; gap: 6px; margin: 4px; padding: 7px 14px; border-radius: 999px; background: var(--tp-fondo); color: var(--tp-o); font-size: 14px; font-weight: 500; }
.tp .sede-box .sede-acciones a:hover { background: var(--tp-p); color: #fff; }
.tp .sede-mapa-btn.btn-custom { min-height: 38px; padding: 6px 16px; font-size: 14px; box-shadow: none; }
.tp .sede-mapa-btn.btn-light { min-height: 38px; padding: 6px 16px; font-size: 14px; background: var(--tp-fondo); border: 2px solid var(--tp-fondo); }
.tp section > .container + .container { margin-top: 48px; }
.tp .space-break { margin-top: 0; }

/* Galería */
.tp-filtros { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.tp-filtros button { border: 1px solid var(--tp-borde); background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 14.5px; color: var(--tp-txt); cursor: pointer; font-weight: 500; }
.tp-filtros button[aria-pressed=true] { background: var(--tp-o); border-color: var(--tp-o); color: #fff; }
.tp-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tp-galeria a { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--tp-fondo); }
.tp-galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tp-galeria a:hover img { transform: scale(1.05); }
.tp-galeria span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; }
.tp-galeria a:hover span, .tp-galeria a:focus span { opacity: 1; }
.tp-galeria [hidden] { display: none; }
.tp-visor { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 18, 24, .92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.tp-visor.abierto { display: flex; }
.tp-visor img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.tp-visor button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.tp-visor button:hover { background: rgba(255, 255, 255, .25); }
.tp-visor .tp-v-x { top: 14px; right: 14px; } .tp-visor .tp-v-izq { left: 14px; top: 50%; } .tp-visor .tp-v-der { right: 14px; top: 50%; }
.tp-visor p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); margin: 0; font-size: 14px; }

/* Equipo y cifras (Nosotros) */
.tp-equipo { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tp-persona { background: #fff; border: 1px solid var(--tp-borde); border-radius: var(--tp-r); overflow: hidden; box-shadow: var(--tp-sombra); margin: 0; }
.tp-persona img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; display: block; background: var(--tp-fondo); }
.tp-persona figcaption { padding: 16px 18px 18px; }
.tp-persona h3 { font-size: 17px; margin: 0 0 2px; } .tp-persona h4 { font-family: var(--tp-fuente); font-size: 14px; color: var(--tp-p); font-weight: 600; margin: 0 0 8px; }
.tp-persona .tp-perfil { color: var(--tp-sub); font-size: 14px; } .tp-persona .tp-perfil p { margin: 0; }
.tp .counter-section-alt { background: var(--tp-o); padding: 48px 0; margin-top: 72px; color: #fff; }
.tp .counter-section-alt .inner-counter { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 12px 0; }
.tp .counter-section-alt .counter-icon { margin: 0; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; }
.tp .counter-section-alt .counter-icon img { max-width: 30px; max-height: 30px; filter: brightness(0) invert(1); }
.tp .counter-section-alt .counter { font-family: var(--tp-titulos); font-size: 2.1rem; font-weight: 800; line-height: 1; color: #fff; }
.tp .counter-section-alt p { margin: 4px 0 0; font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .78); }

/* Llamado final y pie */
.tp-cta-final { padding: 0 0 72px; }
.tp-cta-caja { background: linear-gradient(120deg, var(--tp-o), var(--tp-p)); border-radius: 26px; color: #fff; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.tp-cta-caja::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.tp-cta-caja h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.tp-cta-caja p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 560px; }
.tp-cta-caja > div { position: relative; z-index: 1; }
.tp-cta-botones { display: flex; gap: 12px; flex-wrap: wrap; }
.tp-footer { background: #0c1f28; background: color-mix(in srgb, var(--tp-o) 88%, #000); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: 15px; }
.tp-footer a { color: rgba(255, 255, 255, .78); } .tp-footer a:hover { color: #fff; }
.tp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.tp-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; font-family: var(--tp-titulos); }
.tp-footer ul { list-style: none; padding: 0; margin: 0; } .tp-footer li { margin-bottom: 9px; }
.tp-footer-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; }
.tp-footer-logo img { max-height: 44px; max-width: 170px; }
.tp-footer-nombre { color: #fff; font-family: var(--tp-titulos); font-weight: 800; font-size: 20px; margin-bottom: 12px; display: block; }
.tp-footer-desc { font-size: 14.5px; line-height: 1.65; margin-bottom: 18px; }
.tp-footer-redes { display: flex; gap: 10px; }
.tp-footer-redes a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.tp-footer-redes a:hover { background: var(--tp-p); }
.tp-footer-sede { margin-bottom: 14px; font-size: 14.5px; } .tp-footer-sede b { color: #fff; display: block; font-weight: 600; }
.tp-footer-sede i { width: 16px; opacity: .7; margin-right: 4px; }
.tp-footer-bajo { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.tp-footer-bajo a { text-decoration: underline; text-underline-offset: 3px; }

/* Barra de acciones en celular */
.tp-barra-movil { display: none; }

/* Compartir artículo */
.tp .share-btn-container { position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; background: transparent !important; }
.tp .share-btn-container a { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--tp-o); box-shadow: var(--tp-sombra); display: flex; align-items: center; justify-content: center; }
.tp .share-btn-container a:hover { background: var(--tp-p); color: #fff; }

/* Modal de cita: botones del tema */
.tp .modal-content { border-radius: 20px; border: 0; }

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1199px) {
  .tp-tel span { display: none; }
  .tp-nav > ul > li > a { padding: 10px 10px; font-size: 14.5px; }
}
@media (max-width: 991px) {
  :root { --tp-alto-header: 66px; }
  .tp-top { display: none; }
  .tp-burger { display: block; }
  /* backdrop-filter haría que el menú fijo se ubique dentro del encabezado (y la página se corra a un lado) */
  .tp-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .tp-tel { display: none; }
  .tp-header-acc .tp-btn { display: none; }
  .tp-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 1001; padding: 20px 18px 24px; overflow-y: auto;
    transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, .12); display: flex; flex-direction: column; margin: 0; }
  .tp-menu-abierto .tp-nav { transform: none; }
  .tp-menu-abierto .tp-velo { opacity: 1; visibility: visible; }
  .tp-menu-abierto { overflow: hidden; }
  .tp-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; margin-top: 44px; }
  .tp-nav > ul > li > a { padding: 13px 14px; font-size: 16px; justify-content: space-between; }
  .tp-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; display: none; max-height: none; min-width: 0; }
  .tp-sub::before { display: none; }
  .tp-tiene-sub.abierto > .tp-sub { display: block; }
  .tp-tiene-sub.abierto > a .fa-chevron-down { transform: rotate(180deg); }
  .tp-nav-movil { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
  .tp-nav-movil .tp-btn { width: 100%; }
  .tp-nav-cerrar { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--tp-borde); background: #fff; font-size: 18px; color: var(--tp-o); }
  .tp-about { grid-template-columns: 1fr; gap: 40px; }
  .tp-about-foto { order: -1; }
  .tp-footer-grid { grid-template-columns: 1fr 1fr; }
  .tp .departments, .tp aside { position: static; margin-top: 40px; }
  .tp-testis { grid-auto-columns: minmax(280px, 70%); }
}
@media (min-width: 992px) { .tp-nav-cerrar { display: none; } }

/* ---------- Celular ---------- */
@media (max-width: 767px) {
  body.tp { font-size: 15.5px; padding-bottom: 68px; }
  .tp .container { padding-left: 16px; padding-right: 16px; }
  .tp-logo img { max-height: 42px; max-width: 150px; }
  .tp-pagehead { padding: 28px 0 24px; }
  .tp .section-title { margin: 52px auto 24px; }
  .tp-main > section { padding-bottom: 52px; }
  .tp-cta-caja { padding: 32px 22px; border-radius: 20px; }
  .tp-cta-botones, .tp-cta-botones .tp-btn { width: 100%; }
  .tp-footer { padding-top: 48px; }
  .tp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .tp-footer-bajo { flex-direction: column; margin-top: 36px; }
  .tp .contact-info { padding: 24px 18px; }
  .tp-about-foto { margin-right: 10px; } .tp-about-foto::before { inset: 14px -10px -10px 14px; }
  .tp .map-iframe { height: 320px; }
  .tp-testis { grid-auto-columns: 86%; gap: 14px; }
  .tp .share-btn-container { display: none; }
  .tp-barra-movil { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; background: #fff; border-top: 1px solid var(--tp-borde);
    box-shadow: 0 -6px 20px rgba(15, 40, 52, .08); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .tp-barra-movil a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--tp-o); }
  .tp-barra-movil a i { font-size: 18px; color: var(--tp-p); }
  .tp-barra-movil a.tp-bm-ws i { color: #1FAF5A; }
  .tp-barra-movil a.tp-bm-cita { background: var(--tp-p); color: #fff; } .tp-barra-movil a.tp-bm-cita i { color: #fff; }
  /* El asistente sube para no tapar la barra de abajo (el pulso va dentro del botón: no se mueve aparte) */
  .tp #chatbot-launcher { bottom: 84px !important; }
  .tp #chatbot-container { bottom: 156px !important; }
  .tp .esp-flecha { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tp *, .tp *::before, .tp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .tp-top, .tp-header, .tp-barra-movil, .tp-cta-final, #chatbot-launcher { display: none !important; }
}

/* Redes en el inicio (bloque «Redes e imágenes destacadas») */
.tp ul.wrapper { display: flex; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0 0 18px; }
.tp ul.wrapper .icon a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--tp-borde); display: flex; align-items: center; justify-content: center; color: var(--tp-o); font-size: 18px; background: #fff; }
.tp ul.wrapper .icon a:hover { background: var(--tp-p); border-color: var(--tp-p); color: #fff; }
.tp ul.wrapper .icon span { display: contents; }
.tp .precios-box, .tp .esp-box, .tp .popup-web-cuerpo, .tp .aviso-barra { font-family: var(--tp-fuente); }
.tp-srv-vacia { background: linear-gradient(135deg, var(--tp-tinte), #fff); display: flex; align-items: center; justify-content: center; }
.tp-srv-vacia .tp-srv-grande { font-size: 64px; color: var(--tp-p); opacity: .22; }
.tp-testis.tp-pocos { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); overflow: visible; }
.tp-cta-final { padding-top: 32px; }
@media (max-width: 767px) {
  .tp-srv-foto { aspect-ratio: 16/8; }
  .tp-srv-vacia { aspect-ratio: 16/5; }
  .tp-srv-cuerpo { padding-top: 34px; }
}
