/* ==========================================================================
   Skole Preparatoria — estilos base (cabecera, pie, botones, páginas)
   Colores tomados del logo y del material impreso de Skole.
   ========================================================================== */

:root {
	--plum: #8c2470;          /* "Skole" del logo */
	--plum-deep: #5e1049;
	--blue: #3854a0;          /* "PREPARATORIA" del logo */
	--navy: #1c2566;          /* títulos del material impreso */
	--violet: #6b2fa0;        /* sudadera / pinceladas */
	--magenta: #c02ba0;
	--lime: #e4ef5c;          /* círculos U·H·S del modelo educativo */
	--peach: #fcd4ae;         /* recuadro de valores */
	--mist: #f4f0f9;
	--paper: #ffffff;
	--ink: #1f2250;
	--ink-soft: #454872;
	--wa: #1faa53;

	--brush-a: var(--navy);
	--brush-b: var(--violet);
	--brush-c: var(--magenta);

	--f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1180px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--r-sm: 10px;
	--r-md: 18px;
	--r-pill: 999px;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	font-weight: 400;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--plum); text-underline-offset: .18em; }
a:hover { color: var(--plum-deep); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
address { font-style: normal; }
strong { font-weight: 600; }

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

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: 780px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--f-body); font-weight: 500; font-size: 1rem;
	padding: .75em 1.35em; border-radius: var(--r-pill);
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { font-size: 1.075rem; padding: .9em 1.6em; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17893f; color: #fff; }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--plum-deep); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.round-btn {
	width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	border: 2px solid var(--navy); background: #fff; color: var(--navy);
}
.round-btn:hover { background: var(--navy); color: #fff; }
.round-btn .icon { width: 20px; height: 20px; }

/* ---------- Cabecera / índice ---------- */
.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 rgba(28, 37, 102, .08);
}
.site-header__inner {
	max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter);
	min-height: var(--header-h);
	display: flex; align-items: center; gap: 1.25rem;
}
.brand { flex: none; display: block; }
.brand__logo { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem; }
.nav__list a {
	display: block; padding: .5rem .7rem; border-radius: var(--r-pill);
	font-size: .9rem; font-weight: 400; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.nav__list a:hover { background: var(--mist); color: var(--plum); }
.nav__list a.is-active { background: var(--navy); color: #fff; }
.site-header__wa { padding: .6em 1.1em; font-size: .92rem; }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: .4rem; margin-left: auto;
		border: 2px solid var(--navy); color: var(--navy); background: #fff;
		border-radius: var(--r-pill); padding: .45rem .9rem; font: 500 .95rem var(--f-body); cursor: pointer;
	}
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 4px solid var(--plum);
		box-shadow: 0 18px 30px rgba(28, 37, 102, .12);
		display: none; margin: 0;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; padding: .75rem var(--gutter) 1.25rem; }
	.nav__list a { font-size: 1.05rem; padding: .7rem .9rem; }
}
@media (max-width: 560px) {
	.site-header__wa span { display: none; }
	.site-header__wa { padding: .6em; }
	.brand__logo { height: 38px; }
	.nav-toggle span { display: none; }
}

/* ---------- Pinceladas ---------- */
.brush { position: absolute; top: 0; bottom: 0; height: 100%; pointer-events: none; }

/* ---------- Pie de página / contacto ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--plum-deep); color: #f3e6ef; padding: clamp(3.5rem, 7vw, 5rem) 0 1.5rem; }
.site-footer__brush .brush { right: 0; width: clamp(60px, 12vw, 180px); transform: scaleX(-1); opacity: .9; --brush-a: var(--violet); --brush-b: var(--navy); --brush-c: var(--magenta); }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-right: clamp(60px, 11vw, 170px); }
.site-footer__logo { width: 220px; height: auto; margin-bottom: 1.5rem; }
.site-footer__title { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; margin: 0; }
.site-footer__phone {
	display: inline-block; margin: .1rem 0 1.2rem;
	font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1;
	color: var(--lime); text-decoration: none;
}
.site-footer__phone:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 .6rem; }
.site-footer__col h3:not(:first-child) { margin-top: 1.6rem; }
.site-footer a { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.contact-list li, .contact-address { display: flex; gap: .6rem; align-items: flex-start; }
.contact-list .icon, .contact-address .icon { color: var(--lime); margin-top: .2rem; }
.contact-list a { text-decoration: none; font-weight: 400; }
.social { display: flex; gap: .6rem; margin-bottom: 1rem; }
.social__link {
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, .12); color: #fff;
}
.social__link:hover { background: var(--lime); color: var(--navy); }
.site-footer__tag { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--peach); margin-bottom: 1rem; }
.site-footer__rvoe { font-size: .85rem; opacity: .85; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; }
.site-footer__legal { position: relative; z-index: 1; margin-top: 3rem; font-size: .82rem; opacity: .7; }
@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; padding-right: 40px; }
	.site-footer__intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 60;
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; background: #17893f; }

/* Visor de fotos */
.lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(15, 18, 50, .94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15, 18, 50, .6); }
.lightbox__img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: var(--r-sm); }
.lightbox__btn {
	position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.lightbox__btn:hover { background: #fff; color: var(--navy); }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Páginas interiores ---------- */
.page-shell { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.page-head { margin-bottom: 2rem; }
.page-hero-img { margin: 0 0 2rem; }
.page-hero-img img { border-radius: var(--r-md); width: 100%; height: auto; }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1em; }
.entry-content img { height: auto; border-radius: var(--r-sm); }
.post-list { display: grid; gap: 2rem; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.4rem; align-items: start; }
.post-card:not(:has(.post-card__img)) { grid-template-columns: 1fr; }
.post-card__img img { border-radius: var(--r-sm); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card__date { font-size: .9rem; color: var(--ink-soft); }
.post-card__title { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; margin: .2rem 0 .4rem; }
.post-card__title a { color: var(--navy); text-decoration: none; }
@media (max-width: 600px) { .post-card { grid-template-columns: 1fr; } }
.section--free { padding-block: 3rem; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.strip__track { scroll-behavior: auto; }
}
