/* =========================================================================
   Fisio & Health · estilos globales
   Tokens, tipografía, botones, header, footer y piezas compartidas.
   Cada sección tiene su propio CSS en /blocks/<sección>/style.css.
   ========================================================================= */

@font-face { font-family: 'Neris'; font-weight: 900; font-style: normal; font-display: swap; src: url(../fonts/neris-black.woff2) format('woff2'); }
@font-face { font-family: 'Neris'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/neris-semibold.woff2) format('woff2'); }
@font-face { font-family: 'Urbanist'; font-weight: 400 800; font-style: normal; font-display: swap; src: url(../fonts/urbanist.woff2) format('woff2'); }

:root {
	--ink: #0B0D26;
	--navy: #12163A;
	--navy-2: #1B2050;
	--navy-line: #2A3066;
	--cyan: #22B8DC;
	--cyan-ink: #087C9A; /* cian de marca oscurecido para texto sobre fondo claro */
	--cyan-50: #E6F7FC;
	--purple: #8B3FA0;
	--purple-50: #F4EAF7;
	--lilac: #C58BE0;
	--lilac-ink: #F3DDFA;
	--mist: #F2F5FA;
	--line: #E3E8F2;
	--body: #4A5078;
	--soft: #9AA1C8;
	--on-dark: #C9CFEA;
	--wa: #25D366;

	--f-display: 'Neris', 'Urbanist', 'Arial Black', system-ui, sans-serif;
	--f-body: 'Urbanist', system-ui, -apple-system, sans-serif;

	--ancho: 1200px;
	--gutter: 40px;
	--sec: 96px;
	--header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: #fff; color: var(--navy); font: 500 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button, select, input, textarea { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
h2 { font-size: 50px; }

::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
html { caret-color: var(--purple); scrollbar-color: #B9C2DE transparent; }

.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.saltar:focus { top: 16px; }

/* Contenedor y ritmo */
.w { max-width: var(--ancho); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sec { padding-top: var(--sec); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 40px; }
.head--centro { flex-direction: column; align-items: center; text-align: center; }
.sub { color: var(--body); font-size: 18px; margin-top: 14px; max-width: 56ch; }
.head--centro .sub { margin-inline: auto; }

/* Resaltados del cliente: *cian* y **lila** */
.c { color: var(--cyan-ink); }
.p { color: var(--purple); }
.oscuro .c { color: var(--cyan); }
.oscuro .p { color: var(--lilac); }
.oscuro .sub { color: var(--on-dark); }

/* Etiqueta de contenido pendiente de la clínica */
.pend { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1.3 var(--f-body); color: var(--purple); background: var(--purple-50); border: 1.5px dashed #C9A3D6; padding: 6px 10px; border-radius: 8px; text-transform: none; letter-spacing: 0; }
.pend::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.oscuro .pend { color: var(--lilac-ink); background: rgba(197, 139, 224, .14); border-color: rgba(197, 139, 224, .55); }

/* Fotos */
.foto { position: relative; overflow: hidden; background: linear-gradient(135deg, #DCEFF7, #E8E0F1); }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto--falta { display: grid; place-items: center; text-align: center; padding: 16px; }
.foto--falta span { font: 700 12.5px/1.4 var(--f-body); color: #5B5F86; display: grid; justify-items: center; gap: 10px; }
.foto--falta span::before { content: ""; width: 30px; height: 24px; border: 2px solid #9AA1C8; border-radius: 5px; }

/* Piezas de texto compartidas por las secciones */
.lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.oscuro .lbl { color: var(--soft); }
.etiqueta { align-self: flex-start; background: var(--purple); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--cyan-50); color: var(--cyan-ink); border-radius: 8px; padding: 5px 10px; font-weight: 700; font-size: 13.5px; }
.oscuro .chips span { background: var(--navy-2); color: #fff; border: 1px solid #343B78; }
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; }
.lista-check li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; margin-top: 2px; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3L17 9' fill='none' stroke='%230B0D26' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Íconos */
.ico { width: 16px; height: 16px; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px 0 24px; border-radius: 12px; font: 800 16px/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn__ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan .btn__ico { background: var(--ink); color: var(--cyan); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy .btn__ico { background: var(--cyan); color: var(--ink); }
.btn--borde { padding: 0 22px; background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px #C8CEE0; }
.oscuro .btn--borde { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--purple); color: var(--lilac-ink); font-size: 14px; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding-block: 8px; }
.topbar__datos { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar__horario { background: #fff; color: var(--navy); font-weight: 800; padding: 4px 12px; border-radius: 7px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-header__logo { display: inline-flex; flex: none; }
.site-header__logo img { height: 50px; width: auto; }
.site-header__nav { display: flex; gap: 28px; font-weight: 700; font-size: 15.5px; }
.site-header__nav a { text-decoration: none; color: #fff; padding: 8px 0; position: relative; }
.site-header__nav a:hover { color: var(--lilac); }
.site-header__nav a[aria-current="page"] { color: var(--cyan); }
.site-header__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); }
.site-header__menu { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--navy-line); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.site-header__menu .ico { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); margin-top: var(--sec); font-size: 15px; }
.site-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px; padding-block: 64px 40px; }
.site-footer__marca img { height: 74px; width: auto; }
.site-footer__marca p { margin-top: 14px; }
.site-footer__col { display: grid; gap: 7px; align-content: start; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--cyan); }
.site-footer__titulo { color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.site-footer__redes { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer__redes a { color: var(--cyan); }
.site-footer__legal { border-top: 1px solid #23285A; color: var(--soft); padding-block: 20px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; font-size: 13.5px; }
.site-footer__legales { display: flex; gap: 18px; }
.site-footer__legales a { text-decoration: none; }
.site-footer__legales a:hover { color: #fff; }

/* WhatsApp flotante */
.wa-flotante { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(11, 13, 38, .35); transition: transform .2s ease; }
.wa-flotante:hover { transform: scale(1.05); }
.wa-flotante .ico { width: 30px; height: 30px; }

/* ---------- Páginas de texto (legales) ---------- */
.legal__cabecera { background: var(--navy); color: #fff; }
.legal__cabecera-inner { max-width: 840px; margin: 0 auto; padding: 72px var(--gutter) 56px; }
.legal__cabecera h1 { font-size: 46px; }
.legal__fecha { color: var(--on-dark); margin-top: 12px; font-size: 15px; }
.legal__texto { max-width: 840px; margin: 0 auto; padding: 56px var(--gutter) 0; }
.legal__texto > * + * { margin-top: 1em; }
.legal__texto h2 { font-size: 26px; margin-top: 1.6em; }
.legal__texto p, .legal__texto li { color: var(--body); }
.legal__texto strong { color: var(--navy); }
.legal__texto a { color: var(--purple); }
.legal__texto ul { padding-left: 1.2em; display: grid; gap: .5em; }
.legal__texto li::marker { color: var(--cyan-ink); }
.legal__texto .legal-nota { background: var(--purple-50); color: var(--purple); border: 1.5px dashed #C9A3D6; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	:root { --header-h: 72px; }
	.site-header__nav, .site-header__cta { display: none; }
	.site-header__menu { display: grid; }
	.site-header.abierto .site-header__nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 6px max(var(--gutter), env(safe-area-inset-left, 0px)) 16px; }
	.site-header.abierto .site-header__nav a { padding: 13px 0; border-bottom: 1px solid var(--navy-line); }
	.site-header.abierto .site-header__nav a::after { display: none; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	:root { --gutter: 20px; --sec: 72px; --header-h: 70px; }
	body { font-size: 16px; }
	h2 { font-size: 34px; }
	.sub { font-size: 16px; }
	.topbar { display: none; }
	/* El peso visual del logo está arriba: se baja un poco para que se vea centrado */
	.site-header__logo { margin-left: 4px; }
	.site-header__logo img { height: 40px; transform: translateY(2px); }
	.btn { min-height: 50px; font-size: 15px; padding-left: 20px; }
	.site-footer__cols { grid-template-columns: 1fr; gap: 26px; padding-top: 52px; }
	.wa-flotante { width: 54px; height: 54px; right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	.legal__cabecera h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
