/*
Theme Name: Clínica Noelia
Description: Tema a medida para Clínica Dental Noelia Fernández Salinas (Motril).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: clinica-noelia
*/

@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #1c3152;
	--navy-soft: #294672;
	--blue: #2b6592;
	--blue-dark: #1f4f76;
	--sky: #eef5f7;
	--sky-strong: #d5e6ea;
	--accent: #f08a3c;
	--ink: #1c2b3a;
	--muted: #556577;
	--line: #dfe7ee;
	--white: #fff;
	--whatsapp: #128c4b;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(14, 36, 64, .06), 0 12px 32px -12px rgba(14, 36, 64, .18);
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	--space: clamp(56px, 8vw, 104px);
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.hero__grid > *, .split > *, .cta__grid > *, .contact > *, .service > * { min-width: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { flex: none; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 .9em; }
.eyebrow--light { color: #a9cdd2; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }

/* Botones ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
	border: 2px solid transparent; border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--whatsapp { background: var(--white); color: var(--whatsapp); border-color: currentColor; }
.btn--whatsapp:hover { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn--ghost { color: var(--navy); border-color: var(--line); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky-strong); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn-row--flush { margin-top: 0; }

/* Cabecera ----------------------------------------------------------------- */
.topbar { background: var(--navy); color: #cfe0ef; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__item .icon { width: 15px; height: 15px; }
.topbar__phone { font-weight: 700; color: #fff; }
.topbar__phone:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: block; padding-block: 8px; }
.brand img { width: auto; height: 84px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a {
	display: inline-block; padding: 10px 14px; border-radius: 10px;
	color: var(--navy); font-weight: 600; font-size: .98rem; text-decoration: none;
	text-transform: lowercase;
}
.nav__list a::first-letter { text-transform: uppercase; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-menu-ancestor > a { background: var(--sky); color: var(--blue-dark); }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav__list .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 300px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { display: block; font-weight: 500; }

.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; font: inherit; font-weight: 700; color: var(--navy); background: var(--sky); border: 0; border-radius: 999px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* Secciones ---------------------------------------------------------------- */
.section { padding-block: var(--space); }
.section--tint { background: var(--sky); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: 0; }

/* Portada: hero ------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding-block: clamp(40px, 6vw, 80px) clamp(48px, 5vw, 64px); }
.hero + .section { padding-top: clamp(32px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__facts { list-style: none; margin: 2.4em 0 0; padding: 1.6em 0 0; border-top: 1px solid var(--sky-strong); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.hero__facts strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.hero__media { position: relative; }
.hero__media > img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero__card { position: absolute; left: -24px; bottom: -24px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.5; }
.hero__card strong, .hero__card span { display: block; }
.hero__card strong { color: var(--navy); }
.hero__card div span { color: var(--muted); }
.hero__card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); }

/* Servicios ---------------------------------------------------------------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services--large { grid-template-columns: repeat(2, 1fr); }
.service-card {
	display: flex; align-items: center; gap: 18px; height: 100%; padding: 18px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	color: inherit; text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.service-card__img { flex: none; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--sky); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.service-card__body strong { color: var(--navy); font-size: 1.08rem; line-height: 1.25; }
.service-card__body span { color: var(--muted); font-size: .93rem; line-height: 1.45; }
.service-card__arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); transition: background-color .18s ease, color .18s ease; }
.service-card:hover .service-card__arrow { background: var(--blue); color: #fff; }

/* Bloques a dos columnas --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.split__media:not(.diplomas) img { aspect-ratio: 4 / 3; object-fit: cover; }

.team { list-style: none; margin: 1.8em 0 0; padding: 0; display: grid; gap: 10px; }
.team li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 18px; background: #fff; border-radius: var(--radius-sm); }
.team strong { color: var(--navy); }
.team span { color: var(--muted); font-size: .95rem; }

.credentials { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 14px; }
.credentials li { position: relative; padding-left: 30px; color: var(--muted); }
.credentials li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--sky-strong); border: 4px solid var(--blue); }
.credentials strong { color: var(--navy); }

.diplomas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.diplomas img { border-radius: 14px; }
.diplomas img:last-child { margin-top: 40px; }

.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 280px 240px; gap: 16px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-column: span 2; }
.mosaic img:last-child { grid-column: span 2; }

/* Tecnología ---------------------------------------------------------------- */
.section--dark { background: var(--navy); color: #d5e3f0; }
.section--dark h2 { color: #fff; }
.section--dark .btn { margin-top: .6em; }
.tech__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: #06121f; box-shadow: var(--shadow); }
.tech { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech figure { margin: 0; height: 100%; background: var(--navy-soft); border-radius: var(--radius); overflow: hidden; }
.tech img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tech li:last-child img { object-position: top; }
.tech figcaption { display: grid; gap: 2px; padding: 16px 18px 20px; font-size: .92rem; line-height: 1.45; }
.tech figcaption strong { color: #fff; font-size: 1.02rem; }

/* Opiniones ---------------------------------------------------------------- */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.review__stars { display: flex; gap: 2px; color: var(--accent); }
.review blockquote { margin: 0; font-size: 1.1rem; color: var(--navy); line-height: 1.5; }
.review cite { margin-top: auto; font-style: normal; font-weight: 700; color: var(--navy); font-size: .95rem; }
.review cite span { font-weight: 500; color: var(--muted); }

/* Banda de cita ------------------------------------------------------------ */
.cta { background: var(--navy); color: #d5e3f0; padding-block: clamp(48px, 7vw, 88px); }
.cta h2 { color: #fff; }
.cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta .btn--whatsapp { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn--whatsapp:hover { background: var(--whatsapp); border-color: var(--whatsapp); }
.cta__info { list-style: none; margin: 0; padding: 28px; display: grid; gap: 22px; background: var(--navy-soft); border-radius: var(--radius); }
.cta__info li { display: flex; gap: 14px; line-height: 1.55; }
.cta__info .icon { margin-top: 3px; color: #a9cdd2; }
.cta__info strong { display: block; color: #fff; }
.cta__info a { color: #a9cdd2; }

/* Cabecera interior -------------------------------------------------------- */
.page-head { background: var(--sky); padding-block: clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: inherit; }

/* Texto largo --------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose--narrow { margin-inline: auto; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; font-size: .95rem; }

/* Servicio ------------------------------------------------------------------ */
.service { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service__img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 24px; margin-bottom: 2em; }
.service__aside { position: sticky; top: 108px; display: grid; gap: 20px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card h2 { font-size: 1.25rem; }
.card--cta { background: var(--sky); border-color: var(--sky-strong); display: grid; gap: 12px; }
.card--cta p { margin: 0; color: var(--muted); font-size: .97rem; }
.card--cta .btn { width: 100%; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--navy); font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--blue-dark); }
.link-list .icon { width: 16px; height: 16px; color: var(--blue); }

/* Galería ------------------------------------------------------------------- */
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1400px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(8, 20, 36, .88); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* Contacto ------------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list h2 { font-size: 1.05rem; margin-bottom: 2px; letter-spacing: 0; }
.contact__list a { font-weight: 600; }
.contact__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); }
.contact__media { display: grid; gap: 16px; }
.contact__media img { width: 100%; border-radius: var(--radius); }

.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; gap: 12px; justify-content: space-between; max-width: 320px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* Contacto: petición de cita y mapa */
.request { margin-top: 36px; display: grid; gap: 16px; }
.request h2 { margin: 0; }
.request__hint { margin: 0; color: var(--muted); font-size: .95rem; }
.request .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	font: inherit; color: var(--ink); background: #fff;
	border: 1px solid #b9c6d3; border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--blue); }
.map { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 340px; padding: 28px; text-align: center; background: var(--sky); border: 1px solid var(--sky-strong); border-radius: var(--radius); overflow: hidden; }
.map p { margin: 0; }
.map__pin { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--blue-dark); }
.map__link { font-weight: 600; }
.map__note { font-size: .82rem; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pie ----------------------------------------------------------------------- */
.site-footer { background: #13233c; color: #b9cadb; font-size: .96rem; }
.site-footer a { color: #e3eef8; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1.2fr; gap: 40px; padding-block: 64px 40px; }
.site-footer__brand img { width: 170px; height: auto; margin-bottom: 12px; }
.site-footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1.1em; }
.site-footer p { margin-bottom: .7em; }
.hours--footer dt { color: #b9cadb; }
.hours--footer dd { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.funding { background: #fff; color: var(--muted); padding-block: 28px; font-size: .8rem; line-height: 1.5; }
.funding__feder { display: flex; gap: 24px; align-items: center; }
.funding__feder img { width: 110px; flex: none; }
.funding__feder p { margin: 0; }

/* Primera visita -------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); font-weight: 800; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }
.urgent { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; padding: 16px 20px; background: var(--sky); border-radius: var(--radius-sm); color: var(--navy); }
.urgent .icon { margin-top: 4px; color: var(--blue-dark); }
.urgent a { font-weight: 700; white-space: nowrap; }

/* Preguntas frecuentes ---------------------------------------------------------- */
.case { margin-top: 2.6em; }
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.6em; }
.case__shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.case__shot img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; }
.case__shot figcaption { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.case__shot:last-child figcaption { background: var(--blue); }
.case__note { margin-top: 1em; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sky); color: var(--navy); font-size: 1rem; font-weight: 700; }
@media (max-width: 520px) { .case__pair { grid-template-columns: 1fr; } }
.faq { margin-top: 2.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 1.1em; color: var(--muted); }
.faq__note { margin-top: 1.2em; font-size: .88rem; color: var(--muted); }

/* Barra fija de contacto en móvil ------------------------------------------------ */
.mobile-bar { display: none; }
@media (max-width: 820px) {
	.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(14, 36, 64, .25); }
	.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; }
	.mobile-bar__call { background: var(--blue); color: #fff; }
	.mobile-bar__wa { background: var(--whatsapp); color: #fff; }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.joinchat { display: none !important; }
	#gt_float_wrapper { bottom: 76px !important; }
	.steps { grid-template-columns: 1fr; }
}

/* Ajustes de plugins --------------------------------------------------------- */
.wp-block-image img { border-radius: var(--radius-sm); }
/* En móvil el botón de accesibilidad baja a la esquina para no tapar los textos. */
@media (max-width: 820px) {
	#pojo-a11y-toolbar { top: auto !important; bottom: 136px; }
	#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle { top: auto; bottom: 0; }
}

/* Adaptación a pantallas ----------------------------------------------------- */
@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		display: none; flex-direction: column; align-items: stretch; gap: 12px;
		padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		max-height: calc(100vh - 90px); overflow-y: auto;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav__list a { display: block; padding: 13px 14px; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.nav__list .sub-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.services, .services--large { grid-template-columns: repeat(2, 1fr); }
	.tech { grid-template-columns: repeat(2, 1fr); }
	.service { grid-template-columns: 1fr; }
	.service__aside { position: static; grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
	.hero__grid, .split, .cta__grid, .contact { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: -1; }
	.hero__card { left: 12px; bottom: -20px; }
	.hero__media { margin-bottom: 20px; }
	.mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
	.mosaic img:first-child, .mosaic img:last-child { grid-column: span 2; }
	.topbar__item:first-child { display: none; }
	.topbar__inner { justify-content: flex-end; }
}

@media (max-width: 640px) {
	.site-header__inner { min-height: 72px; }
	.brand img { height: 60px; }
	.services, .services--large, .service__aside { grid-template-columns: 1fr; }
	.hero__facts { grid-template-columns: 1fr; gap: 12px; }
	.btn-row .btn, .request .btn { width: 100%; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 28px; }
	.funding__feder { flex-direction: column; align-items: flex-start; }
	.diplomas img:last-child { margin-top: 0; }
	.service-card__img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
