/* ===============================================================
   Estilos del sitio Colegio Adultos Maipú.
   Todo el contenido vive dentro del grupo .dir-notion.dir-f
=============================================================== */

/* Mapa de Google (bloque HTML personalizado) */
.cam-mapa {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: clamp(320px, 36vw, 480px);
}

.cam-mapa iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ===============================================================
   BASE VISUAL (estilo Notion)
=============================================================== */
.dir-notion {
	--n-tinta: var(--wp--preset--color--n-tinta);
	--n-gris: var(--wp--preset--color--n-gris);
	--n-azul: var(--wp--preset--color--n-azul);
	--n-borde: var(--wp--preset--color--n-borde);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.dir-notion ::selection {
	background: rgba(35, 131, 226, 0.28);
}

.dir-notion :is(h1, h2, h3) {
	font-family: var(--wp--preset--font-family--inter);
	color: var(--n-tinta);
	text-wrap: balance;
}

.dir-notion h3 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0;
}

.dir-notion a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration-color: rgba(25, 25, 25, 0.3);
	text-underline-offset: 0.2em;
}

.dir-notion a:where(:not(.wp-element-button)):hover {
	text-decoration-color: currentColor;
}

.dir-notion :focus-visible {
	outline: 2px solid var(--n-azul);
	outline-offset: 2px;
	border-radius: 4px;
}

.dir-notion .wp-block-button__link {
	padding: 0.7rem 1.15rem;
	border-radius: 8px;
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 1.3;
	box-shadow: none;
}

.dir-notion .wp-block-button__link:hover {
	transform: none;
	filter: brightness(0.94);
}

.n-boton-chico .wp-block-button__link,
.n-boton-fantasma .wp-block-button__link {
	padding: 0.45rem 0.9rem;
	font-size: 0.95rem;
}

.n-boton-fantasma .wp-block-button__link:hover {
	background-color: rgba(0, 0, 0, 0.05) !important;
	filter: none;
}

/* Cabecera fija y translúcida */
.n-cabecera {
	position: sticky;
	top: 0;
	z-index: 40;
	/* Fondo casi sólido y sin desenfoque: el desenfoque encerraba el menú de celular dentro de la cabecera */
	background: rgba(255, 255, 255, 0.98);
}

.admin-bar .n-cabecera {
	top: 32px;
}

.n-marca {
	margin: 0;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.n-nav .wp-block-navigation-item__content {
	padding: 0.35rem 0.7rem;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 500;
}

.n-nav .wp-block-navigation-item__content:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* Portada */
.n-titular {
	font-size: clamp(2.6rem, 6.2vw, 4.5rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.045em !important;
	line-height: 1.04 !important;
	margin-bottom: 0;
}

.n-bajada {
	max-width: 36rem;
	margin-left: auto !important;
	margin-right: auto !important;
	color: var(--n-gris);
	font-size: clamp(1.125rem, 1.6vw, 1.3rem);
	line-height: 1.5;
}

.n-bajada-izq {
	color: var(--n-gris);
	font-size: 1.15rem;
}

.n-h2 {
	font-size: clamp(2rem, 4vw, 3rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.1 !important;
}

.n-h2-grande {
	font-size: clamp(2.4rem, 5vw, 3.75rem) !important;
}

/* Ventana con una "página" de ejemplo */
.n-ventana {
	margin-top: var(--wp--preset--spacing--50) !important;
	border-radius: 14px;
	border: 1px solid var(--n-borde);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 64px -24px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

.n-ventana-barra {
	margin: 0;
	padding: 0.7rem 1rem 0.7rem 4.5rem;
	position: relative;
	border-bottom: 1px solid var(--n-borde);
	background: #fbfbfa;
	color: var(--n-gris);
	font-size: 0.875rem;
}

.n-ventana-barra::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	transform: translateY(-50%);
	background: #ff5f57;
	box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}

.n-ventana-barra span {
	margin: 0 0.35rem;
	opacity: 0.5;
}

.n-pagina {
	padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

.n-pagina > * {
	margin-block-start: 0;
}

.n-pagina-icono {
	font-size: 3.5rem;
	line-height: 1;
	margin-bottom: 0.75rem !important;
}

.n-pagina-titulo {
	margin-top: 0 !important;
	margin-bottom: 1.25rem !important;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.n-props {
	padding-bottom: 1.25rem;
	margin-bottom: 1.25rem !important;
	border-bottom: 1px solid var(--n-borde);
}

.n-prop {
	gap: 0.75rem !important;
	padding: 0.35rem 0;
	font-size: 0.975rem;
}

.n-prop p {
	margin: 0;
}

.n-prop-nombre {
	flex: none;
	width: 8.5rem;
	color: var(--n-gris);
}

.n-tag {
	display: inline-block;
	padding: 0 0.45rem;
	border-radius: 4px;
	font-size: 0.925rem;
	line-height: 1.6;
}

.n-tag-verde {
	background: #dbeddb;
	color: #1c3829;
}

.n-tag-azul {
	background: #d3e5ef;
	color: #183347;
}

/* Lista de tareas */
.n-todo {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.n-todo li {
	position: relative;
	padding: 0.3rem 0 0.3rem 2rem;
	font-size: 1.05rem;
}

.n-todo li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 1.05rem;
	height: 1.05rem;
	box-sizing: border-box;
	border: 1.5px solid #37352f;
	border-radius: 3px;
	background: #fff;
}

.n-todo li.n-hecho {
	color: rgba(55, 53, 47, 0.55);
	text-decoration: line-through;
	text-decoration-color: rgba(55, 53, 47, 0.35);
}

.n-todo li.n-hecho::before {
	border-color: var(--n-azul);
	background: var(--n-azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.n-respaldo {
	color: var(--n-gris);
	font-size: 0.95rem;
}

/* Tarjetas pastel */
.n-tarjetas {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.n-tarjeta {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem !important;
	border-radius: 14px;
}

.n-tarjeta > * {
	margin: 0 !important;
}

.n-tarjeta > p {
	color: #3f3e3b;
}

.n-mini {
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px -12px rgba(0, 0, 0, 0.12);
	font-size: 0.95rem;
}

.n-tarjeta .n-mini {
	margin-top: auto !important;
}

.n-mini p {
	margin: 0;
	padding: 0.3rem 0;
	border-bottom: 1px solid #f1f1ef;
}

.n-mini p:last-child {
	border-bottom: 0;
}

.n-mini strong {
	display: inline-block;
	min-width: 4.5rem;
	font-weight: 600;
}

.n-comentario p {
	border-bottom: 0;
}

.n-comentario-autor {
	color: var(--n-gris);
	font-size: 0.825rem;
	padding-bottom: 0 !important;
}

/* Tabla tipo base de datos */
.n-tabla {
	margin-top: 1.5rem !important;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	overflow-x: auto;
}

.n-tabla table {
	border-collapse: collapse;
	width: 100%;
	font-size: 1rem;
}

.n-tabla th,
.n-tabla td {
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--n-borde);
	text-align: left;
}

.n-tabla thead {
	border: 0;
}

.n-tabla thead th {
	color: var(--n-gris);
	font-weight: 500;
	font-size: 0.9rem;
}

.n-tabla tbody tr:last-child td {
	border-bottom: 0;
}

.n-tabla td:nth-child(2) {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.n-tabla td:last-child {
	white-space: nowrap;
}

.n-tabla td:last-child::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.4rem;
	border-radius: 50%;
	background: #4f9768;
	vertical-align: 0.1em;
}

/* Preguntas como bloques "toggle" */
.n-toggle {
	margin-top: 0.15rem !important;
	padding: 0.2rem 0;
	border-radius: 6px;
}

.n-toggle summary {
	position: relative;
	padding: 0.55rem 0.5rem 0.55rem 2rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1.1rem;
	list-style: none;
	cursor: pointer;
}

.n-toggle summary::-webkit-details-marker {
	display: none;
}

.n-toggle summary:hover {
	background: rgba(0, 0, 0, 0.04);
}

.n-toggle summary::before {
	content: "";
	position: absolute;
	left: 0.6rem;
	top: 50%;
	border-left: 7px solid #37352f;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	transform: translateY(-50%);
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.n-toggle[open] summary::before {
	transform: translateY(-50%) rotate(90deg);
}

.n-toggle > p {
	margin: 0.25rem 0 0.75rem !important;
	padding-left: 2rem;
	color: #3f3e3b;
}

/* Callout */
.n-callout {
	margin-top: 2rem !important;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	background: var(--wp--preset--color--n-arena);
	gap: 0.85rem !important;
}

.n-callout p {
	margin: 0;
}

.n-callout .wp-block-group > p + p {
	margin-top: 0.5rem;
}

.n-callout-icono {
	font-size: 1.4rem;
	line-height: 1.3;
}

.n-mapa {
	border-radius: 14px;
	border: 1px solid var(--n-borde);
}

/* Pie */
.n-pie {
	border-top: 1px solid var(--n-borde);
	color: var(--n-gris);
	font-size: 0.95rem;
}

.n-pie .n-marca {
	color: var(--n-tinta);
	margin-bottom: 0.5rem;
}

.n-pie p {
	line-height: 1.8;
}

.n-pie-titulo {
	margin: 0 0 0.25rem !important;
	color: var(--n-tinta);
	font-weight: 600;
}

.n-pie-legal {
	margin-top: 2rem !important;
	font-size: 0.875rem;
}

@media (max-width: 1000px) {
	.n-cta-cabecera .n-boton-fantasma {
		display: none;
	}
}

@media (max-width: 781px) {
	.admin-bar .n-cabecera {
		top: 46px;
	}

	.n-prop {
		flex-wrap: wrap !important;
		gap: 0.15rem 0.75rem !important;
	}

	.n-prop-nombre {
		width: 100%;
		font-size: 0.85rem;
	}
}

.n-cta-cabecera .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 480px) {
	.n-cabecera .n-marca {
		display: none;
	}
}

.n-tabla table.has-fixed-layout {
	table-layout: auto;
}

@media (max-width: 600px) {
	.n-tabla th,
	.n-tabla td {
		padding: 0.65rem 0.6rem;
		font-size: 0.95rem;
		hyphens: none;
		word-break: normal;
	}
}

.n-tabla th {
	white-space: nowrap;
}

/* ===============================================================
   PORTADA, PESTAÑAS E HISTORIAS
=============================================================== */
.dir-f {
	--f-teal: var(--wp--preset--color--f-teal);
}

.dir-f :focus-visible {
	outline-color: var(--f-teal);
}

.dir-f .n-cabecera .wp-block-image img {
	border-radius: 50%;
}

.f-pildora a {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
	background: var(--wp--preset--color--f-teal-suave);
	color: var(--wp--preset--color--f-teal-oscuro) !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
}

.f-pildora a:hover {
	background: #cfeaee;
}

.f-nota {
	color: var(--n-gris);
	font-size: 0.9rem;
	margin-top: 0.75rem !important;
}

.f-hero-foto {
	margin-top: var(--wp--preset--spacing--50) !important;
}

.f-hero-foto img {
	border-radius: 16px;
	box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.45);
}

/* Pestañas con íconos */
.f-tabs {
	gap: 0.5rem !important;
	margin-top: 1.75rem !important;
}

.f-tabs p {
	margin: 0;
}

.f-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--n-borde);
	background: #fff;
	color: var(--n-tinta) !important;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.f-tabs a:hover {
	background: #f7f7f5;
}

.f-tabs a.is-activa {
	background: var(--n-tinta);
	border-color: var(--n-tinta);
	color: #fff !important;
}

/* Paneles: carrusel horizontal (sin JS se desliza con el dedo o con los enlaces) */
.f-paneles {
	display: flex;
	gap: 1.5rem;
	margin-top: 1.5rem !important;
	padding: 0.5rem 0.25rem 2.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.f-paneles::-webkit-scrollbar {
	display: none;
}

.f-paneles > .f-panel {
	flex: 0 0 100%;
	margin: 0 !important;
	scroll-snap-align: center;
	scroll-margin-top: 6rem;
}

.f-paneles .n-ventana {
	margin-top: 0 !important;
}

/* Tablero tipo Notion */
.f-tablero {
	gap: 1rem !important;
	margin-top: 0.5rem !important;
}

.f-col {
	padding: 0.75rem;
	border-radius: 10px;
	background: #f7f7f5;
}

.f-col > * {
	margin: 0 0 0.6rem !important;
}

.f-col-titulo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--n-gris);
	font-size: 0.875rem;
}

.f-tag-morado {
	background: #e8deee;
	color: #412454;
}

.f-card {
	padding: 0.75rem 0.85rem;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 15, 15, 0.1), 0 0 0 1px rgba(15, 15, 15, 0.04);
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--n-gris);
}

.f-card strong {
	color: var(--n-tinta);
	font-weight: 600;
}

.f-llegar {
	margin: 0 !important;
}

.f-mapa {
	height: 100%;
	min-height: 340px;
}

/* Cifra de egresados */
.f-cifra {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	font-size: clamp(4.5rem, 12vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 1;
	color: var(--f-teal);
	font-variant-numeric: tabular-nums;
}

/* Historias alternadas */
.f-h2-historia {
	font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.12 !important;
}

.f-historia-link {
	margin-top: 1.25rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--n-borde);
	font-size: 1.05rem;
}

.f-historia-link a {
	text-decoration: none !important;
}

.f-historia-link a:hover {
	color: var(--f-teal) !important;
}

.f-video {
	margin: 0;
}

.f-video img {
	border-radius: 14px;
	box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.5);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.f-video a {
	position: relative;
	display: block;
}

.f-video a::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4.25rem;
	height: 4.25rem;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23191919'/%3E%3C/svg%3E") 56% 50% / 45% no-repeat;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease;
}

.f-video a:hover img {
	transform: scale(1.015);
}

.f-video a:hover::after {
	transform: translate(-50%, -50%) scale(1.08);
}

@media (min-width: 782px) {
	.f-invertir {
		flex-direction: row;
	}
}

/* Grilla de beneficios */
.f-grilla {
	margin-top: var(--wp--preset--spacing--50) !important;
	gap: 1rem !important;
}

.f-beneficio {
	padding: 1.25rem;
	border-radius: 12px;
	background: #fff;
}

.f-beneficio > * {
	margin: 0 !important;
}

.f-beneficio h3 {
	margin-top: 0.6rem !important;
	font-size: 1.1rem !important;
}

.f-beneficio p:last-child {
	margin-top: 0.3rem !important;
	color: var(--n-gris);
	font-size: 0.975rem;
	line-height: 1.5;
}

.f-beneficio-icono {
	font-size: 1.75rem;
	line-height: 1;
}

/* Protagonistas */
.f-voces {
	margin-top: var(--wp--preset--spacing--50) !important;
	gap: 1.25rem !important;
}

.f-voz > * {
	margin: 0 !important;
}

.f-voz .wp-block-image img {
	border-radius: 12px;
	object-position: 72% 50% !important;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.f-voz .wp-block-image {
	overflow: hidden;
	border-radius: 12px;
}

.f-voz .wp-block-image a:hover img {
	transform: scale(1.04);
}

.f-voz-nombre {
	margin-top: 0.75rem !important;
	font-weight: 700;
	font-size: 1.1rem;
}

.f-voz-nombre a {
	text-decoration: none !important;
}

.f-voz-rol {
	color: var(--n-gris);
	font-size: 0.925rem;
}

.f-final {
	border-top: 1px solid var(--n-borde);
}

.f-redes {
	gap: 0.75rem !important;
}

@media (max-width: 900px) {
	.f-grilla,
	.f-voces {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 781px) {
	.f-mapa {
		min-height: 280px;
	}

	.f-tablero {
		flex-wrap: nowrap !important;
		overflow-x: auto;
	}

	.f-tablero > .f-col {
		flex: 0 0 78% !important;
	}

	.f-tabs a {
		padding: 0.45rem 0.8rem;
		font-size: 0.925rem;
	}
}

@media (max-width: 480px) {
	.f-grilla {
		grid-template-columns: 1fr !important;
	}
}

/* En el editor los paneles se muestran uno bajo otro para editarlos */
.editor-styles-wrapper .f-paneles {
	display: block;
	overflow: visible;
}

.editor-styles-wrapper .f-paneles > .f-panel {
	margin-bottom: 2rem !important;
}

.n-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
}

@media (max-width: 1000px) {
	.dir-f .n-cabecera .n-marca {
		display: none;
	}
}

.n-pie p {
	overflow-wrap: anywhere;
}

.n-pie .n-marca {
	white-space: normal;
}

/* Cuadros grises para fotos pendientes (bloque Portada: "Añadir imagen" para reemplazar) */
.f-ph {
	min-height: 0 !important;
	border-radius: 14px;
	border: 1.5px dashed #cfcfcb;
	padding: 1.5rem !important;
	overflow: hidden;
}

.f-ph-16x9 {
	aspect-ratio: 16 / 9;
}

.f-ph-4x5 {
	aspect-ratio: 4 / 5;
	border-radius: 12px;
}

.f-ph .wp-block-cover__inner-container {
	max-width: 26rem;
	color: #5f5e5b !important;
}

.f-ph-titulo {
	margin: 0 0 0.35rem !important;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8984;
}

.f-ph-titulo::before {
	content: "";
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 auto 0.6rem;
	background: #a9a8a3;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.f-ph-texto {
	margin: 0 !important;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #5f5e5b;
}

.f-ph-4x5 {
	padding: 1rem !important;
}

.f-ph-4x5 .f-ph-texto {
	font-size: 0.85rem;
}

/* ===============================================================
   CABECERA, PLAN DE ESTUDIOS Y PÁGINAS INTERIORES
=============================================================== */
.f-cabecera-parte {
	position: sticky;
	top: 0;
	z-index: 40;
}

.admin-bar .f-cabecera-parte {
	top: 32px;
}

.f-cabecera-parte .n-cabecera {
	position: static;
}

.n-marca a {
	color: inherit;
	text-decoration: none !important;
}

/* Tabla del plan de estudios */
.f-plan {
	margin-top: 1.25rem !important;
}

.f-plan table {
	font-size: 0.975rem;
}

.f-plan td:last-child::before,
.f-plan td:nth-child(2) {
	font-weight: 400;
}

.f-plan td:last-child::before {
	display: none;
}

.f-plan td:nth-child(3),
.f-plan td:nth-child(4),
.f-plan th:nth-child(3),
.f-plan th:nth-child(4) {
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.f-plan mark {
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	font-size: 0.875rem;
	white-space: nowrap;
}

.f-plan tbody tr:last-child td {
	border-top: 1px solid #d9d9d6;
	background: #fbfbfa;
}

.f-fuente {
	margin-top: 1rem !important;
	color: var(--n-gris);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Páginas interiores */
.f-miga {
	margin-top: 0 !important;
	margin-bottom: 1.5rem !important;
	color: var(--n-gris);
	font-size: 0.9rem;
}

.f-miga a {
	text-decoration: none !important;
}

.f-miga span {
	margin: 0 0.3rem;
	opacity: 0.5;
}

.f-pag-icono {
	margin-top: 0 !important;
	margin-bottom: 0.5rem !important;
	font-size: 4rem;
	line-height: 1;
}

.f-pag-titulo {
	margin-top: 0 !important;
	font-size: clamp(2.4rem, 5.5vw, 3.75rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.05 !important;
}

.f-h2-pag {
	margin-top: 2.5rem !important;
	font-size: clamp(1.5rem, 2.6vw, 1.9rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em !important;
	line-height: 1.2 !important;
}

.f-h2-pag:first-child {
	margin-top: 0 !important;
}

.f-centro {
	text-align: center;
}

.f-lista {
	padding-left: 1.25rem;
}

.f-lista li {
	margin: 0.4rem 0;
}

.f-lista li::marker {
	color: var(--f-teal);
}

.f-niveles {
	margin-top: 1.5rem !important;
}

/* Documentos */
.f-docs {
	border: 1px solid var(--n-borde);
	border-radius: 12px;
	overflow: hidden;
}

.f-docs > * {
	margin: 0 !important;
}

.f-doc {
	gap: 0.85rem !important;
	align-items: center !important;
	padding: 0.85rem 1.1rem;
	border-bottom: 1px solid var(--n-borde);
	transition: background-color 0.15s ease;
}

.f-doc:last-child {
	border-bottom: 0;
}

.f-doc:hover {
	background: #f7f7f5;
}

.f-doc p {
	margin: 0;
}

.f-doc-icono {
	font-size: 1.25rem;
}

.f-doc-nombre {
	flex: 1;
	font-weight: 500;
}

.f-doc-nombre a {
	text-decoration: none !important;
}

.f-doc-tipo {
	padding: 0 0.45rem;
	border-radius: 4px;
	background: #ffe2dd;
	color: #5d1715;
	font-size: 0.8rem;
	font-weight: 600;
}

.f-docs + .n-callout {
	margin-top: 1.5rem !important;
}

.f-props-contacto {
	margin-bottom: 1.5rem !important;
}

.f-props-contacto .n-prop p:last-child {
	overflow-wrap: anywhere;
}

.f-mapa-contacto {
	border-radius: 14px;
	border: 1px solid var(--n-borde);
	min-height: 380px;
}

@media (max-width: 700px) {
	.f-plan table {
		min-width: 600px;
	}

	.f-plan td,
	.f-plan th {
		word-break: normal;
		overflow-wrap: normal;
	}

	.f-ph-16x9 {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 700px) {
	.f-plan::before {
		content: "Desliza la tabla para ver las horas →";
		display: block;
		position: sticky;
		left: 0;
		width: max-content;
		padding: 0.6rem 0.6rem 0.2rem;
		color: var(--n-gris);
		font-size: 0.8rem;
	}
}

/* ===============================================================
   PORTADA EN DOS COLUMNAS, PANEL GRIS, FICHAS DE NIVEL
   Y SECCIONES NUMERADAS
=============================================================== */

/* Portada en dos columnas bajo la ilustración */
.f-ph-ilus {
	aspect-ratio: 5 / 1;
	border-radius: 14px;
}

.f-hero-cols {
	margin-top: var(--wp--preset--spacing--40) !important;
}

.f-hero-titulo {
	margin: 0 !important;
	font-size: clamp(2.75rem, 6.4vw, 5rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.05em !important;
	line-height: 0.98 !important;
}

.f-hero-bajada {
	margin-top: 0 !important;
	font-size: 1.3rem;
	line-height: 1.4;
	color: var(--n-tinta);
}

.f-gratis,
.f-gratis.has-inline-color {
	display: inline-block;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.04em;
	transform: rotate(-3deg);
}

.f-hero-cols .f-nota {
	text-align: left;
}

/* Panel gris con pestañas (como el de Notion) */
.f-panel-gris {
	padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 2.5rem) 1.5rem;
	border-radius: 20px;
	background: var(--wp--preset--color--n-arena);
}

.f-panel-gris .f-tabs {
	margin-top: 0 !important;
}

.f-panel-gris .f-tabs a {
	border-color: transparent;
	background: transparent;
}

.f-panel-gris .f-tabs a:hover {
	background: rgba(0, 0, 0, 0.05);
}

.f-panel-gris .f-tabs a.is-activa {
	background: rgba(0, 0, 0, 0.08);
	border-color: transparent;
	color: var(--n-tinta) !important;
}

.f-panel-gris .f-paneles {
	padding-bottom: 1rem;
}

/* Fichas de nivel */
.f-ficha .n-pagina {
	padding-top: clamp(1.25rem, 4vw, 2.5rem);
}

.f-db-titulo {
	margin: 1.25rem 0 0 !important;
	font-weight: 700;
	font-size: 1.15rem;
}

.f-db-titulo span {
	margin-left: 0.6rem;
	padding: 0.15rem 0.5rem;
	border-bottom: 2px solid var(--n-tinta);
	color: var(--n-gris);
	font-size: 0.8rem;
	font-weight: 500;
}

.f-ficha-tabla {
	margin-top: 0.5rem !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.f-ficha-tabla th,
.f-ficha-tabla td {
	padding-left: 0.4rem !important;
	padding-right: 0.4rem !important;
}

.f-ficha-tabla td:last-child,
.f-ficha-tabla th:last-child {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.f-ficha-tabla td:last-child::before {
	display: none;
}

.f-ficha-tabla td:nth-child(2) {
	white-space: nowrap;
}

.f-ficha-tabla mark {
	padding: 0.1rem 0.45rem;
	border-radius: 4px;
	font-size: 0.85rem;
}

.f-ficha-tabla td em {
	color: var(--n-gris);
}

.f-ficha-tabla tbody tr:last-child td {
	border-top: 1px solid #d9d9d6;
}

.f-ficha .n-callout {
	margin-top: 1.25rem !important;
}

.f-fichas .f-ficha {
	height: 100%;
	margin: 0 !important;
}

.f-fichas .n-pagina {
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
}

/* Secciones numeradas */
.f-num-h2 {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin-top: 0 !important;
	font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.15 !important;
}

.f-num {
	font-size: clamp(3.5rem, 7vw, 5.25rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.8;
	color: var(--n-tinta);
}

.f-gris {
	color: var(--n-gris);
	font-size: 1.075rem;
}

.f-historia-h3 {
	margin-top: 1.75rem !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.25 !important;
}

.f-enlace a {
	color: var(--wp--preset--color--f-teal) !important;
	font-weight: 600;
	text-decoration: none !important;
}

.f-enlace a:hover {
	text-decoration: underline !important;
}

.f-ph-1x1 {
	aspect-ratio: 1;
	border-radius: 16px;
}

.f-mock {
	margin-top: var(--wp--preset--spacing--50) !important;
}

/* Llamado intermedio */
.f-cta-medio {
	font-size: 1.4rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Grilla de beneficios de 3 columnas */
.f-grilla-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.f-grilla .f-beneficio {
	border: 1px solid var(--n-borde);
}

.f-grilla .f-beneficio-icono {
	display: grid;
	place-items: center;
	height: 4.5rem;
	margin: -0.25rem -0.25rem 0.5rem !important;
	border-radius: 8px;
	background: #f7f7f5;
	font-size: 2rem;
}

@media (max-width: 781px) {
	.f-hero-cols .wp-block-column:first-child {
		margin-bottom: 0.5rem;
	}

	.f-ph-ilus {
		aspect-ratio: 16 / 7;
	}

	.f-grilla-3 {
		grid-template-columns: 1fr !important;
	}

	.f-num-h2 {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.f-invertir {
		flex-direction: column-reverse;
	}

	.f-ficha-tabla table {
		font-size: 0.9rem;
	}

	.f-ficha-tabla td:nth-child(2) {
		white-space: normal;
	}
}

.f-ph-21x9 {
	aspect-ratio: 21 / 9;
}

.f-ficha-tabla td:nth-child(2) {
	font-weight: 400 !important;
}

@media (max-width: 781px) {
	.f-ph-21x9 {
		aspect-ratio: 4 / 3;
	}
}

/* Celular: panel gris, pestañas y fichas más compactas */
@media (max-width: 781px) {
	.f-ph-ilus {
		aspect-ratio: auto;
		min-height: 12rem !important;
	}

	.f-panel-gris {
		padding: 0.75rem 0.5rem 0.5rem;
		border-radius: 14px;
	}

	.f-panel-gris .f-tabs {
		flex-wrap: nowrap !important;
		justify-content: flex-start !important;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 0.25rem;
	}

	.f-panel-gris .f-tabs::-webkit-scrollbar {
		display: none;
	}

	.f-panel-gris .f-tabs a {
		white-space: nowrap;
	}

	.f-panel-gris .f-paneles {
		gap: 0.75rem;
		margin-top: 0.75rem !important;
	}

	.f-ficha .n-pagina,
	.f-panel .n-pagina {
		padding: 1.25rem 1rem 1.5rem !important;
	}

	.n-ventana-barra {
		padding-left: 3.75rem;
		font-size: 0.8rem;
	}

	/* La tabla de asignaturas se lee como lista: asignatura, etiqueta debajo y horas a la derecha */
	.f-ficha-tabla thead {
		display: none;
	}

	.f-ficha-tabla table,
	.f-ficha-tabla tbody {
		display: block;
		width: 100%;
	}

	.f-ficha-tabla tr {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 0.75rem;
		padding: 0.55rem 0;
		border-bottom: 1px solid var(--n-borde);
	}

	.f-ficha-tabla td {
		border: 0 !important;
		padding: 0 !important;
		word-break: normal;
		overflow-wrap: normal;
	}

	.f-ficha-tabla td:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
	}

	.f-ficha-tabla td:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
		margin-top: 0.25rem;
		white-space: nowrap !important;
	}

	.f-ficha-tabla td:nth-child(3) {
		grid-column: 2;
		grid-row: 1 / 3;
	}

	.f-ficha-tabla tbody tr:last-child td {
		border-top: 0 !important;
	}

	.f-ficha-tabla tbody tr:last-child td:nth-child(2) {
		display: none;
	}
}

@media (max-width: 781px) {
	.n-ventana-barra {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.f-db-titulo span {
		white-space: nowrap;
	}
}


/* Tablet: menú desplegable a pantalla completa, igual que en celular */
@media (min-width: 600px) and (max-width: 1360px) {
	.n-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

	.n-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}

	.dir-f .n-cabecera .n-marca {
		display: block !important;
	}
}

/* Logo de la cabecera: tamaño fijo, sin comprimirse; enlaces del menú en una sola línea */
.n-cabecera .wp-block-image {
	flex: none !important;
	margin: 0;
}

.n-cabecera .wp-block-image img {
	width: 36px !important;
	height: 36px !important;
	max-width: none !important;
	object-fit: contain;
}

.n-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Botones de la cabecera en una sola fila; el botón WhatsApp de la cabecera se oculta en pantallas medianas (queda el flotante) */
.n-cta-cabecera { flex-wrap: nowrap !important; flex: none !important; }
@media (max-width: 1560px) {
	.n-cta-cabecera .n-boton-fantasma { display: none !important; }
}


/* Protagonistas: grilla de videos */
.f-voces-video .wp-block-embed {
	margin: 0 !important;
}

.f-voces-video .wp-block-embed iframe {
	border-radius: 12px;
}

@media (max-width: 600px) {
	.f-voces.f-voces-video {
		grid-template-columns: 1fr !important;
	}
}

/* Preguntas frecuentes: listas, tablas e índice dentro de las preguntas */
.n-toggle > ul,
.n-toggle > ol {
	margin: 0.25rem 0 0.75rem !important;
	padding-left: 3.25rem;
	color: #3f3e3b;
}

.n-toggle > ul li,
.n-toggle > ol li {
	margin-bottom: 0.35rem;
}

.f-faq-tabla {
	margin: 0.5rem 0 1rem 2rem !important;
	overflow-x: auto;
	border-radius: 10px;
}

.f-faq-tabla table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}

.f-faq-tabla th,
.f-faq-tabla td {
	padding: 0.55rem 0.75rem;
	border: 1px solid #e4e7ec;
	text-align: left;
	vertical-align: top;
}

.f-faq-tabla thead th {
	background: #f2f4f7;
	font-weight: 600;
}

.f-faq-tabla tbody td:first-child {
	font-weight: 600;
}

#resumen .f-faq-tabla {
	margin-left: 0 !important;
}

#resumen .f-faq-tabla tbody td:first-child {
	font-weight: 400;
}

.f-faq-indice {
	margin-top: 1rem !important;
	line-height: 1.9;
	font-size: 0.95rem;
}

.f-faq-indice a {
	text-decoration: none;
	font-weight: 600;
}

.dir-f .n-toggle > ul,
.dir-f .n-toggle > ol {
	padding-left: 1.25rem;
	padding-bottom: 0.5rem;
	color: var(--v2-gris);
}

.dir-f .n-toggle > .f-faq-tabla {
	margin-left: 0 !important;
}

@media (max-width: 600px) {
	.f-faq-tabla table {
		font-size: 0.875rem;
	}
}


/* Carrusel de la galería La vida en el colegio */
.v2-carrusel {
	position: relative;
	margin-top: var(--wp--preset--spacing--50) !important;
}

.v2-carrusel-pista {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1.25rem !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.v2-carrusel-pista::-webkit-scrollbar {
	display: none;
}

.v2-carrusel-pista > .wp-block-image {
	flex: 0 0 calc((100% - 1.25rem) / 2);
	margin: 0 !important;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: 18px;
	background: #f2f4f7;
}

.v2-carrusel-pista > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.v2-carrusel-controles {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.v2-carrusel-flecha {
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid #d0d5dd;
	border-radius: 50%;
	background: #fff;
	color: #0f8295;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.v2-carrusel-pausa {
	width: 2.25rem;
	height: 2.25rem;
	margin-left: 0.25rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #667085;
	font-size: 0.8rem;
	letter-spacing: -0.1em;
	cursor: pointer;
}

.v2-carrusel-pausa:hover,
.v2-carrusel-pausa:focus-visible {
	color: #0f8295;
	background: #e7f4f6;
}

.v2-carrusel-flecha:hover,
.v2-carrusel-flecha:focus-visible {
	border-color: #0f8295;
	background: #e7f4f6;
}

.v2-carrusel-puntos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	max-width: 70%;
}

.v2-carrusel-puntos button {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d0d5dd;
	cursor: pointer;
	transition: width 0.25s ease, background 0.25s ease;
}

.v2-carrusel-puntos button[aria-current="true"] {
	width: 1.4rem;
	background: #0f8295;
}

@media (max-width: 700px) {
	.v2-carrusel-pista > .wp-block-image {
		flex-basis: 88%;
	}

	.v2-carrusel-flecha {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.v2-carrusel-pista {
		scroll-behavior: auto;
	}
}
