/*
================================================================================
ERRD THEME — MAIN STYLESHEET
Exploradores del Rey República Dominicana
Modern, Institutional, Accessible (WCAG 2.2 AA), Responsive, High-Performance
================================================================================
*/

/* 1. RESET & BASE */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	font-family: var(--errd-font-sans);
	color: var(--errd-dark-text);
	background-color: #FFFFFF;
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--errd-transition);
}

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

ul, ol {
	list-style: none;
}

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

:focus-visible {
	outline: 3px solid var(--errd-red-inst);
	outline-offset: 3px;
}

.errd-container {
	width: 100%;
	max-width: var(--errd-container-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* 2. TOPBAR */
.errd-topbar {
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.8125rem;
	font-weight: 700;
	padding: 7px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.errd-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.errd-topbar-motto {
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

.errd-topbar-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.errd-social-links {
	display: flex;
	align-items: center;
	gap: 12px;
}

.errd-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	opacity: 0.85;
	transition: var(--errd-transition);
}

.errd-social-link:hover {
	opacity: 1;
	transform: translateY(-2px);
	color: var(--errd-red-inst);
}

.errd-country-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 600;
	padding-left: 15px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.errd-flag-icon {
	width: 18px;
	height: 12px;
	border-radius: 2px;
	object-fit: cover;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* 3. MAIN HEADER & NAVIGATION */
.errd-site-header {
	background-color: #FFFFFF;
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.errd-site-header.is-scrolled {
	box-shadow: 0 4px 20px rgba(7, 26, 66, 0.08);
	background-color: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
}

.errd-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
}

.errd-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.errd-brand-logo {
	height: 52px;
	width: auto;
	object-fit: contain;
}

.errd-brand-text {
	display: flex;
	flex-direction: column;
}

.errd-brand-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	line-height: 1.1;
	letter-spacing: -0.2px;
}

.errd-brand-subtitle {
	font-size: 0.6875rem;
	font-weight: 700;
	color: var(--errd-blue-inst);
	letter-spacing: 1.8px;
	text-transform: uppercase;
	margin-top: 2px;
}

.errd-desktop-nav {
	display: flex;
	align-items: center;
}

.errd-nav-menu {
	display: flex;
	align-items: center;
	gap: 26px;
}

.errd-nav-menu a {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--errd-navy-deep);
	padding: 8px 0;
	position: relative;
}

.errd-nav-menu a:hover,
.errd-nav-menu .current-menu-item > a,
.errd-nav-menu a.is-active {
	color: var(--errd-blue-inst);
}

.errd-nav-menu .current-menu-item > a::after,
.errd-nav-menu a.is-active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2.5px;
	background-color: var(--errd-red-inst);
	border-radius: 2px;
}

.errd-header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--errd-red-inst);
	color: #FFFFFF !important;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 9px 22px;
	border-radius: var(--errd-radius-full);
	box-shadow: 0 4px 14px rgba(229, 9, 45, 0.35);
	transition: var(--errd-transition);
	margin-left: 15px;
}

.errd-header-cta:hover {
	background-color: var(--errd-red-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(229, 9, 45, 0.45);
}

/* Mobile Nav Toggle */
.errd-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--errd-navy-deep);
}

.errd-nav-toggle svg {
	width: 28px;
	height: 28px;
}

/* 4. HERO BANNER & MULTI-SLIDER ADVANCED */
.errd-hero-section {
	position: relative;
	width: 100%;
	min-height: 600px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-color: var(--errd-navy-deep);
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.errd-hero-section.errd-height-default {
	min-height: 600px;
}

.errd-hero-section.errd-height-fullscreen {
	min-height: 100vh;
}

.errd-hero-section.errd-height-large {
	min-height: 750px;
}

.errd-hero-slider {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
	flex: 1 1 auto;
	display: flex;
	z-index: 2;
	margin: 0;
	padding: 0;
}

.errd-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: inherit;
	opacity: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	z-index: 1;
	transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
	margin: 0;
	padding: 0;
}

.errd-hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	position: relative;
	min-height: inherit;
	height: 100%;
	flex: 1 1 auto;
	z-index: 2;
}

/* Transiciones del Slider */
.errd-slider-effect-slide .errd-hero-slide {
	transform: translateX(40px);
}
.errd-slider-effect-slide .errd-hero-slide.is-active {
	transform: translateX(0);
}

.errd-slider-effect-zoom .errd-hero-slide {
	transform: scale(1.06);
}
.errd-slider-effect-zoom .errd-hero-slide.is-active {
	transform: scale(1);
}

/* Medios y Fotografía de Fondo — Cubre 100% del alto sin margen */
.errd-hero-media {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	z-index: 1;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
}

.errd-hero-img,
.errd-hero-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	transform-origin: center center;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	display: block !important;
}

/* Efecto Ken Burns Cinemático */
.errd-hero-media.has-ken-burns .errd-hero-img {
	animation: errdKenBurns 22s ease-in-out infinite alternate;
}

@keyframes errdKenBurns {
	0% {
		transform: scale(1) translate(0, 0);
	}
	50% {
		transform: scale(1.09) translate(-1%, -1%);
	}
	100% {
		transform: scale(1.15) translate(1%, 0.5%);
	}
}

.errd-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	z-index: 2;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
}

/* ---- Hero scene "Fogata" (campfire with smoke, embers, fireflies and ambience) ---- */
.errd-hero-slide.scene-fogata {
	background-color: #100c0a;
}

.errd-fogata-grade {
	background:
		linear-gradient(90deg, rgba(8, 6, 5, 0.62) 0%, rgba(8, 6, 5, 0.18) 32%, rgba(8, 6, 5, 0) 54%),
		linear-gradient(180deg, rgba(5, 7, 14, 0.28) 0%, rgba(5, 7, 14, 0) 24%, rgba(5, 7, 14, 0) 72%, rgba(0, 0, 0, 0.28) 100%),
		radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
}

.errd-fogata-fx {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 3;
	pointer-events: none;
}

.scene-fogata .errd-hero-tag {
	color: #E4C39A;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	margin-bottom: 1.1rem;
}

.scene-fogata .errd-hero-tag::before {
	width: 2.4rem;
	height: 1px;
	background-color: #E4C39A;
}

.scene-fogata .errd-hero-title {
	max-width: 10ch;
	font-family: "New York", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
	font-weight: 500;
	font-size: clamp(3.1rem, 6.6vw, 6.6rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
	text-transform: none;
	color: #F4EFE6;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.scene-fogata .errd-hero-subtitle {
	color: #E4C39A;
}

.scene-fogata .errd-hero-desc {
	max-width: 34ch;
	margin-top: 1.35rem;
	font-size: clamp(1rem, 1.4vw, 1.18rem);
	line-height: 1.5;
	color: rgba(244, 239, 230, 0.86);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.errd-fogata-sound {
	position: absolute;
	z-index: 6;
	right: max(1.25rem, env(safe-area-inset-right));
	/* Clear the indicators card that overlaps the hero bottom by 50px */
	bottom: calc(50px + max(1.25rem, env(safe-area-inset-bottom)));
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid rgba(228, 195, 154, 0.45);
	border-radius: 999px;
	background: rgba(12, 9, 8, 0.45);
	color: #E4C39A;
	font: 600 0.72rem/1 var(--errd-font-sans);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.errd-fogata-sound:hover {
	background: rgba(12, 9, 8, 0.7);
	border-color: rgba(228, 195, 154, 0.8);
}

.errd-fogata-sound:focus-visible {
	outline: 2px solid #E4C39A;
	outline-offset: 3px;
}

.errd-fogata-sound svg {
	width: 0.95rem;
	height: 0.95rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.errd-fogata-sound[aria-pressed="false"] .errd-fogata-sound-waves {
	opacity: 0;
}

@media (max-width: 720px) {
	.scene-fogata .errd-hero-title {
		font-size: clamp(2.7rem, 13vw, 4.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-fogata-fx {
		display: none;
	}
}

.errd-particles-canvas {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	z-index: 3;
	pointer-events: none;
}

.errd-hero-slide .errd-container {
	position: relative;
	z-index: 4;
	height: 100%;
	min-height: inherit;
	display: flex;
	align-items: center;
}

.errd-hero-content {
	position: relative;
	z-index: 4;
	color: #FFFFFF;
	max-width: 720px;
	padding: 70px 0 90px 0;
	margin: 0;
}

/* Alineaciones de Contenido */
.errd-hero-content.align-center {
	text-align: center;
	margin: 0 auto;
	max-width: 840px;
}
.errd-hero-content.align-center .errd-hero-tag {
	justify-content: center;
}
.errd-hero-content.align-center .errd-hero-tag::before {
	display: none;
}
.errd-hero-content.align-center .errd-hero-desc {
	margin-left: auto;
	margin-right: auto;
}
.errd-hero-content.align-center .errd-hero-actions {
	justify-content: center;
}

.errd-hero-content.align-right {
	text-align: right;
	margin-left: auto;
}
.errd-hero-content.align-right .errd-hero-actions {
	justify-content: flex-end;
}

.errd-hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.errd-hero-tag::before {
	content: '';
	width: 32px;
	height: 3px;
	background-color: var(--errd-red-inst);
	display: inline-block;
	border-radius: 2px;
}

.errd-hero-title {
	font-size: 3.35rem;
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.5px;
	margin-bottom: 8px;
	text-transform: uppercase;
}

/* Dinamismo de Letras: Typewriter */
.errd-typewriter-wrap {
	display: inline;
	color: #60A5FA;
	position: relative;
	white-space: nowrap;
}

.errd-typewriter-cursor {
	display: inline-block;
	color: var(--errd-red-inst);
	font-weight: 300;
	animation: errdCursorBlink 0.75s step-end infinite;
	margin-left: 2px;
}

@keyframes errdCursorBlink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* Dinamismo de Letras: Metallic Shimmer */
.errd-text-shimmer {
	background: linear-gradient(90deg, #FFFFFF 0%, #FDE047 30%, #FFFFFF 65%, #93C5FD 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: errdShimmer 6s linear infinite;
}

@keyframes errdShimmer {
	to {
		background-position: 200% center;
	}
}

.errd-hero-subtitle {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: 20px;
}

.errd-hero-desc {
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 32px;
	max-width: 620px;
}

/* Botones y Acciones del Hero */
.errd-hero-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.errd-btn-royal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--errd-blue-royal);
	color: #FFFFFF;
	padding: 14px 28px;
	border-radius: var(--errd-radius-full);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: all var(--errd-transition-fast);
	border: 2px solid transparent;
}
.errd-btn-royal:hover {
	background-color: #0d3880;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(18, 74, 163, 0.35);
}

.errd-hero-actions .errd-btn-outline {
	border: 2px solid rgba(255, 255, 255, 0.85);
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	padding: 14px 28px;
	border-radius: var(--errd-radius-full);
	font-weight: 700;
	text-decoration: none;
	transition: all var(--errd-transition-fast);
}
.errd-hero-actions .errd-btn-outline:hover {
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	border-color: #FFFFFF;
	transform: translateY(-2px);
}

/* Controles del Slider: Flechas Glassmorphism */
.errd-slider-nav {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	justify-content: space-between;
	padding: 0 25px;
	pointer-events: none;
}

.errd-slider-arrow {
	pointer-events: auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(7, 26, 66, 0.45);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.errd-slider-arrow svg {
	width: 24px;
	height: 24px;
	transition: transform 0.2s ease;
}

.errd-slider-arrow:hover {
	background: var(--errd-red-inst);
	border-color: var(--errd-red-inst);
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(229, 9, 45, 0.4);
}

.errd-slider-prev:hover svg {
	transform: translateX(-2px);
}

.errd-slider-next:hover svg {
	transform: translateX(2px);
}

/* Controles del Slider: Puntos / Indicadores */
.errd-slider-dots {
	position: absolute;
	bottom: 25px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
}

.errd-slider-dot {
	background: transparent;
	border: none;
	padding: 6px 2px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.errd-dot-inner {
	display: block;
	width: 12px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.35);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.errd-slider-dot:hover .errd-dot-inner {
	background: rgba(255, 255, 255, 0.7);
}

.errd-slider-dot.is-active .errd-dot-inner {
	width: 36px;
	background: var(--errd-red-inst);
	box-shadow: 0 0 10px rgba(229, 9, 45, 0.6);
}

/* Barra de Progreso Temporal */
.errd-slider-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.12);
	z-index: 5;
}

.errd-slider-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--errd-blue-inst), var(--errd-red-inst));
}

/* Animación Escalonada de Textos en Slide Activo */
.errd-hero-slide.is-active .errd-hero-tag {
	animation: errdFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}
.errd-hero-slide.is-active .errd-hero-title {
	animation: errdFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.22s both;
}
.errd-hero-slide.is-active .errd-hero-subtitle {
	animation: errdFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}
.errd-hero-slide.is-active .errd-hero-desc {
	animation: errdFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.48s both;
}
.errd-hero-slide.is-active .errd-hero-actions {
	animation: errdFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.62s both;
}

@keyframes errdFadeUp {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsividad para Móviles */
@media (max-width: 768px) {
	.errd-hero-title {
		font-size: 2.25rem;
	}
	.errd-hero-subtitle {
		font-size: 1.05rem;
		letter-spacing: 2px;
	}
	.errd-hero-desc {
		font-size: 1rem;
	}
	.errd-slider-nav {
		display: none;
	}
}

.errd-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--errd-red-inst);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 13px 30px;
	border-radius: var(--errd-radius-full);
	box-shadow: 0 6px 20px rgba(229, 9, 45, 0.4);
	transition: var(--errd-transition);
}

.errd-btn-primary:hover {
	background-color: var(--errd-red-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(229, 9, 45, 0.5);
}

.errd-btn-primary svg {
	transition: transform 0.2s ease;
}

.errd-btn-primary:hover svg {
	transform: translateX(4px);
}

/* 5. INDICATORS / COUNTERS BAR */
.errd-indicators-wrapper {
	position: relative;
	z-index: 10;
	margin-top: -50px;
	margin-bottom: 50px;
	pointer-events: none; /* let clicks reach the hero around the card */
}

.errd-indicators-wrapper .errd-indicators-card {
	pointer-events: auto;
}

.errd-indicators-card {
	background: linear-gradient(135deg, #072358 0%, #063B82 100%);
	border-radius: var(--errd-radius-lg);
	box-shadow: 0 16px 40px rgba(7, 26, 66, 0.25);
	padding: 30px 45px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
}

.errd-indicator-item {
	display: flex;
	align-items: center;
	gap: 22px;
	position: relative;
}

.errd-indicator-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: -15px;
	top: 15%;
	height: 70%;
	width: 1px;
	background-color: rgba(255, 255, 255, 0.2);
}

.errd-indicator-icon {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
}

.errd-indicator-icon svg {
	width: 48px;
	height: 48px;
}

.errd-indicator-content {
	display: flex;
	flex-direction: column;
}

.errd-indicator-number {
	font-size: 1.65rem;
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1.2;
}

.errd-indicator-number strong {
	font-size: 2.1rem;
	font-weight: 900;
}

.errd-indicator-label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 4px;
	line-height: 1.35;
}

/* 6. ABOUT US SECTION */
.errd-about-section {
	padding: 40px 0 70px 0;
}

.errd-about-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	align-items: center;
}

.errd-section-tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--errd-navy-deep);
	margin-bottom: 14px;
}

.errd-section-tag::before {
	content: '';
	width: 24px;
	height: 3px;
	background-color: var(--errd-red-inst);
	display: inline-block;
	border-radius: 2px;
}

.errd-section-title {
	font-size: 2.35rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	line-height: 1.15;
	letter-spacing: -0.5px;
	margin-bottom: 20px;
}

.errd-section-desc {
	font-size: 1.05rem;
	color: var(--errd-gray-dark);
	line-height: 1.7;
	margin-bottom: 30px;
}

.errd-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid var(--errd-navy-deep);
	color: var(--errd-navy-deep);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 11px 26px;
	border-radius: var(--errd-radius-full);
	transition: var(--errd-transition);
}

.errd-btn-outline:hover {
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
	transform: translateY(-2px);
}

.errd-about-visual {
	position: relative;
	border-radius: var(--errd-radius-lg);
	overflow: hidden;
	box-shadow: 0 12px 35px rgba(7, 26, 66, 0.1);
}

.errd-about-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* 7. FEATURED CARDS (GRID 4) */
.errd-cards-section {
	padding: 20px 0 70px 0;
}

.errd-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.errd-feature-card {
	border-radius: var(--errd-radius-md);
	padding: 30px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
	position: relative;
	transition: var(--errd-transition);
	box-shadow: var(--errd-shadow-card);
	overflow: hidden;
}

.errd-feature-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--errd-shadow-lg);
}

.errd-feature-card.theme-navy {
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-feature-card.theme-red {
	background-color: var(--errd-red-inst);
	color: #FFFFFF;
}

.errd-feature-card.theme-white {
	background-color: #FFFFFF;
	color: var(--errd-navy-deep);
	border: 1px solid #E2E8F0;
}

.errd-feature-card.theme-blue {
	background-color: var(--errd-blue-inst);
	color: #FFFFFF;
}

.errd-card-top {
	margin-bottom: 24px;
}

.errd-card-icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}

.errd-card-icon svg {
	width: 38px;
	height: 38px;
}

.errd-card-title {
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 8px;
}

.errd-card-desc {
	font-size: 0.875rem;
	line-height: 1.45;
	opacity: 0.9;
}

.errd-card-bottom {
	display: flex;
	justify-content: flex-end;
}

.errd-card-arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--errd-transition);
	border: 1px solid currentColor;
	opacity: 0.85;
}

.errd-feature-card:hover .errd-card-arrow {
	transform: scale(1.1);
	opacity: 1;
}

/* 8. LATEST NEWS SECTION */
.errd-news-section {
	padding: 50px 0 80px 0;
	background-color: #FAFBFD;
}

.errd-section-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 35px;
}

.errd-view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--errd-red-inst);
}

.errd-view-all-link:hover {
	color: var(--errd-red-hover);
	transform: translateX(4px);
}

.errd-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.errd-news-card {
	background: #FFFFFF;
	border-radius: var(--errd-radius-md);
	overflow: hidden;
	box-shadow: var(--errd-shadow-sm);
	border: 1px solid #E2E8F0;
	display: flex;
	flex-direction: column;
	transition: var(--errd-transition);
}

.errd-news-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--errd-shadow-md);
}

/* 3:4 frame = Instagram's own grid ratio: 4:5 posts fill it almost entirely */
.errd-news-thumb-wrapper {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: var(--errd-navy-deep);
}

/* Soft bottom shade so the date badge reads on any photo */
.errd-news-thumb-wrapper::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 35%;
	background: linear-gradient(to top, rgba(7, 26, 66, 0.55), transparent);
	pointer-events: none;
	z-index: 1;
}

.errd-news-thumb-wrapper > a {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
}

.errd-news-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	transition: transform 0.5s ease;
}

.errd-news-date-badge {
	z-index: 2;
}

/* Single news featured image: complete photo at its own proportions, no bars */
.errd-single-thumb {
	margin-bottom: 35px;
	text-align: center;
}

/* Instagram carousel gallery (single news) */
.errd-gallery {
	margin-bottom: 35px;
}

.errd-gallery-stage {
	position: relative;
	width: min(100%, calc(80vh * var(--errd-ratio, 0.8)));
	aspect-ratio: var(--errd-ratio, 0.8);
	margin: 0 auto;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--errd-navy-deep);
	box-shadow: 0 10px 30px rgba(7, 26, 66, 0.12);
}

.errd-gallery-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.errd-gallery-track::-webkit-scrollbar {
	display: none;
}

.errd-gallery-track:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: -3px;
}

.errd-gallery-slide {
	flex: 0 0 100%;
	height: 100%;
	margin: 0;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.errd-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.errd-gallery-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--errd-radius-full);
	background: rgba(255, 255, 255, 0.92);
	color: var(--errd-navy-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(7, 26, 66, 0.25);
	transition: var(--errd-transition);
}

.errd-gallery-nav:hover {
	background: #FFFFFF;
	transform: translateY(-50%) scale(1.08);
}

.errd-gallery-nav:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-gallery-nav[disabled] {
	opacity: 0;
	pointer-events: none;
}

.errd-gallery-nav.is-prev {
	left: 14px;
}

.errd-gallery-nav.is-next {
	right: 14px;
}

.errd-gallery-counter {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(7, 26, 66, 0.75);
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: var(--errd-radius-full);
	letter-spacing: 0.5px;
	backdrop-filter: blur(4px);
}

.errd-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin: 14px auto 0;
	padding: 2px 2px 6px;
	max-width: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	justify-content: safe center;
}

.errd-gallery-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	background: none;
	cursor: pointer;
	opacity: 0.55;
	transition: var(--errd-transition);
}

.errd-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.errd-gallery-thumb:hover {
	opacity: 0.85;
}

.errd-gallery-thumb[aria-current="true"] {
	opacity: 1;
	border-color: var(--errd-red-inst);
}

.errd-gallery-thumb:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 1px;
}

@media (max-width: 600px) {
	.errd-gallery-nav {
		width: 36px;
		height: 36px;
	}
	.errd-gallery-thumb {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-gallery-track,
	.errd-gallery-thumbs {
		scroll-behavior: auto;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Video player (single news) */
.errd-video-player {
	width: min(100%, calc(80vh * var(--errd-ratio, 0.5625)));
	aspect-ratio: var(--errd-ratio, 0.5625);
	margin: 0 auto 35px;
	border-radius: 12px;
	overflow: hidden;
	background-color: #000000;
	box-shadow: 0 10px 30px rgba(7, 26, 66, 0.12);
}

.errd-video-player video,
.errd-gallery-slide video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: #000000;
}

/* Play button on video news cards: frosted glass so the photo shows through */
.errd-news-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 78px;
	height: 78px;
	transform: translate(-50%, -50%);
	border: 1.5px solid rgba(255, 255, 255, 0.65);
	border-radius: var(--errd-radius-full);
	background: rgba(7, 26, 66, 0.28);
	-webkit-backdrop-filter: blur(6px) saturate(1.3);
	backdrop-filter: blur(6px) saturate(1.3);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), inset 0 0 0 6px rgba(255, 255, 255, 0.08);
	transition: background-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.errd-news-play svg {
	width: 30px;
	height: 30px;
	margin-left: 4px; /* optical centering of the triangle */
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Soft pulsing halo that invites the click */
.errd-news-play::before {
	content: '';
	position: absolute;
	inset: -1.5px;
	border-radius: inherit;
	border: 2px solid rgba(255, 255, 255, 0.55);
	animation: errd-play-pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
	pointer-events: none;
}

@keyframes errd-play-pulse {
	0% {
		transform: scale(1);
		opacity: 0.8;
	}
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

.errd-news-play:hover,
.errd-news-card:hover .errd-news-play {
	background: rgba(229, 9, 45, 0.82);
	border-color: rgba(255, 255, 255, 0.9);
	transform: translate(-50%, -50%) scale(1.08);
}

.errd-news-play:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 4px;
}

@media (max-width: 600px) {
	.errd-news-play {
		width: 64px;
		height: 64px;
	}
	.errd-news-play svg {
		width: 26px;
		height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-news-play::before {
		animation: none;
		opacity: 0;
	}
}

/* Modal video player opened from news cards */
.errd-video-modal {
	position: fixed;
	inset: 0;
	margin: auto;
	width: fit-content;
	height: fit-content;
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 100vw;
	max-height: 100vh;
	overflow: visible;
}

.errd-video-modal::backdrop {
	background: rgba(5, 20, 51, 0.88);
	backdrop-filter: blur(4px);
}

.errd-video-modal video {
	display: block;
	width: min(92vw, calc(86vh * var(--errd-ratio, 0.5625)));
	aspect-ratio: var(--errd-ratio, 0.5625);
	border-radius: 12px;
	background-color: #000000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.errd-video-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.errd-video-modal-close:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.errd-video-modal-close {
		top: 8px;
		right: 8px;
	}
}

/* News status labels ("Lo más reciente", "En tendencia"): outside the photo, never over it */
.errd-news-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.errd-news-label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.9px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #FFFFFF;
}

.errd-news-label.is-recent {
	background: linear-gradient(135deg, var(--errd-red-inst), var(--errd-red-hover));
	box-shadow: 0 3px 10px rgba(197, 7, 38, 0.3);
}

.errd-news-label.is-recent::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FFFFFF;
	animation: errd-label-blink 1.6s ease-in-out infinite;
}

.errd-news-label.is-trending {
	background: linear-gradient(135deg, #F59E0B, #EA580C);
	box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

@keyframes errd-label-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
	.errd-news-label.is-recent::before {
		animation: none;
	}
}

/* In the dark header of a single news item the labels sit inline with the date */
.errd-single-meta .errd-news-labels {
	margin-bottom: 0;
}

/* ---- Interactive "Sistema de Ascenso" poster (Programas page) ---- */
.errd-asc {
	margin-bottom: 40px;
}

.errd-asc-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	margin-bottom: 10px;
}

.errd-asc-intro {
	color: var(--errd-gray-dark);
	line-height: 1.7;
	margin-bottom: 20px;
	max-width: 760px;
}

.errd-asc-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.errd-asc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-asc-chip {
	--chip: var(--errd-navy-deep);
	padding: 8px 14px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-dark-text);
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-asc-chip::before {
	content: '';
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 7px;
	border-radius: 50%;
	background: var(--chip);
	vertical-align: 1px;
}

.errd-asc-chip:first-child::before {
	display: none;
}

.errd-asc-chip:hover {
	border-color: var(--chip);
}

.errd-asc-chip.is-active {
	background: var(--chip);
	border-color: var(--chip);
	color: #FFFFFF;
}

.errd-asc-chip.is-active::before {
	background: #FFFFFF;
}

.errd-asc-chip:focus-visible,
.errd-asc-zoom button:focus-visible,
.errd-asc-detail-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-asc-tools {
	display: flex;
	gap: 8px;
	align-items: center;
}

.errd-asc-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-gray-muted);
	min-width: 240px;
}

.errd-asc-search:focus-within {
	border-color: var(--errd-blue-accent);
}

.errd-asc-search input {
	border: 0;
	outline: 0;
	background: transparent;
	padding: 9px 0;
	font: inherit;
	font-size: 0.9rem;
	color: var(--errd-dark-text);
	width: 100%;
}

.errd-asc-zoom {
	display: flex;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	overflow: hidden;
	background: #FFFFFF;
}

.errd-asc-zoom button {
	width: 40px;
	height: 38px;
	border: 0;
	background: transparent;
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
	font-weight: 700;
	cursor: pointer;
}

.errd-asc-zoom button + button {
	border-left: 1px solid var(--errd-gray-border);
}

.errd-asc-zoom button:hover {
	background: var(--errd-gray-light);
}

.errd-asc-status {
	min-height: 1.3em;
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--errd-blue-inst);
}

.errd-asc-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--errd-radius-md);
	background: #0B2A55;
	box-shadow: var(--errd-shadow-md);
	touch-action: pan-x pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.errd-asc.is-zoomed .errd-asc-viewport {
	touch-action: none;
	cursor: grab;
}

.errd-asc-viewport.is-dragging {
	cursor: grabbing;
}

.errd-asc-stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 2034 / 1314;
	transform-origin: 0 0;
	will-change: transform;
}

.errd-asc-stage.is-animating {
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-asc-stage img,
.errd-asc-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.errd-asc-dim {
	fill: rgba(7, 18, 40, 0.68);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.errd-asc.is-filtering .errd-asc-dim {
	opacity: 1;
}

.errd-asc-hs {
	cursor: pointer;
	outline: none;
}

.errd-asc-hs > * {
	fill: transparent;
	stroke: transparent;
	stroke-width: calc(3px / var(--asc-scale, 1));
	transition: stroke 0.15s ease, fill 0.15s ease;
}

/* Hotspots are invisible hit areas: the hover highlight is drawn by the exact cutout (magnifier).
   The selected element keeps a pulsing outline so it is never confused with the magnifier. */
.errd-asc-hs.is-selected > * {
	stroke: var(--errd-red-inst);
	stroke-width: calc(2.5px / var(--asc-scale, 1));
	stroke-dasharray: none;
	animation: errd-asc-selected 1.6s ease-in-out infinite;
}

@keyframes errd-asc-selected {
	0%, 100% { stroke-opacity: 1; }
	50% { stroke-opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
	.errd-asc-hs.is-selected > * {
		animation: none;
	}
}

.errd-asc-hs.is-muted {
	cursor: default;
}

/* Magnifier: the hovered/selected element grows in place, with its own outline */
.errd-asc-lens {
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.errd-asc-lens.is-on {
	opacity: 1;
}

.errd-asc-lens-zoom {
	transform-box: view-box;
	transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1); /* slight pop */
}

@media (prefers-reduced-motion: reduce) {
	.errd-asc-lens,
	.errd-asc-lens-zoom {
		transition: none;
	}
}

.errd-asc-tip {
	--c: var(--errd-navy-deep);
	position: absolute;
	z-index: 5;
	max-width: 260px;
	padding: 8px 12px;
	border-left: 4px solid var(--c);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 10px 28px rgba(7, 26, 66, 0.3);
	pointer-events: none;
	line-height: 1.3;
}

.errd-asc-tip strong {
	display: block;
	font-size: 0.9rem;
	color: var(--errd-navy-deep);
}

.errd-asc-tip span {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	color: var(--errd-gray-muted);
}

.errd-asc-hint {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	margin: 0;
	padding: 6px 14px;
	border-radius: var(--errd-radius-full);
	background: rgba(7, 26, 66, 0.82);
	color: #FFFFFF;
	font-size: 0.78rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.errd-asc-hint.is-visible {
	opacity: 1;
}

.errd-asc-hint-mobile {
	display: none;
}

@media (max-width: 720px) {
	.errd-asc-hint-desktop {
		display: none;
	}
	.errd-asc-hint-mobile {
		display: inline;
	}
}

.errd-asc-detail {
	--c: var(--errd-navy-deep);
	margin-top: 18px;
	padding: 18px 22px;
	border: 1px solid var(--errd-gray-border);
	border-left: 6px solid var(--c);
	border-radius: var(--errd-radius-md);
	background: #FFFFFF;
	min-height: 84px;
}

.errd-asc-detail-empty {
	margin: 0;
	color: var(--errd-gray-muted);
}

.errd-asc-detail-group {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--c);
}

.errd-asc-detail h3 {
	margin: 4px 0 2px;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
}

.errd-asc-detail-cat {
	margin: 0;
	color: var(--errd-gray-dark);
}

.errd-asc-detail-req {
	margin: 8px 0 0;
	font-size: 0.9rem;
	color: var(--errd-dark-text);
}

.errd-asc-detail-req span {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--errd-gray-light);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--errd-blue-inst);
}

.errd-asc-detail-age {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0 0;
	padding: 8px 14px 8px 8px;
	border-radius: var(--errd-radius-full);
	background: color-mix(in srgb, var(--c) 12%, #FFFFFF);
	border: 1px solid color-mix(in srgb, var(--c) 35%, #FFFFFF);
}

.errd-asc-detail-age span {
	padding: 3px 10px;
	border-radius: var(--errd-radius-full);
	background: var(--c);
	color: #FFFFFF;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.errd-asc-detail-age strong {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
}

.errd-asc-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.errd-asc-detail-btn {
	padding: 7px 14px;
	border: 1.5px solid var(--c);
	border-radius: var(--errd-radius-full);
	background: transparent;
	color: var(--errd-navy-deep);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-asc-detail-btn:hover {
	background: var(--c);
	color: #FFFFFF;
}

@media (max-width: 720px) {
	/* Phones: wider card content, taller viewer; the poster fills its height and is swiped sideways */
	.errd-content-card.errd-asc {
		padding-left: 14px;
		padding-right: 14px;
	}
	.errd-asc-viewport {
		aspect-ratio: 4 / 5 !important;
		touch-action: pan-y;
	}
	.errd-asc-tools {
		width: 100%;
	}
	.errd-asc-search {
		flex: 1;
		min-width: 0;
	}
	.errd-asc-chip {
		padding: 7px 11px;
		font-size: 0.78rem;
	}
	.errd-asc-hint {
		opacity: 1;
		white-space: normal;
		width: calc(100% - 24px);
		text-align: center;
	}
	.errd-asc.is-zoomed .errd-asc-hint {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-asc-stage.is-animating {
		transition: none;
	}
}

/* Official group emblem in each program card (Programas page) */
.errd-program-emblem {
	display: block;
	flex-shrink: 0;
	width: auto;
	max-width: 132px;
	height: 92px;
	object-fit: contain;
	filter: drop-shadow(0 6px 12px rgba(7, 26, 66, 0.22));
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.errd-content-card:hover .errd-program-emblem {
	transform: scale(1.06) rotate(-2deg);
}

@media (max-width: 600px) {
	.errd-program-emblem {
		height: 72px;
		max-width: 104px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-program-emblem {
		transition: none;
	}
}

/* Document viewer: button + dialog (e.g. requirements table of a program) */
.errd-doc-btn {
	--doc-c: var(--errd-navy-deep);
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 4px;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--errd-radius-full);
	background: var(--doc-c);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--doc-c) 35%, transparent);
	transition: var(--errd-transition);
}

.errd-doc-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--doc-c) 45%, transparent);
	filter: brightness(1.08);
}

/* Bronze metallic finish (Senda bronce) */
.errd-doc-btn--bronze {
	--doc-c: #A8692E;
	background: linear-gradient(135deg, #8C5523 0%, #CD7F32 45%, #E3A566 60%, #B87333 100%);
	text-shadow: 0 1px 1px rgba(60, 30, 5, 0.45);
}

.errd-doc-btn--silver {
	--doc-c: #7D8A96;
	background: linear-gradient(135deg, #5B6670 0%, #8A96A1 45%, #AEB8C1 60%, #6F7B86 100%);
	text-shadow: 0 1px 1px rgba(30, 40, 50, 0.5);
}

.errd-doc-btn--gold {
	--doc-c: #B8860B;
	background: linear-gradient(135deg, #8A5F04 0%, #C2920F 45%, #DDB443 60%, #A87D0E 100%);
	text-shadow: 0 1px 1px rgba(70, 45, 0, 0.5);
}

.errd-doc-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.errd-doc-btns .errd-doc-btn {
	margin-top: 0;
}

.errd-doc-soon {
	padding: 48px 24px;
	text-align: center;
	color: #475569;
	font-weight: 600;
}

.errd-doc-btn:focus-visible,
.errd-doc-tool:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 3px;
}

.errd-doc-dialog {
	--doc-c: var(--errd-navy-deep);
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;
	width: min(94vw, 900px);
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.errd-doc-dialog[open] {
	display: flex;
	flex-direction: column;
	animation: errd-doc-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errd-doc-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.errd-doc-dialog::backdrop {
	background: rgba(5, 20, 51, 0.82);
	backdrop-filter: blur(3px);
}

.errd-doc-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 4px solid var(--doc-c);
	background: #FFFFFF;
}

.errd-doc-kicker {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--doc-c);
}

.errd-doc-head h3 {
	margin: 2px 0 0;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
}

.errd-doc-tools {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.errd-doc-tool {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-doc-tool:hover {
	background: var(--doc-c);
	border-color: var(--doc-c);
	color: #FFFFFF;
}

.errd-doc-body {
	overflow: auto;
	padding: 18px;
	background: #F8FAFC;
}

.errd-doc-body img {
	display: block;
	width: 100%;
	max-width: 820px;
	height: auto;
	margin: 0 auto;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(7, 26, 66, 0.12);
}

@media (max-width: 600px) {
	.errd-doc-head {
		padding: 12px 14px;
	}
	.errd-doc-head h3 {
		font-size: 1rem;
	}
	.errd-doc-body {
		padding: 10px;
	}
	/* Phones: the table keeps a readable width and scrolls sideways */
	.errd-doc-body img {
		width: 760px;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-doc-dialog[open] {
		animation: none;
	}
}

/* ---- "Guía de Uniformes" magazine (page-turn flipbook) ---- */
.errd-mag {
	--mag-page-ratio: 0.7727; /* letter page: 816 x 1056 */
	margin-bottom: 40px;
	overflow: hidden;
}

.errd-mag-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 18px;
	margin-bottom: 26px;
}

.errd-mag-title {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	margin-bottom: 8px;
}

.errd-mag-intro {
	max-width: 620px;
	margin: 0;
	color: var(--errd-gray-dark);
	line-height: 1.7;
}

.errd-mag-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.errd-mag-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-mag-btn:hover {
	border-color: var(--errd-navy-deep);
}

.errd-mag-btn.is-primary {
	background: var(--errd-navy-deep);
	border-color: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-mag-btn.is-primary:hover {
	background: var(--errd-blue-inst);
	border-color: var(--errd-blue-inst);
}

.errd-mag-btn:focus-visible,
.errd-mag-nav:focus-visible,
.errd-mag-thumb:focus-visible,
.errd-mag-book:focus-visible,
.errd-mag-track:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 3px;
}

/* Reading surface: soft spotlight like a magazine on a desk */
.errd-mag-stage {
	position: relative;
	padding: 34px 20px;
	border-radius: var(--errd-radius-lg);
	background:
		radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.08), transparent 65%),
		linear-gradient(160deg, #0B2349 0%, var(--errd-navy-deep) 55%, #050F26 100%);
}

/* ---- Desktop book ---- */
.errd-mag-book {
	position: relative;
	width: min(100%, 1040px, calc(78vh * 2 * var(--mag-page-ratio)));
	margin: 0 auto;
	aspect-ratio: calc(2 * var(--mag-page-ratio));
	perspective: 2600px;
	outline: none;
}

.errd-mag-spread {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform 0.75s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Closed book: the cover sits in the centre */
.errd-mag-spread.is-closed {
	transform: translateX(-25%);
}

.errd-mag-leaf {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	transform-origin: left center;
	transform-style: preserve-3d;
	transition: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.errd-mag-leaf.is-flipped {
	transform: rotateY(-180deg);
}

.errd-mag-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	background: #FFFFFF;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.errd-mag-face.is-front {
	border-radius: 2px 6px 6px 2px;
}

.errd-mag-face.is-back {
	transform: rotateY(180deg);
	border-radius: 6px 2px 2px 6px;
}

.errd-mag-face img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

/* Binding shadows on each page, next to the spine */
.errd-mag-face.is-front::before,
.errd-mag-face.is-back::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 9%;
	z-index: 1;
	pointer-events: none;
}

.errd-mag-face.is-front::before {
	left: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent);
}

.errd-mag-face.is-back::before {
	right: 0;
	background: linear-gradient(to left, rgba(0, 0, 0, 0.22), transparent);
}

/* Light and shadow sweeping across the page while it turns */
.errd-mag-shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
}

.errd-mag-face.is-front .errd-mag-shade {
	background: linear-gradient(to left, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 55%, rgba(255, 255, 255, 0.15));
}

.errd-mag-face.is-back .errd-mag-shade {
	background: linear-gradient(to right, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.05) 55%, rgba(255, 255, 255, 0.15));
}

.errd-mag-leaf.is-turning .errd-mag-shade {
	animation: errd-mag-shade 0.85s ease-in-out;
}

@keyframes errd-mag-shade {
	0%, 100% { opacity: 0; }
	50% { opacity: 1; }
}

.errd-mag-gutter {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 1px);
	width: 2px;
	background: rgba(0, 0, 0, 0.25);
	z-index: 500;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.errd-mag-spread.is-closed .errd-mag-gutter {
	opacity: 0;
}

/* Click areas: left half = previous, right half = next */
.errd-mag-hit {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 50%;
	z-index: 600;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.errd-mag-hit.is-prev {
	left: 0;
	cursor: w-resize;
}

.errd-mag-hit.is-next {
	right: 0;
	cursor: e-resize;
}

.errd-mag-hit[disabled] {
	cursor: default;
}

.errd-mag-spread.is-closed ~ .errd-mag-hit.is-prev {
	display: none;
}

.errd-mag-spread.is-closed ~ .errd-mag-hit.is-next {
	right: 25%;
}

/* Corner curl hint on the next page */
.errd-mag-curl {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 0;
	height: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, #E8EDF5 50%, #FFFFFF 62%, #D5DCE8 100%);
	box-shadow: -4px -4px 10px rgba(0, 0, 0, 0.18);
	border-top-left-radius: 4px;
	transition: width 0.3s ease, height 0.3s ease;
}

.errd-mag-hit.is-next:not([disabled]):hover .errd-mag-curl {
	width: 46px;
	height: 46px;
}

/* ---- Phones: one page per screen, swipe ---- */
.errd-mag-track {
	display: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	outline: none;
}

.errd-mag-track::-webkit-scrollbar {
	display: none;
}

.errd-mag-slide {
	flex: 0 0 100%;
	margin: 0;
	padding: 0 6px;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.errd-mag-slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--mag-page-ratio);
	border-radius: 4px;
	background: #FFFFFF;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ---- Controls ---- */
.errd-mag-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 18px auto 0;
	max-width: 620px;
}

.errd-mag-nav {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-mag-nav:hover:not([disabled]) {
	background: var(--errd-navy-deep);
	border-color: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-mag-nav[disabled] {
	opacity: 0.35;
	cursor: default;
}

.errd-mag-progress {
	flex: 1;
	min-width: 0;
	text-align: center;
}

.errd-mag-counter {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--errd-navy-deep);
	margin-bottom: 6px;
}

.errd-mag-track-bar {
	display: block;
	height: 4px;
	border-radius: 4px;
	background: var(--errd-gray-border);
	overflow: hidden;
}

.errd-mag-track-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--errd-blue-inst), var(--errd-red-inst));
	transition: width 0.5s ease;
}

/* Table of contents: page thumbnails */
.errd-mag-toc {
	display: flex;
	gap: 12px;
	margin-top: 22px;
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.errd-mag-thumb {
	flex: 0 0 104px;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	scroll-snap-align: start;
}

.errd-mag-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--mag-page-ratio);
	border-radius: 4px;
	border: 2px solid transparent;
	box-shadow: var(--errd-shadow-sm);
	opacity: 0.75;
	transition: var(--errd-transition);
}

.errd-mag-thumb:hover img {
	opacity: 1;
	transform: translateY(-2px);
}

.errd-mag-thumb.is-current img {
	opacity: 1;
	border-color: var(--errd-red-inst);
}

.errd-mag-thumb-label {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 6px;
	font-size: 0.72rem;
	line-height: 1.3;
	color: var(--errd-gray-dark);
}

.errd-mag-thumb-label b {
	color: var(--errd-navy-deep);
}

/* Page zoom viewer */
.errd-mag-viewer {
	width: min(96vw, 1000px);
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: var(--errd-radius-md);
	background: #FFFFFF;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.errd-mag-viewer::backdrop {
	background: rgba(5, 20, 51, 0.88);
	backdrop-filter: blur(3px);
}

.errd-mag-viewer-bar {
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-weight: 700;
	font-size: 0.9rem;
}

.errd-mag-viewer-close {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #FFFFFF;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.errd-mag-viewer-body {
	max-height: calc(94vh - 54px);
	overflow: auto;
}

.errd-mag-viewer-body img {
	display: block;
	width: 100%;
	height: auto;
}

/* Fullscreen reading */
.errd-mag:fullscreen {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 18px 24px;
	background: #050F26;
	overflow: auto;
}

.errd-mag:fullscreen .errd-mag-head {
	margin-bottom: 12px;
}

.errd-mag:fullscreen .errd-mag-title,
.errd-mag:fullscreen .errd-mag-counter {
	color: #FFFFFF;
}

.errd-mag:fullscreen .errd-mag-intro,
.errd-mag:fullscreen .errd-mag-toc,
.errd-mag:fullscreen .errd-section-tag {
	display: none;
}

.errd-mag:fullscreen .errd-mag-stage {
	padding: 10px;
	background: transparent;
}

.errd-mag:fullscreen .errd-mag-book {
	width: min(100%, calc(80vh * 2 * var(--mag-page-ratio)));
}

@media (max-width: 860px) {
	.errd-mag-book {
		display: none;
	}
	.errd-mag-track {
		display: flex;
	}
	.errd-mag-stage {
		padding: 18px 8px;
	}
	.errd-mag:fullscreen .errd-mag-slide img {
		max-height: 78vh;
		width: auto;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.errd-content-card.errd-mag {
		padding-left: 14px;
		padding-right: 14px;
	}
	.errd-mag-btn span {
		font-size: 0.82rem;
	}
	.errd-mag-thumb {
		flex-basis: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-mag-leaf,
	.errd-mag-spread {
		transition: none;
	}
	.errd-mag-leaf.is-turning .errd-mag-shade {
		animation: none;
	}
}

/* Carousel indicator on news cards */
.errd-news-gallery-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(7, 26, 66, 0.75);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--errd-radius-sm);
	backdrop-filter: blur(4px);
}

.errd-single-thumb-inner {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.errd-single-thumb img {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 80vh;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(7, 26, 66, 0.12);
}

.errd-news-card:hover .errd-news-thumb {
	transform: scale(1.05);
}

.errd-news-date-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--errd-radius-sm);
}


.errd-news-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* The full headline is shown (cut server-side at a whole word); three lines fit any writer headline,
   the clamp is only a safety net for long manual titles */
.errd-news-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	line-height: 1.35;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-wrap: pretty;
}

/* Summary written by the bot: real text, readable regardless of the photo */
.errd-news-excerpt {
	display: -webkit-box;
	margin-bottom: 18px;
	overflow: hidden;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	text-wrap: pretty;
}

/* One card per row (tablet and phone): no rows to even out, so headline and summary show in full
   instead of being clipped mid-word by the line clamp */
@media (max-width: 768px) {
	.errd-news-title,
	.errd-news-excerpt {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
	}
}

.errd-news-link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--errd-navy-deep);
}

.errd-news-card:hover .errd-news-link {
	color: var(--errd-red-inst);
}

/* 9. PROGRAMS SECTION */
.errd-programs-section {
	background: radial-gradient(circle at 50% 30%, #082963 0%, var(--errd-navy-deep) 100%);
	color: #FFFFFF;
	padding: 70px 0 80px 0;
	position: relative;
	overflow: hidden;
}

.errd-programs-section .errd-section-tag {
	color: #FFFFFF;
}

.errd-programs-section .errd-section-title {
	color: #FFFFFF;
	margin-bottom: 50px;
}

.errd-programs-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	text-align: center;
}

.errd-program-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: var(--errd-transition);
}

.errd-program-item:hover {
	transform: translateY(-8px);
}

.errd-program-badge {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 25px rgba(0,0,0,0.3);
	color: #FFFFFF;
	transition: var(--errd-transition);
}

.errd-program-item:hover .errd-program-badge {
	border-color: #FFFFFF;
	transform: scale(1.08);
}

/* Official emblem in place of the round icon */
.errd-program-insignia {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px; /* wider box so the oval Navegantes emblem matches the others' visual weight */
	height: 120px;
	margin-bottom: 14px;
}

.errd-program-insignia img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
	transition: var(--errd-transition);
}

.errd-program-item:hover .errd-program-insignia img {
	transform: scale(1.08);
	filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
}

.errd-program-name {
	font-size: 1.05rem;
	font-weight: 800;
	color: #FFFFFF;
	margin-bottom: 4px;
}

.errd-program-age {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 600;
}

/* 10. ADIESTRAMIENTOS & SERVICIOS SECTIONS */
.errd-trainings-section,
.errd-services-section,
.errd-crowdfunding-section {
	padding: 70px 0;
}

.errd-trainings-grid,
.errd-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 26px;
	margin-top: 35px;
}

.errd-training-card,
.errd-service-card {
	background: #FFFFFF;
	border-radius: var(--errd-radius-md);
	border: 1px solid #E2E8F0;
	padding: 26px;
	box-shadow: var(--errd-shadow-sm);
	transition: var(--errd-transition);
	display: flex;
	flex-direction: column;
}

.errd-training-card:hover,
.errd-service-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--errd-shadow-md);
	border-color: var(--errd-blue-royal);
}

/* Página Regiones: encabezado de tarjeta con logo regional */
.errd-region-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 14px;
}

.errd-region-card-logo {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(7, 26, 66, 0.18);
}

@media (max-width: 480px) {
	.errd-region-card-head {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.errd-region-card-logo {
		width: 80px;
		height: 80px;
	}
}

/* Imagen de portada del servicio (imagen destacada) */
.errd-service-media {
	display: block;
	margin: -26px -26px 20px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--errd-radius-md) var(--errd-radius-md) 0 0;
	background: #071A42;
}

.errd-service-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.errd-service-card:hover .errd-service-media img {
	transform: scale(1.04);
}

.errd-badge-status {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	margin-bottom: 14px;
	text-transform: uppercase;
}

.errd-badge-status.abierto,
.errd-badge-status.activo {
	background-color: #ECFDF5;
	color: #059669;
}

.errd-badge-status.proximo {
	background-color: #EFF6FF;
	color: #2563EB;
}

.errd-badge-status.mantenimiento,
.errd-badge-status.agotado {
	background-color: #FEF2F2;
	color: #DC2626;
}

/* 11. CROWDFUNDING CARDS */
.errd-campaigns-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 30px;
	margin-top: 35px;
}

.errd-campaign-card {
	background: #FFFFFF;
	border-radius: var(--errd-radius-md);
	border: 1px solid #E2E8F0;
	overflow: hidden;
	box-shadow: var(--errd-shadow-card);
	display: flex;
	flex-direction: column;
	transition: var(--errd-transition);
}

.errd-campaign-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--errd-shadow-md);
}

.errd-campaign-thumb {
	height: 190px;
	width: 100%;
	object-fit: cover;
}

.errd-campaign-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.errd-campaign-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	margin-bottom: 10px;
}

.errd-progress-bar-wrapper {
	background-color: #E2E8F0;
	height: 10px;
	border-radius: 5px;
	overflow: hidden;
	margin: 16px 0 10px 0;
}

.errd-progress-bar-fill {
	background: linear-gradient(90deg, var(--errd-blue-inst), var(--errd-red-inst));
	height: 100%;
	border-radius: 5px;
	transition: width 1s ease-in-out;
}

.errd-campaign-stats {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	color: var(--errd-gray-dark);
	font-weight: 600;
	margin-bottom: 20px;
}

/* 12. CALL TO ACTION BANNER (ÚNETE) */
.errd-cta-section {
	position: relative;
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
	padding: 38px 0;
	overflow: hidden;
}

.errd-cta-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
	z-index: 1;
}

.errd-cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #071A42 20%, rgba(7, 26, 66, 0.85) 60%, rgba(7, 26, 66, 0.5) 100%);
	z-index: 2;
}

.errd-cta-inner {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

.errd-cta-text {
	display: flex;
	align-items: center;
	gap: 20px;
}

.errd-cta-divider {
	width: 4px;
	height: 48px;
	background-color: var(--errd-red-inst);
	border-radius: 2px;
	flex-shrink: 0;
}

.errd-cta-title {
	font-size: 1.55rem;
	font-weight: 900;
	color: #FFFFFF;
	line-height: 1.2;
}

.errd-cta-subtitle {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 3px;
}

/* 13. INSTITUTIONAL FOOTER */
.errd-site-footer {
	background-color: var(--errd-navy-deep);
	color: #FFFFFF;
	padding: 45px 0 25px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.errd-footer-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 25px;
}

.errd-footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.errd-footer-brand .errd-brand-title {
	color: #FFFFFF;
}

.errd-footer-brand .errd-brand-subtitle {
	color: #94A3B8;
}

.errd-footer-nav {
	display: flex;
	gap: 22px;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
}

.errd-footer-nav a:hover {
	color: #FFFFFF;
}

.errd-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.65);
}

.errd-footer-script {
	font-family: 'Segoe Script', cursive, sans-serif;
	font-size: 1.15rem;
	color: #FFFFFF;
	font-style: italic;
	opacity: 0.95;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Back to Top */
.errd-back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--errd-red-inst);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.25);
	cursor: pointer;
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: var(--errd-transition);
	border: none;
}

.errd-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

.errd-back-to-top:hover {
	background-color: var(--errd-red-hover);
	transform: translateY(-3px);
}

/* 14. RESPONSIVE DESIGN (MOBILE & TABLET) */
@media (max-width: 1024px) {
	.errd-hero-title {
		font-size: 2.6rem;
	}
	.errd-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.errd-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.errd-programs-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.errd-topbar {
		display: none;
	}
	.errd-desktop-nav {
		display: none;
	}
	.errd-nav-toggle {
		display: block;
	}
	.errd-about-grid {
		grid-template-columns: 1fr;
		gap: 35px;
	}
	.errd-cards-grid {
		grid-template-columns: 1fr;
	}
	.errd-news-grid {
		grid-template-columns: 1fr;
	}
	.errd-programs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.errd-cta-inner {
		flex-direction: column;
		text-align: center;
	}
	.errd-cta-text {
		flex-direction: column;
		gap: 10px;
	}
	.errd-cta-divider {
		display: none;
	}
	.errd-footer-top {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}
	.errd-footer-nav {
		flex-wrap: wrap;
		justify-content: center;
	}
	.errd-footer-bottom {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
	.errd-hero-title {
		font-size: 2.1rem;
	}
}

/* Mobile Drawer */
.errd-mobile-nav {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	height: 100%;
	background-color: #FFFFFF;
	z-index: 1002;
	box-shadow: -5px 0 25px rgba(0,0,0,0.15);
	transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	padding: 40px 25px;
	display: flex;
	flex-direction: column;
}

.errd-mobile-nav.is-open {
	right: 0;
}

.errd-nav-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 26, 66, 0.5);
	backdrop-filter: blur(4px);
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transition: var(--errd-transition);
}

.errd-nav-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.errd-mobile-menu {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 30px;
}

.errd-mobile-menu a {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--errd-navy-deep);
	padding: 8px 0;
	border-bottom: 1px solid #F1F5F9;
}

/* ==========================================================================
   SUBMENUS & DROPDOWN NAVIGATION
   ========================================================================== */
.errd-nav-menu .menu-item-has-children {
	position: relative;
}

.errd-nav-menu .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.errd-nav-menu .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -2px;
	margin-left: 4px;
	transition: transform 0.2s ease;
}

.errd-nav-menu .menu-item-has-children:hover > a::after {
	transform: rotate(-135deg);
}

.errd-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	background: #FFFFFF;
	box-shadow: 0 12px 35px rgba(7, 26, 66, 0.15);
	border-radius: 10px;
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid #E2E8F0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.errd-nav-menu .menu-item-has-children:hover > .sub-menu,
.errd-nav-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.errd-nav-menu .sub-menu li {
	margin: 0;
	padding: 0;
}

.errd-nav-menu .sub-menu a {
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--errd-navy-deep);
	display: block;
	border-bottom: 1px solid #F8FAFC;
	transition: var(--errd-transition);
}

.errd-nav-menu .sub-menu a:hover {
	background-color: #F0F4FA;
	color: var(--errd-red-inst);
	padding-left: 24px;
}

.errd-nav-menu .sub-menu a::after {
	display: none !important;
}

/* Mobile sub-menus */
.errd-mobile-menu .menu-item-has-children > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.errd-mobile-menu .sub-menu {
	padding-left: 18px;
	margin: 8px 0 12px 0;
	border-left: 3px solid var(--errd-red-inst);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.errd-mobile-menu .sub-menu a {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--errd-gray-dark);
	border-bottom: none;
	padding: 4px 0;
}

/* ==========================================================================
   PAGE HERO & INNER TEMPLATES STYLES
   ========================================================================== */
.errd-page-hero {
	background: linear-gradient(135deg, var(--errd-navy-deep) 0%, #082963 100%);
	color: #FFFFFF;
	padding: 60px 0 50px 0;
	position: relative;
	overflow: hidden;
}

.errd-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% 20%, rgba(229, 9, 45, 0.15) 0%, transparent 60%);
	pointer-events: none;
}

.errd-page-hero-inner {
	position: relative;
	z-index: 2;
}

.errd-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 16px;
}

.errd-breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
	transition: var(--errd-transition);
}

.errd-breadcrumbs a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.errd-breadcrumbs-sep {
	opacity: 0.5;
}

.errd-page-hero-title {
	font-size: 2.75rem;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.errd-page-hero-subtitle {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.9);
	max-width: 750px;
	line-height: 1.6;
}

.errd-page-body {
	padding: 60px 0 90px 0;
}

/* Layout Utilities for Pages */
.errd-content-card {
	background: #FFFFFF;
	border-radius: var(--errd-radius-md);
	border: 1px solid #E2E8F0;
	padding: 35px;
	box-shadow: var(--errd-shadow-sm);
	margin-bottom: 30px;
}

.errd-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.errd-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.errd-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

@media (max-width: 1024px) {
	.errd-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.errd-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.errd-page-hero-title { font-size: 2.1rem; }
	.errd-grid-2, .errd-grid-3, .errd-grid-4 { grid-template-columns: 1fr; }
	.errd-content-card { padding: 24px; }
}

/* Emblema Points Visual */
.errd-emblem-badge-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 30px 0;
}

.errd-emblem-group {
	border-radius: var(--errd-radius-md);
	padding: 24px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
}

.errd-emblem-group.gold { border-top: 4px solid #D97706; }
.errd-emblem-group.red { border-top: 4px solid #E5092D; }
.errd-emblem-group.blue { border-top: 4px solid #063B82; }

/* Timeline for History */
.errd-timeline {
	position: relative;
	padding-left: 30px;
	margin: 40px 0;
}

.errd-timeline::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: var(--errd-red-inst);
}

.errd-timeline-item {
	position: relative;
	margin-bottom: 35px;
}

.errd-timeline-dot {
	position: absolute;
	left: -29px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #FFFFFF;
	border: 3px solid var(--errd-red-inst);
}

.errd-timeline-year {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--errd-navy-deep);
	margin-bottom: 6px;
}

/* Contact Form */
.errd-form-group {
	margin-bottom: 20px;
}

.errd-form-group label {
	display: block;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--errd-navy-deep);
	margin-bottom: 6px;
}

.errd-form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid #CBD5E1;
	border-radius: var(--errd-radius-sm);
	font-size: 0.95rem;
	transition: var(--errd-transition);
	background-color: #FFFFFF;
}

.errd-form-control:focus {
	outline: none;
	border-color: var(--errd-blue-inst);
	box-shadow: 0 0 0 3px rgba(6, 59, 130, 0.12);
}

.errd-alert {
	padding: 16px 20px;
	border-radius: var(--errd-radius-sm);
	margin-bottom: 24px;
	font-weight: 600;
	font-size: 0.95rem;
}

.errd-alert-success {
	background-color: #ECFDF5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}


/* ==========================================================================
   REQUISITOS: DESTACAMENTO OFICIAL (Programas)
   ========================================================================== */
.errd-req {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	margin-top: 35px;
	border-radius: var(--errd-radius-lg);
	background: var(--errd-white);
	box-shadow: var(--errd-shadow-lg);
	overflow: hidden;
}

.errd-req-intro {
	position: relative;
	padding: 44px 40px;
	color: #DCE6F5;
	background:
		radial-gradient(circle at 15% 0%, rgba(30, 107, 235, 0.35), transparent 55%),
		radial-gradient(circle at 100% 100%, rgba(229, 9, 45, 0.22), transparent 50%),
		linear-gradient(160deg, var(--errd-navy-deep) 0%, var(--errd-blue-inst) 100%);
	isolation: isolate;
}

/* Faint compass rose watermark */
.errd-req-intro::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -70px;
	width: 260px;
	height: 260px;
	background: conic-gradient(from 45deg, rgba(255, 255, 255, 0.07) 0 12.5%, transparent 0 25%, rgba(255, 255, 255, 0.07) 0 37.5%, transparent 0 50%, rgba(255, 255, 255, 0.07) 0 62.5%, transparent 0 75%, rgba(255, 255, 255, 0.07) 0 87.5%, transparent 0);
	border-radius: 50%;
	z-index: -1;
}

.errd-req-seal {
	position: relative;
	width: 124px;
	margin-bottom: 26px;
}

.errd-req-seal img {
	display: block;
	width: 124px;
	height: 124px;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.errd-req-year {
	position: absolute;
	right: -18px;
	bottom: -6px;
	padding: 4px 12px;
	border-radius: var(--errd-radius-full);
	background: var(--errd-red-inst);
	color: var(--errd-white);
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 1px;
	box-shadow: 0 6px 14px rgba(229, 9, 45, 0.45);
}

.errd-req-kicker {
	display: block;
	margin-bottom: 8px;
	color: #8DB4F5;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.errd-req-intro h2 {
	margin: 0 0 10px;
	color: var(--errd-white);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 900;
	line-height: 1.2;
}

.errd-req-sub {
	margin: 0 0 26px;
	font-size: 1rem;
}

.errd-req-sub strong {
	color: var(--errd-white);
}

.errd-req-motto {
	display: flex;
	flex-direction: column;
	margin: 0 0 26px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 900;
	font-style: italic;
	line-height: 1.05;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

.errd-req-motto .m1 { color: #6FA3F7; }
.errd-req-motto .m2 { color: var(--errd-white); }
.errd-req-motto .m3 { color: #FF5A70; }

.errd-req-motto small {
	margin-top: 8px;
	color: #A9BCD9;
	font-size: 0.72rem;
	font-weight: 700;
	font-style: normal;
	letter-spacing: 1.2px;
}

.errd-req-contact {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
}

.errd-req-contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #8DB4F5;
}

.errd-req-contact a {
	color: var(--errd-white);
	text-decoration: none;
	overflow-wrap: anywhere;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	transition: var(--errd-transition);
}

.errd-req-contact a:hover {
	border-bottom-color: var(--errd-white);
}

.errd-req-steps {
	display: flex;
	flex-direction: column;
	padding: 40px 40px 36px;
}

.errd-req-steps-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.errd-req-steps-head h3 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.2rem;
	font-weight: 800;
}

.errd-req-count {
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: var(--errd-radius-full);
	background: #E8F0FD;
	color: var(--errd-blue-royal);
	font-size: 0.8rem;
	font-weight: 800;
}

.errd-req-list {
	position: relative;
	display: grid;
	gap: 6px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

/* Progress rail behind the step numbers */
.errd-req-list::before {
	content: "";
	position: absolute;
	top: 22px;
	bottom: 22px;
	left: 17px;
	width: 2px;
	background: linear-gradient(var(--errd-blue-accent), var(--errd-red-inst));
	opacity: 0.25;
}

.errd-req-list li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 9px 12px 9px 0;
	border-radius: var(--errd-radius-md);
	transition: var(--errd-transition);
}

.errd-req-list li:hover {
	background: var(--errd-gray-light);
	transform: translateX(4px);
}

.errd-req-num {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: var(--errd-white);
	font-size: 0.95rem;
	font-weight: 900;
	box-shadow: 0 0 0 4px var(--errd-white);
	transition: var(--errd-transition);
}

.errd-req-list li:hover .errd-req-num {
	background: var(--errd-red-inst);
}

.errd-req-list strong {
	display: block;
	color: var(--errd-dark-text);
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
}

.errd-req-list li span:not(.errd-req-num) {
	display: block;
	color: var(--errd-gray-muted);
	font-size: 0.86rem;
}

.errd-req-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.errd-req-flyer-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 22px;
	border: 2px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: var(--errd-white);
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-req-flyer-btn:hover {
	border-color: var(--errd-navy-deep);
	transform: translateY(-2px);
}

.errd-req-flyer-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 3px;
}

.errd-doc-dialog--wide {
	width: min(96vw, 1200px);
}

.errd-doc-dialog--wide .errd-doc-body img {
	width: 100%;
	max-width: none;
	height: auto;
}

@media (max-width: 900px) {
	.errd-req {
		grid-template-columns: 1fr;
	}

	.errd-req-intro,
	.errd-req-steps {
		padding: 32px 22px;
	}
}

@media (max-width: 480px) {
	.errd-req-actions > * {
		justify-content: center;
		width: 100%;
	}
}

/* Home item as a camping tent icon */
.errd-nav-menu .errd-nav-home-icon,
.errd-nav-menu .menu-item-home > a > svg {
	display: block;
	width: 32px;
	height: 24px;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-nav-menu .menu-item-home > a,
.errd-nav-menu .errd-nav-home {
	display: inline-flex;
	align-items: center;
}

.errd-nav-menu .menu-item-home > a:hover svg,
.errd-nav-menu .errd-nav-home:hover svg {
	transform: translateY(-2px) scale(1.08);
}

.errd-nav-home-mobile {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.errd-nav-home-mobile svg {
	width: 29px;
	height: 22px;
}

/* ==========================================================================
   NEWS ARTICLE (single.php)
   ========================================================================== */
.errd-article-hero {
	position: relative;
	padding: 48px 0 120px;
	color: #FFFFFF;
	background:
		radial-gradient(circle at 85% 0%, rgba(30, 107, 235, 0.28), transparent 50%),
		linear-gradient(160deg, var(--errd-navy-deep) 0%, var(--errd-blue-inst) 100%);
}

.errd-article-hero-inner {
	max-width: 900px;
}

.errd-article-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 26px;
	color: #8DB4F5;
	font-size: 0.82rem;
	font-weight: 600;
}

.errd-article-crumbs a {
	color: #C9D8F2;
	text-decoration: none;
}

.errd-article-crumbs a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.errd-article-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.errd-article-section {
	padding-left: 12px;
	border-left: 3px solid var(--errd-red-inst);
	color: #FFFFFF;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-article-kicker .errd-news-labels {
	position: static;
	display: flex;
	gap: 8px;
}

.errd-article-title {
	margin: 0 0 18px;
	color: #FFFFFF;
	font-size: clamp(1.85rem, 4.2vw, 3rem);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.5px;
	text-wrap: balance;
}

.errd-article-lede {
	max-width: 760px;
	margin: 0 0 28px;
	color: #D6E1F3;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.6;
}

.errd-article-byline {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.errd-article-byline-logo {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.errd-article-byline-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.88rem;
}

.errd-article-author {
	color: #FFFFFF;
	font-weight: 700;
}

.errd-article-dates {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	color: #A9BCD9;
}

/* Featured media overlaps the headline block */
.errd-article-media {
	position: relative;
	z-index: 2;
	margin: -90px 0 0;
}

.errd-article-media .errd-container {
	max-width: 1000px;
}

.errd-article-media-frame {
	padding: 18px;
	border-radius: var(--errd-radius-lg);
	background: var(--errd-white);
	box-shadow: var(--errd-shadow-lg);
}

.errd-article-media-frame .errd-gallery,
.errd-article-media-frame .errd-single-thumb {
	margin-bottom: 0;
}

.errd-article-media-frame .errd-video-player {
	margin: 0 auto;
}

.errd-article-media-caption {
	margin-top: 12px;
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	text-align: center;
}

/* Body + sidebar */
.errd-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	max-width: 1180px;
	padding-top: 48px;
	padding-bottom: 80px;
}

.errd-article-main {
	max-width: 720px;
}

/* --------------------------------------------------------------------------
   Editorial body of the article (only .errd-article-body; header, gallery and
   the rest of the page are not affected). Counteracts the global reset
   (margin: 0, list-style: none) for the editor's HTML.
   -------------------------------------------------------------------------- */
.errd-article-body {
	--errd-body-ink: #1E2B45; /* very dark institutional blue-gray, not pure black */
	max-width: 740px;
	color: var(--errd-body-ink);
	font-size: 1.09rem; /* ~17.5px */
	line-height: 1.75;
	text-align: left;
	overflow-wrap: break-word;
}

.errd-article-body p {
	margin: 0 0 1.375rem; /* 22px */
}

.errd-article-body > :last-child {
	margin-bottom: 0;
}

/* Lead: the opening paragraph */
.errd-article-body > p:first-child {
	margin-bottom: 1.75rem;
	color: var(--errd-dark-text);
	font-size: 1.1875rem; /* 19px */
	font-weight: 500;
	line-height: 1.7;
}

/* Drop cap: about three lines, only when the lead starts with a letter (class set by main.js).
   Float-based so it renders the same in every browser. */
.errd-article-body > p.has-dropcap::first-letter {
	float: left;
	margin: 0.1em 0.08em 0 -0.02em;
	color: var(--errd-navy-deep);
	font-size: 4.6em;
	font-weight: 800;
	line-height: 0.78;
}

/* Subheadings (only when the editor uses them) */
.errd-article-body h2 {
	margin: 2.25rem 0 1rem; /* 36px / 16px */
	color: var(--errd-navy-deep);
	font-size: 1.625rem; /* 26px */
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

.errd-article-body h3 {
	margin: 1.75rem 0 0.75rem;
	color: var(--errd-navy-deep);
	font-size: 1.3125rem; /* 21px */
	font-weight: 600;
	line-height: 1.35;
}

.errd-article-body h4 {
	margin: 1.5rem 0 0.6rem;
	color: var(--errd-navy-deep);
	font-size: 1.125rem;
	font-weight: 600;
}

.errd-article-body > h2:first-child,
.errd-article-body > h3:first-child {
	margin-top: 0;
}

/* Emphasis */
.errd-article-body strong,
.errd-article-body b {
	color: var(--errd-dark-text);
	font-weight: 700;
}

.errd-article-body em,
.errd-article-body i {
	font-style: italic;
}

/* Highlighted quotes (classic <blockquote> and the Quote / Pullquote blocks) */
.errd-article-body blockquote,
.errd-article-body .wp-block-pullquote {
	margin: 2rem 0;
	padding: 20px 26px;
	border: 0;
	border-left: 4px solid var(--errd-blue-inst);
	border-radius: 0 var(--errd-radius-md) var(--errd-radius-md) 0;
	background: #F3F6FB;
	color: var(--errd-navy-deep);
	font-size: 1.2rem;
	font-style: italic;
	font-weight: 500;
	line-height: 1.65;
	text-align: left;
}

.errd-article-body .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.errd-article-body blockquote p {
	margin-bottom: 0.75rem;
}

.errd-article-body blockquote p:last-of-type {
	margin-bottom: 0;
}

.errd-article-body blockquote cite,
.errd-article-body blockquote footer,
.errd-article-body .wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	color: var(--errd-gray-muted);
	font-size: 0.9rem;
	font-style: normal;
	font-weight: 600;
}

.errd-article-body blockquote cite::before,
.errd-article-body blockquote footer::before,
.errd-article-body .wp-block-pullquote cite::before {
	content: "— ";
}

/* Lists */
.errd-article-body ul,
.errd-article-body ol {
	margin: 0 0 1.5rem;
	padding-left: 1.6em;
}

.errd-article-body ul {
	list-style: disc;
}

.errd-article-body ol {
	list-style: decimal;
}

.errd-article-body li {
	margin-bottom: 0.55rem;
	padding-left: 0.3em;
}

.errd-article-body li:last-child {
	margin-bottom: 0;
}

.errd-article-body li > ul,
.errd-article-body li > ol {
	margin: 0.55rem 0 0;
}

.errd-article-body ul > li::marker {
	color: var(--errd-red-inst);
}

.errd-article-body ol > li::marker {
	color: var(--errd-blue-inst);
	font-weight: 700;
}

/* Images inside the text (not the main gallery above) */
.errd-article-body img {
	height: auto;
	border-radius: 10px;
}

.errd-article-body figure,
.errd-article-body .wp-block-image,
.errd-article-body .wp-caption {
	max-width: 100%;
	margin: 2rem 0;
}

.errd-article-body figure img,
.errd-article-body > p > img,
.errd-article-body > p > a > img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 75vh; /* tall portraits stay in view; proportions kept */
	margin: 0 auto;
	object-fit: contain;
}

.errd-article-body figcaption,
.errd-article-body .wp-caption-text,
.errd-article-body .wp-element-caption {
	margin-top: 10px;
	color: var(--errd-gray-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: center;
}

.errd-article-body .alignleft {
	float: left;
	max-width: 50%;
	margin: 0.4rem 1.5rem 1rem 0;
}

.errd-article-body .alignright {
	float: right;
	max-width: 50%;
	margin: 0.4rem 0 1rem 1.5rem;
}

.errd-article-body .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.errd-article-body::after {
	content: "";
	display: table;
	clear: both;
}

/* Photos linked to their full-size file open in the viewer (main.js) */
.errd-article-body a.errd-zoomable {
	display: block;
	cursor: zoom-in;
	text-decoration: none;
}

/* Tables and embeds never overflow the column */
.errd-article-body table {
	display: block;
	max-width: 100%;
	margin: 0 0 1.5rem;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.errd-article-body th,
.errd-article-body td {
	padding: 10px 12px;
	border: 1px solid var(--errd-gray-border);
	text-align: left;
}

.errd-article-body iframe,
.errd-article-body video,
.errd-article-body embed {
	max-width: 100%;
}

.errd-article-body hr {
	width: 80px;
	margin: 2.25rem auto;
	border: 0;
	border-top: 3px solid var(--errd-gray-border);
}

/* Links */
.errd-article-body a:not(.errd-zoomable) {
	color: var(--errd-blue-royal);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.errd-article-body a:not(.errd-zoomable):hover {
	color: var(--errd-red-inst);
	text-decoration-thickness: 2px;
}

.errd-article-body a:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

.errd-article-body a[target="_blank"]:not(.errd-zoomable)::after {
	content: "↗";
	display: inline-block;
	margin-left: 2px;
	font-size: 0.8em;
	text-decoration: none;
}

/* Full-size photo viewer */
.errd-photo-viewer {
	position: fixed;
	inset: 0;
	width: min(96vw, 1200px);
	height: fit-content;
	max-height: 94vh;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.errd-photo-viewer::backdrop {
	background: rgba(5, 20, 51, 0.88);
}

.errd-photo-viewer img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	margin: 0 auto;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.errd-photo-viewer-caption {
	margin-top: 12px;
	color: #DCE6F5;
	font-size: 0.9rem;
	text-align: center;
}

.errd-photo-viewer-close {
	position: absolute;
	top: -14px;
	right: -6px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Share */
.errd-article-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 36px;
	padding: 20px 0;
	border-top: 1px solid var(--errd-gray-border);
	border-bottom: 1px solid var(--errd-gray-border);
}

.errd-article-share-label {
	margin-right: 6px;
	color: var(--errd-navy-deep);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.errd-share-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--errd-gray-light);
	color: var(--errd-navy-deep);
	cursor: pointer;
	transition: var(--errd-transition);
}

.errd-share-btn:hover {
	color: #FFFFFF;
	transform: translateY(-2px);
}

.errd-share-btn.is-whatsapp:hover { background: #25D366; }
.errd-share-btn.is-facebook:hover { background: #1877F2; }
.errd-share-btn.is-x:hover { background: #0F1419; }
.errd-share-btn.is-copy:hover,
.errd-share-btn.is-copy.is-done { background: var(--errd-navy-deep); color: #FFFFFF; }

.errd-share-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 3px;
}

.errd-share-copied {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	white-space: nowrap;
	color: var(--errd-navy-deep);
	font-size: 0.75rem;
	font-weight: 700;
}

/* Previous / next */
.errd-article-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
}

.errd-article-pager-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	text-decoration: none;
	transition: var(--errd-transition);
}

.errd-article-pager-link.is-next {
	grid-column: 2;
	text-align: right;
}

.errd-article-pager-link:hover {
	border-color: var(--errd-navy-deep);
	box-shadow: var(--errd-shadow-md);
}

.errd-article-pager-dir {
	color: var(--errd-red-inst);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.errd-article-pager-title {
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

.errd-article-back {
	margin-top: 32px;
}

/* Sidebar */
.errd-article-aside-box {
	position: sticky;
	top: 110px;
	padding: 24px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: var(--errd-white);
	box-shadow: var(--errd-shadow-card);
}

.admin-bar .errd-article-aside-box {
	top: 142px;
}

.errd-article-aside-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--errd-navy-deep);
	color: var(--errd-navy-deep);
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-article-more {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--errd-gray-border);
	text-decoration: none;
}

.errd-article-more img {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: var(--errd-radius-sm);
	object-fit: cover;
	object-position: center 30%;
}

.errd-article-more-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.errd-article-more-date {
	color: var(--errd-gray-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.errd-article-more-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--errd-navy-deep);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color 0.2s ease;
}

.errd-article-more:hover .errd-article-more-title {
	color: var(--errd-red-inst);
}

.errd-article-aside-all {
	display: inline-block;
	margin-top: 16px;
	color: var(--errd-blue-royal);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.errd-article-aside-all:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.errd-article-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.errd-article-main {
		max-width: none;
	}

	.errd-article-aside-box {
		position: static;
	}
}

@media (max-width: 640px) {
	.errd-article-hero {
		padding: 32px 0 90px;
	}

	.errd-article-media {
		margin-top: -64px;
	}

	.errd-article-media-frame {
		padding: 8px;
		border-radius: var(--errd-radius-md);
	}

	.errd-article-layout {
		padding-top: 32px;
	}

	.errd-article-body {
		font-size: 1.03rem; /* ~16.5px */
		line-height: 1.72;
	}

	.errd-article-body p {
		margin-bottom: 1.2rem;
	}

	.errd-article-body > p:first-child {
		margin-bottom: 1.4rem;
		font-size: 1.09rem; /* ~17.5px */
	}

	.errd-article-body h2 {
		margin: 2rem 0 0.85rem;
		font-size: 1.375rem; /* 22px */
	}

	.errd-article-body h3 {
		font-size: 1.1875rem;
	}

	.errd-article-body blockquote,
	.errd-article-body .wp-block-pullquote {
		margin: 1.6rem 0;
		padding: 16px 18px;
		font-size: 1.08rem;
	}

	.errd-article-body ul,
	.errd-article-body ol {
		padding-left: 1.35em;
	}

	/* No floated images on phones */
	.errd-article-body .alignleft,
	.errd-article-body .alignright {
		float: none;
		max-width: 100%;
		margin: 1.5rem 0;
	}

	.errd-article-pager {
		grid-template-columns: 1fr;
	}

	.errd-article-pager-link.is-next {
		grid-column: auto;
	}
}

/* Very narrow phones: drop cap off to keep the lead readable */
@media (max-width: 359px) {
	.errd-article-body > p.has-dropcap::first-letter {
		float: none;
		margin: 0;
		color: inherit;
		font-size: inherit;
		font-weight: inherit;
		line-height: inherit;
	}
}

/* Sticky header below the WordPress admin bar */
.admin-bar .errd-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .errd-site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .errd-site-header {
		top: 0;
	}
}

/* Related news (after the article) */
.errd-article-related {
	margin-top: 40px;
}

.errd-article-related-title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--errd-navy-deep);
	color: var(--errd-navy-deep);
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-article-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.errd-related-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-white);
	text-decoration: none;
	transition: var(--errd-transition);
}

.errd-related-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--errd-shadow-md);
}

.errd-related-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center 30%;
}

.errd-related-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.errd-related-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	color: var(--errd-gray-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.errd-related-card-cat {
	color: var(--errd-red-inst);
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.errd-related-card-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.errd-related-card:hover .errd-related-card-title {
	color: var(--errd-red-inst);
}

/* Page hero with an institutional seal on the left margin (Contacto: Oficina Nacional logo).
   The seal sits on the same left edge as the breadcrumb; tag, title and intro read right after it. */
.errd-page-hero-split {
	display: flex;
	align-items: center;
	gap: 32px;
}

.errd-page-hero-heading {
	min-width: 0;
}

.errd-page-hero-heading .errd-page-hero-subtitle {
	margin-bottom: 0;
}

.errd-page-hero-logo {
	flex-shrink: 0;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Tablet: smaller seal, still beside the heading */
@media (max-width: 900px) {
	.errd-page-hero-split {
		gap: 22px;
	}

	.errd-page-hero-logo {
		width: 104px;
		height: 104px;
		box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.3);
	}
}

/* Phone: the seal opens the block, on the left margin, above the tag and title */
@media (max-width: 600px) {
	.errd-page-hero-split {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.errd-page-hero-logo {
		width: 84px;
		height: 84px;
	}
}

/* Contact card: several emails, one per line */
.errd-contact-emails {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 700;
}

.errd-contact-emails a {
	overflow-wrap: anywhere;
}

.errd-contact-emails a:hover {
	color: var(--errd-red-inst);
}

/* ==========================================================================
   NAVEGANTES ADVANCEMENT PATHS (requirement tables in the program dialogs)
   ========================================================================== */
.errd-doc-dialog--senda {
	width: min(96vw, 1200px);
}

.errd-doc-dialog--senda .errd-doc-body {
	padding: 20px 22px 18px;
	background: var(--errd-white);
}

.errd-senda {
	--senda: var(--doc-c, var(--errd-navy-deep));
}

.errd-senda-scroll {
	overflow-x: auto;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
}

.errd-senda-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	color: var(--errd-gray-dark);
	font-size: 0.84rem;
	line-height: 1.45;
}

.errd-senda-table thead th {
	position: sticky;
	top: 0;
	padding: 12px 12px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-align: left;
	text-transform: uppercase;
	vertical-align: bottom;
}

.errd-senda-table thead th:last-child {
	background: color-mix(in srgb, var(--senda) 70%, var(--errd-navy-deep));
}

.errd-senda-table tbody tr {
	border-top: 1px solid var(--errd-gray-border);
}

.errd-senda-table tbody tr:nth-child(even) {
	background: #F8FAFC;
}

.errd-senda-table tbody th,
.errd-senda-table td {
	padding: 14px 12px;
	text-align: left;
	vertical-align: top;
}

/* Trimester: knot badge + color */
.errd-senda-trimestre {
	width: 150px;
}

.errd-doc-body .errd-senda-trimestre img { /* Not the generic dialog image style (shadow, 760px on phones) */
	display: block;
	width: 56px;
	max-width: none;
	height: auto;
	margin: 0 0 8px;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 3px 6px rgba(7, 26, 66, 0.18));
}

.errd-senda-trimestre-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}

.errd-senda-trimestre-num {
	color: var(--errd-gray-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.errd-senda-trimestre-color {
	padding: 2px 10px;
	border-radius: var(--errd-radius-full);
	color: #FFFFFF;
	font-size: 0.78rem;
	font-weight: 800;
}

.errd-senda-trimestre-color.is-azul { background: #0E6BA8; }
.errd-senda-trimestre-color.is-rojo { background: #D7262E; }
.errd-senda-trimestre-color.is-verde { background: #179A4A; }
.errd-senda-trimestre-color.is-amarillo { background: #F4C400; color: var(--errd-navy-deep); }

/* Theme */
.errd-senda-tema {
	width: 130px;
}

.errd-senda-tema-cat {
	display: block;
	color: var(--senda);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.errd-senda-tema-name {
	display: block;
	color: var(--errd-navy-deep);
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.3;
}

/* Requirement lists */
.errd-senda-table ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-senda-table li {
	position: relative;
	padding-left: 13px;
}

.errd-senda-table li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--senda);
}

.errd-senda-table td.is-optional {
	background: color-mix(in srgb, var(--senda) 7%, transparent);
	color: var(--errd-navy-deep);
	font-weight: 600;
}

.errd-senda-note {
	margin: 12px 2px 0;
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	font-style: italic;
	line-height: 1.5;
}

/* Phones and small tablets: one card per trimester, no sideways scrolling */
@media (max-width: 760px) {
	.errd-doc-dialog--senda .errd-doc-body {
		padding: 14px;
		background: var(--errd-gray-light);
	}

	.errd-senda-scroll {
		overflow: visible;
		border: 0;
	}

	.errd-senda-table {
		min-width: 0;
		font-size: 0.9rem;
	}

	.errd-senda-table thead {
		display: none;
	}

	.errd-senda-table,
	.errd-senda-table tbody,
	.errd-senda-table tr,
	.errd-senda-table tbody th,
	.errd-senda-table td {
		display: block;
		width: auto;
	}

	.errd-senda-table tbody tr {
		margin-bottom: 14px;
		overflow: hidden;
		border: 1px solid var(--errd-gray-border);
		border-top: 4px solid var(--senda);
		border-radius: var(--errd-radius-md);
		background: var(--errd-white) !important;
	}

	.errd-senda-trimestre {
		display: flex !important;
		align-items: center;
		gap: 14px;
		background: color-mix(in srgb, var(--senda) 8%, #FFFFFF);
	}

	.errd-doc-body .errd-senda-trimestre img {
		width: 48px;
		margin: 0;
	}

	.errd-senda-table td {
		padding: 10px 14px;
		border-top: 1px solid var(--errd-gray-border);
	}

	.errd-senda-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 6px;
		color: var(--errd-navy-deep);
		font-size: 0.7rem;
		font-weight: 800;
		letter-spacing: 1px;
		text-transform: uppercase;
	}

	.errd-senda-tema::before {
		display: none !important;
	}

	.errd-senda-tema {
		display: flex !important;
		align-items: baseline;
		gap: 8px;
	}
}

/* ==========================================================================
   ANNUAL ADVANCEMENT MEDALS (Navegantes: Bronce / Plata / Oro)
   ========================================================================== */
.errd-ascenso-anual {
	margin-top: 8px;
	padding: 18px 18px 20px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.errd-ascenso-anual-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-bottom: 14px;
}

.errd-ascenso-anual-title {
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-ascenso-anual-hint {
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
}

.errd-medals {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-medal {
	/* Metal palette per path: light, base, deep, ring, text */
	--m-light: #F2C49B;
	--m-base: #B8743A;
	--m-deep: #7A4319;
	--m-ring: #5C3210;
	--m-text: #7A4319;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 16px 8px 14px;
	/* Always framed as a button: card with the metal's tint and a soft shadow */
	border: 1px solid color-mix(in srgb, var(--m-base) 35%, #FFFFFF);
	border-radius: var(--errd-radius-md);
	background: linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--m-base) 9%, #FFFFFF) 100%);
	box-shadow: 0 2px 6px rgba(7, 26, 66, 0.06);
	color: var(--errd-navy-deep);
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.errd-medal.is-plata {
	--m-light: #FFFFFF;
	--m-base: #B7C0C9;
	--m-deep: #6E7B87;
	--m-ring: #4E5A66;
	--m-text: #56626E;
}

.errd-medal.is-oro {
	--m-light: #FFF1A8;
	--m-base: #E0B126;
	--m-deep: #9A6F06;
	--m-ring: #6E4F03;
	--m-text: #8A6405;
}

/* The medal: the official annual badge (colors and artwork untouched) inside a bevelled metal ring,
   with a metallic sheen laid over it in soft-light so the hues stay the same */
.errd-medal-badge {
	position: relative;
	display: block;
	width: 92px;
	height: 114px;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--m-base);
	isolation: isolate;
	box-shadow:
		0 0 0 3px var(--m-ring),
		0 0 0 6px var(--m-base),
		0 0 0 7px var(--m-ring),
		inset 0 3px 6px rgba(255, 255, 255, 0.55),
		inset 0 -6px 12px rgba(0, 0, 0, 0.28),
		0 10px 20px rgba(7, 26, 66, 0.22);
	transition: box-shadow 0.25s ease;
}

.errd-medal-badge img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Metallic sheen: highlight top-left, shade bottom-right, fine brushed texture; soft-light keeps the colors */
.errd-medal-badge::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 50%;
	background:
		radial-gradient(ellipse 70% 45% at 30% 18%, rgba(255, 255, 255, 0.85), transparent 70%),
		linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, transparent 40%, rgba(0, 0, 0, 0.35) 100%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.05) 2px 4px);
	mix-blend-mode: soft-light;
	box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.7), inset 0 -4px 8px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

/* Light sweep on hover */
.errd-medal-badge::after {
	content: "";
	position: absolute;
	inset: -40% auto -40% -60%;
	z-index: 2;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
	transform: skewX(-20deg);
	opacity: 0;
	pointer-events: none;
}

.errd-medal-metal {
	color: var(--m-text);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.errd-medal-name {
	margin: 2px 0 10px;
	color: var(--errd-navy-deep);
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.25;
}

.errd-medal-cta-short {
	display: none; /* Phones only */
}

/* Same height for the three medals; the call to action sits on one shared baseline */
.errd-medals > li {
	display: flex;
}

.errd-medal {
	height: 100%;
}

.errd-medal-cta {
	margin-top: auto;
	white-space: nowrap;
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	background: color-mix(in srgb, var(--m-base) 16%, #FFFFFF);
	color: var(--m-text);
	font-size: 0.74rem;
	font-weight: 800;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.errd-medal:hover,
.errd-medal:focus-visible {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--m-base) 40%, #FFFFFF);
	background: #FFFFFF;
	box-shadow: 0 12px 24px rgba(7, 26, 66, 0.1);
}

.errd-medal:hover .errd-medal-badge,
.errd-medal:focus-visible .errd-medal-badge {
	box-shadow:
		0 0 0 3px var(--m-ring),
		0 0 0 6px var(--m-base),
		0 0 0 7px var(--m-ring),
		inset 0 3px 6px rgba(255, 255, 255, 0.6),
		inset 0 -6px 12px rgba(0, 0, 0, 0.28),
		0 14px 26px rgba(7, 26, 66, 0.3);
}

.errd-medal:hover .errd-medal-badge::after,
.errd-medal:focus-visible .errd-medal-badge::after {
	animation: errd-medal-shine 0.9s ease forwards;
}

.errd-medal:hover .errd-medal-cta,
.errd-medal:focus-visible .errd-medal-cta {
	background: var(--m-deep);
	color: #FFFFFF;
}

.errd-medal:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

@keyframes errd-medal-shine {
	0% { left: -60%; opacity: 1; }
	100% { left: 120%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.errd-medal,
	.errd-medal-badge {
		transition: none;
	}

	.errd-medal:hover .errd-medal-badge::after,
	.errd-medal:focus-visible .errd-medal-badge::after {
		animation: none;
	}
}

/* Narrow cards and phones: smaller medals, still side by side */
@media (max-width: 480px) {
	.errd-ascenso-anual {
		padding: 14px 10px 16px;
	}

	.errd-medals {
		gap: 6px;
	}

	.errd-medal {
		padding: 10px 2px;
	}

	.errd-medal-badge {
		width: 70px;
		height: 86px;
	}

	.errd-medal-name {
		font-size: 0.8rem;
	}

	/* Compact pill so each card still reads as a button */
	.errd-medal-cta {
		padding: 3px 12px;
		font-size: 0.72rem;
	}

	.errd-medal-cta-long {
		display: none;
	}

	.errd-medal-cta-short {
		display: inline;
	}

	.errd-medal-name {
		margin-bottom: 8px;
	}
}

/* Dialog of a path whose table is not published yet: its badge and a short note */
.errd-doc-soon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.errd-doc-body .errd-doc-soon-badge {
	width: 98px;
	max-width: none;
	height: auto;
	margin: 0;
	border-radius: 50%;
	box-shadow: 0 10px 20px rgba(7, 26, 66, 0.2);
}

/* ==========================================================================
   PIONEROS ADVANCEMENT PATHS (award-based requirements per trimester)
   ========================================================================== */
.errd-senda-pio {
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
}

.errd-senda-pio-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.errd-doc-body .errd-senda-pio-annual {
	flex-shrink: 0;
	width: 64px;
	max-width: none;
	height: auto;
	margin: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--senda) 70%, #FFFFFF), 0 8px 18px rgba(7, 26, 66, 0.2);
}

.errd-senda-pio-year {
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--errd-radius-full);
	background: var(--senda);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.errd-senda-pio-title {
	margin: 4px 0 0;
	color: var(--errd-navy-deep);
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.2;
}

/* Trimesters */
.errd-senda-pio-trimestres {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.errd-senda-pio-trim {
	--t: #0E6BA8;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-white);
	text-align: center;
}

.errd-senda-pio-trim.is-rojo { --t: #D7262E; }
.errd-senda-pio-trim.is-verde { --t: #179A4A; }
.errd-senda-pio-trim.is-amarillo { --t: #E3B500; }

.errd-senda-pio-trim-head {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 8px 6px;
	background: var(--t);
	color: #FFFFFF;
	line-height: 1.25;
}

.errd-senda-pio-trim.is-amarillo .errd-senda-pio-trim-head {
	color: var(--errd-navy-deep);
}

.errd-senda-pio-trim-head span {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	opacity: 0.9;
}

.errd-senda-pio-trim-head strong {
	font-size: 0.85rem;
	font-weight: 800;
}

.errd-doc-body .errd-senda-pio-trim img {
	width: 58px;
	max-width: none;
	height: auto;
	margin: 12px 0 6px;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 3px 6px rgba(7, 26, 66, 0.18));
}

.errd-senda-pio-award {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 100%;
	padding: 10px 10px;
	border-top: 1px solid var(--errd-gray-border);
	line-height: 1.3;
}

.errd-senda-pio-award strong {
	color: var(--errd-navy-deep);
	font-size: 0.84rem;
	font-weight: 800;
}

/* Award color chips */
.errd-award-chip {
	--c: #F28C28;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--errd-gray-dark);
	font-size: 0.74rem;
	font-weight: 700;
}

.errd-award-chip::before {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.errd-award-chip.is-azul { --c: #1E6BEB; }
.errd-award-chip.is-verde { --c: #179A4A; }
.errd-award-chip.is-rojo { --c: #D7262E; }
.errd-award-chip.is-amarillo { --c: #F4C400; }
.errd-award-chip.is-café { --c: #7A4A26; }
.errd-award-chip.is-platino { --c: linear-gradient(135deg, #F4F6F8, #A9B3BD); }
.errd-award-chip.is-celeste { --c: #6FB7E9; }

.errd-award-or {
	margin: 0 6px;
	color: var(--errd-gray-muted);
	font-size: 0.72rem;
}

/* Required awards */
.errd-senda-pio-required {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 18px;
	padding: 16px 18px;
	border: 1px solid color-mix(in srgb, var(--senda) 30%, #FFFFFF);
	border-left: 4px solid var(--senda);
	border-radius: var(--errd-radius-md);
	background: color-mix(in srgb, var(--senda) 6%, #FFFFFF);
}

.errd-senda-pio-required-text p {
	margin: 0 0 8px;
	line-height: 1.55;
}

.errd-senda-pio-required-text p:last-child {
	margin-bottom: 0;
}

.errd-senda-pio-required-text strong {
	color: var(--errd-navy-deep);
}

.errd-senda-pio-required-list {
	display: grid;
	gap: 10px;
	align-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-senda-pio-required-list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: var(--errd-radius-sm);
	background: var(--errd-white);
	box-shadow: var(--errd-shadow-sm);
}

.errd-senda-pio-required-list strong {
	color: var(--errd-navy-deep);
	font-weight: 800;
}

/* Additional requirements */
.errd-senda-pio-extra {
	margin-top: 18px;
}

.errd-senda-pio-extra h5,
.errd-senda-pio-totals h5 {
	margin: 0 0 8px;
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.errd-senda-pio-extra ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-senda-pio-extra li {
	position: relative;
	padding-left: 16px;
	line-height: 1.5;
}

.errd-senda-pio-extra li::before {
	content: "";
	position: absolute;
	top: 0.5em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--senda);
}

/* Totals */
.errd-senda-pio-totals {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--errd-gray-border);
}

.errd-senda-pio-totals-note {
	margin: -2px 0 10px;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
}

.errd-senda-pio-totals dl {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.errd-senda-pio-totals dl > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 4px;
	padding: 12px;
	border-radius: var(--errd-radius-md);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	text-align: center;
}

.errd-senda-pio-totals dt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.3;
}

.errd-senda-pio-totals dt .errd-award-chip,
.errd-senda-pio-totals dt .errd-award-or {
	color: #C9D8F2;
}

.errd-senda-pio-totals dd {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.9rem;
	font-weight: 900;
	line-height: 1;
}

.errd-senda-pio-apply {
	margin: 14px 0 0;
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	font-style: italic;
}

@media (max-width: 900px) {
	.errd-senda-pio-trimestres,
	.errd-senda-pio-totals dl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.errd-senda-pio-required {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.errd-senda-pio-title {
		font-size: 1.15rem;
	}

	.errd-senda-pio-award strong {
		font-size: 0.8rem;
	}
}

/* ==========================================================================
   GROUP RECOGNITIONS (Pioneros: achievement ribbon and bronze star)
   ========================================================================== */
.errd-logro {
	margin-top: 12px;
	padding: 16px 18px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.errd-logro .errd-ascenso-anual-title {
	display: block;
	margin-bottom: 12px;
}

.errd-logro-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.errd-logro-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 10px;
	text-align: center;
	border: 1px solid color-mix(in srgb, #D9772B 30%, #FFFFFF);
	border-radius: var(--errd-radius-md);
	background: linear-gradient(180deg, #FFFFFF 0%, #FFF7EF 100%);
	box-shadow: 0 2px 6px rgba(7, 26, 66, 0.06);
	color: var(--errd-navy-deep);
	font: inherit;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.errd-logro-btn img {
	flex-shrink: 0;
	width: auto;
	max-width: 100%;
	height: 44px;
	object-fit: contain;
	filter: drop-shadow(0 3px 5px rgba(7, 26, 66, 0.22));
}

.errd-logro-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 0;
}

.errd-logro-text strong {
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.25;
}

.errd-logro-text > span {
	color: #A8692E;
	font-size: 0.76rem;
	font-weight: 800;
}

.errd-logro-btn:hover,
.errd-logro-btn:focus-visible {
	transform: translateY(-3px);
	border-color: #D9772B;
	box-shadow: 0 12px 24px rgba(7, 26, 66, 0.12);
}

.errd-logro-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

/* Dialog content */
.errd-logro-detail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.errd-doc-body .errd-logro-detail-img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 90px;
	margin: 4px 0 0;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 6px 12px rgba(7, 26, 66, 0.2));
}

.errd-logro-rows {
	display: grid;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
}

.errd-logro-rows > div {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	border-top: 1px solid var(--errd-gray-border);
}

.errd-logro-rows > div:first-child {
	border-top: 0;
}

.errd-logro-rows dt {
	padding: 12px 14px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	line-height: 1.35;
	text-transform: uppercase;
}

.errd-logro-rows dd {
	margin: 0;
	padding: 12px 16px;
	background: var(--errd-white);
	color: var(--errd-gray-dark);
	font-size: 0.92rem;
	line-height: 1.55;
}

.errd-logro-rows > div:nth-child(even) dd {
	background: #F8FAFC;
}

.errd-logro-detail.is-star {
	flex-direction: row;
	align-items: flex-start;
}

.errd-logro-detail.is-star .errd-logro-detail-img {
	max-height: 120px;
}

.errd-logro-star-text {
	color: var(--errd-gray-dark);
	font-size: 0.95rem;
	line-height: 1.6;
}

.errd-logro-star-text p {
	margin: 0 0 12px;
}

.errd-logro-star-text h5 {
	margin: 0 0 8px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
}

.errd-logro-star-text ul {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.errd-logro-star-text li {
	position: relative;
	padding-left: 16px;
}

.errd-logro-star-text li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #A8692E;
}

.errd-logro-star-text .errd-award-chip {
	margin: 0 2px;
}

.errd-logro-star-max {
	padding: 10px 14px;
	border-left: 4px solid #A8692E;
	border-radius: 0 var(--errd-radius-sm) var(--errd-radius-sm) 0;
	background: #FBF4EC;
	color: var(--errd-navy-deep);
}

@media (max-width: 600px) {
	.errd-logro-rows > div {
		grid-template-columns: 1fr;
	}

	.errd-logro-rows dt {
		padding: 8px 14px;
	}

	.errd-logro-detail.is-star {
		flex-direction: column;
		align-items: center;
	}
}

/* Year label on the annual medals */
.errd-medal-year {
	margin-bottom: 2px;
	padding: 1px 8px;
	border-radius: var(--errd-radius-full);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ==========================================================================
   NAVEGANTES: FULL ADVANCEMENT JOURNEY (3 years)
   ========================================================================== */
.errd-recorrido-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin-top: 12px;
	padding: 12px 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
}

.errd-recorrido-btn:hover,
.errd-recorrido-btn:focus-visible {
	transform: translateY(-2px);
	background: var(--errd-blue-inst);
	box-shadow: 0 12px 24px rgba(7, 26, 66, 0.2);
}

.errd-recorrido-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-recorrido-btn-badges {
	display: flex;
	flex-shrink: 0;
}

.errd-recorrido-btn-badges img {
	width: 26px;
	height: auto;
	margin-left: -6px;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.errd-recorrido-btn-badges img:first-child {
	margin-left: 0;
}

.errd-recorrido-btn-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.errd-recorrido-btn-text strong {
	font-size: 0.9rem;
	font-weight: 800;
}

.errd-recorrido-btn-text span {
	color: #A9BCD9;
	font-size: 0.74rem;
}

.errd-recorrido-btn-arrow {
	font-size: 1.1rem;
	font-weight: 800;
}

/* Dialog */
.errd-recorrido-years {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-recorrido-year {
	--y: #A8692E;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-white);
	text-align: center;
}

.errd-recorrido-year.is-plata { --y: #7D8A96; }
.errd-recorrido-year.is-oro { --y: #B8860B; }

.errd-recorrido-year-head {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 10px 8px;
	background: var(--y);
	color: #FFFFFF;
	line-height: 1.25;
}

.errd-recorrido-year-head span {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	opacity: 0.9;
}

.errd-recorrido-year-head strong {
	font-size: 0.92rem;
	font-weight: 800;
}

.errd-recorrido-year h5,
.errd-recorrido-cinta h5 {
	margin: 14px 0 8px;
	color: var(--errd-navy-deep);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.errd-recorrido-trim {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 6px;
	width: 100%;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.errd-recorrido-trim li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.errd-doc-body .errd-recorrido-trim img,
.errd-doc-body .errd-recorrido-annual,
.errd-doc-body .errd-recorrido-cinta img {
	max-width: 100%;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 3px 6px rgba(7, 26, 66, 0.18));
}

.errd-doc-body .errd-recorrido-trim img {
	width: 52px;
	height: auto;
}

.errd-recorrido-trim span {
	color: var(--errd-gray-muted);
	font-size: 0.7rem;
	font-weight: 700;
}

.errd-doc-body .errd-recorrido-annual {
	width: 74px;
	height: auto;
	margin-bottom: 16px;
	border-radius: 50%;
}

.errd-recorrido-cinta {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 14px;
	padding: 6px 14px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: #F8FAFC;
}

.errd-doc-body .errd-recorrido-cinta img {
	width: 240px;
	height: auto;
	border-radius: 3px;
}

@media (max-width: 640px) {
	.errd-recorrido-years {
		grid-template-columns: 1fr;
	}

	.errd-recorrido-trim {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.errd-recorrido-btn-text span {
		display: none;
	}
}
/* ==========================================================================
   SEGUIDORES DE LA SENDA: CINTA DE LOGRO + GUÍA PARA EL LÍDER
   ========================================================================== */
.errd-logro-icon {
	flex-shrink: 0;
	color: #672783;
}

.errd-doc-body .errd-cinta-seg {
	max-height: 64px;
	outline: 1px solid rgba(7, 26, 66, 0.12);
}

.errd-cinta-req {
	display: grid;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-cinta-req > li {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding: 16px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-white);
}

.errd-cinta-req > li:nth-child(even) {
	background: #F8FAFC;
}

.errd-cinta-req-n {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	border-radius: var(--errd-radius-md);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 1.7rem;
	font-weight: 900;
	line-height: 1;
}

.errd-cinta-req-n small {
	margin-top: 4px;
	color: #C9D8F2;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.errd-cinta-req h5 {
	margin: 0 0 10px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.45;
}

.errd-cinta-req h5 .errd-award-chip {
	margin-left: 2px;
	vertical-align: 1px;
}

/* The award rows are stored at 2x: cap them at their page size */
.errd-doc-body .errd-cinta-req img {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	mix-blend-mode: multiply; /* The page's white background melts into the row */
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

.errd-cinta-req p {
	margin: 8px 0 0;
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

.errd-cinta-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-cinta-slots i {
	width: 34px;
	height: 34px;
	border: 4px solid var(--slot-c, #8CCB5E);
	border-radius: 50%;
	background: #FFFFFF;
}

.errd-guia {
	display: grid;
	gap: 18px;
	color: var(--errd-gray-dark);
	font-size: 0.95rem;
	line-height: 1.6;
}

.errd-guia section {
	padding: 16px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: var(--errd-white);
}

.errd-guia h5 {
	margin: 0 0 10px;
	padding-left: 12px;
	border-left: 4px solid #672783;
	color: var(--errd-navy-deep);
	font-size: 1rem;
	font-weight: 800;
}

.errd-guia p {
	margin: 0 0 10px;
}

.errd-guia-steps {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-guia-steps li {
	position: relative;
	padding-left: 18px;
}

.errd-guia-steps li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #672783;
}

.errd-guia-recursos {
	background: #F8F3FB;
}

.errd-guia-mision {
	margin: 0;
	padding: 10px 14px;
	border-radius: var(--errd-radius-sm);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-weight: 700;
}

@media (max-width: 600px) {
	.errd-cinta-req > li {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 14px;
	}

	.errd-cinta-req-n {
		flex-direction: row;
		gap: 8px;
		justify-self: start;
		min-height: 0;
		padding: 6px 12px;
		font-size: 1.2rem;
	}

	.errd-cinta-req-n small {
		margin-top: 0;
	}

	.errd-cinta-slots i {
		width: 28px;
		height: 28px;
	}
}
/* ==========================================================================
   SHARED: RIBBON SECTIONS, STAR VARIANTS
   ========================================================================== */
.errd-logro-section {
	align-self: stretch;
	margin: 6px 0 -6px;
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.errd-logro-rows dd ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 18px;
}

.errd-logro-rows dd p {
	margin: 0 0 4px;
}

/* Exploradores: green accents in the shared leader's guide */
#exploradores .errd-logro-icon,
.errd-guia.is-exploradores h5 {
	color: #2D8A3A;
}

.errd-guia.is-exploradores h5 {
	border-left-color: #2D8A3A;
	color: var(--errd-navy-deep);
}

.errd-guia.is-exploradores .errd-guia-steps li::before {
	background: #2D8A3A;
}

.errd-guia.is-exploradores .errd-guia-recursos {
	background: #F1F8F2;
}

.errd-logro-notes {
	display: grid;
	gap: 10px;
	width: 100%;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	line-height: 1.6;
}

.errd-logro-notes p {
	margin: 0;
	padding: 12px 14px;
	border-left: 4px solid var(--doc-c, #672783);
	border-radius: 0 var(--errd-radius-sm) var(--errd-radius-sm) 0;
	background: #F8FAFC;
}

.errd-logro-star-max.is-plata {
	border-left-color: #7D8A96;
	background: #F1F4F7;
}

.errd-logro-star-max.is-oro {
	border-left-color: #B8860B;
	background: #FBF5E1;
}

/* ==========================================================================
   EXPLORADORES: E1-E3
   ========================================================================== */
.errd-medal.is-e1,
.errd-medal.is-e2,
.errd-medal.is-e3 {
	--m-light: #FFFFFF;
	--m-base: #C9D1D9;
	--m-deep: #7E8A96;
	--m-ring: #55616D;
	--m-text: #2D8A3A;
}

.errd-senda-exp-reqs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.errd-senda-exp-reqs li {
	--c: #A9B3BD;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 10px;
	text-align: center;
	border: 1px solid var(--errd-gray-border);
	border-top: 5px solid var(--c);
	border-radius: var(--errd-radius-md);
	background: linear-gradient(180deg, #F7F9FB 0%, #FFFFFF 100%);
}

.errd-senda-exp-reqs li.is-azul { --c: #1E6BEB; }
.errd-senda-exp-reqs li.is-rojo { --c: #D7262E; }
.errd-senda-exp-reqs li.is-verde { --c: #179A4A; }

.errd-senda-exp-reqs strong {
	color: var(--errd-navy-deep);
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.3;
}

.errd-senda-exp-num {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.85rem;
	font-weight: 900;
}

.errd-senda-exp-reqs li.is-reto .errd-senda-exp-num {
	background: var(--c);
}

@media (max-width: 760px) {
	.errd-senda-exp-reqs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.errd-senda-exp-reqs li.is-reto {
		grid-column: 1 / -1;
	}
}

/* ==========================================================================
   MÁXIMOS RECONOCIMIENTOS: MOLH + SENDA DEL SABLE
   ========================================================================== */
.errd-maximos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.errd-maximo-btn {
	--c: #B8860B;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 22px;
	text-align: left;
	border: 1px solid color-mix(in srgb, var(--c) 35%, #FFFFFF);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #FFFFFF 0%, color-mix(in srgb, var(--c) 9%, #FFFFFF) 100%);
	box-shadow: 0 2px 8px rgba(7, 26, 66, 0.06);
	color: var(--errd-navy-deep);
	font: inherit;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.errd-maximo-btn.is-sable {
	--c: #1E3F8F;
}

.errd-maximo-btn img {
	flex-shrink: 0;
	width: auto;
	height: 128px;
	filter: drop-shadow(0 6px 10px rgba(7, 26, 66, 0.25));
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-maximo-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.errd-maximo-kicker {
	color: var(--c);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.errd-maximo-text strong {
	font-size: 1.1rem;
	font-weight: 900;
	line-height: 1.25;
}

.errd-maximo-desc {
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	line-height: 1.5;
}

.errd-maximo-cta {
	margin-top: 4px;
	color: var(--c);
	font-size: 0.8rem;
	font-weight: 800;
}

.errd-maximo-btn:hover,
.errd-maximo-btn:focus-visible {
	transform: translateY(-3px);
	border-color: var(--c);
	box-shadow: 0 14px 28px rgba(7, 26, 66, 0.12);
}

.errd-maximo-btn:hover img {
	transform: rotate(-4deg) scale(1.04);
}

.errd-maximo-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-doc-body .errd-maximo-detail-img {
	max-height: 170px;
}

.errd-maximo-intro {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: center;
}

.errd-maximo-foot {
	width: 100%;
	margin: 0;
}

.errd-alternos {
	width: 100%;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-md);
	background: #FFFFFF;
}

.errd-alternos summary {
	padding: 14px 18px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
}

.errd-alternos[open] summary {
	border-bottom: 1px solid var(--errd-gray-border);
}

.errd-alternos-body {
	display: grid;
	gap: 18px;
	padding: 16px 18px 18px;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	line-height: 1.55;
}

.errd-alternos h5 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
}

.errd-alternos h5 span {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #B8860B;
	color: #FFFFFF;
	font-size: 0.8rem;
}

.errd-alternos p {
	margin: 0 0 6px;
}

.errd-alternos ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding-left: 20px;
}

.errd-alternos-memo {
	columns: 2;
	column-gap: 28px;
	margin: 0;
	padding-left: 26px;
	list-style: lower-alpha;
}

.errd-alternos-memo li {
	break-inside: avoid;
	margin-bottom: 3px;
}

@media (max-width: 760px) {
	.errd-maximos {
		grid-template-columns: 1fr;
	}

	.errd-maximo-btn {
		gap: 14px;
		padding: 14px 16px;
	}

	.errd-maximo-btn img {
		height: 100px;
	}

	.errd-alternos-memo {
		columns: 1;
	}
}
/* ==========================================================================
   SISTEMA DE ASCENSO: LAUNCH BUTTON + FULL-SCREEN VIEWER
   ========================================================================== */
.errd-asc-section {
	margin-bottom: 40px;
}

.errd-asc-launch {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 28px;
	width: 100%;
	margin-top: 8px;
	padding: 14px;
	text-align: left;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #0B2A55 0%, #071A42 100%);
	box-shadow: var(--errd-shadow-md);
	color: #FFFFFF;
	font: inherit;
	cursor: zoom-in;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.errd-asc-launch-media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--errd-radius-md);
	aspect-ratio: 2034 / 1314;
	background: #0B2A55;
}

.errd-asc-launch-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.errd-asc-launch-lens {
	position: absolute;
	inset: 50% auto auto 50%;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 10px 30px rgba(7, 26, 66, 0.45);
	color: var(--errd-navy-deep);
	transform: translate(-50%, -50%) scale(0.9);
	opacity: 0.92;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.errd-asc-launch-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 14px 8px 0;
}

.errd-asc-launch-kicker {
	color: #F5B400;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-asc-launch-text strong {
	font-size: clamp(1.25rem, 2.2vw, 1.65rem);
	font-weight: 900;
	line-height: 1.2;
}

.errd-asc-launch-desc {
	color: #C9D8F2;
	font-size: 0.95rem;
	line-height: 1.55;
}

.errd-asc-launch-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 11px 20px;
	border-radius: var(--errd-radius-full);
	background: #F5B400;
	color: var(--errd-navy-deep);
	font-size: 0.92rem;
	font-weight: 800;
	transition: background 0.25s ease, transform 0.25s ease;
}

.errd-asc-launch:hover,
.errd-asc-launch:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 22px 44px rgba(7, 26, 66, 0.28);
}

.errd-asc-launch:hover .errd-asc-launch-media img,
.errd-asc-launch:focus-visible .errd-asc-launch-media img {
	transform: scale(1.05);
	filter: brightness(0.85);
}

.errd-asc-launch:hover .errd-asc-launch-lens,
.errd-asc-launch:focus-visible .errd-asc-launch-lens {
	transform: translate(-50%, -50%) scale(1.05);
	opacity: 1;
}

.errd-asc-launch:hover .errd-asc-launch-cta {
	background: #FFC93D;
}

.errd-asc-launch:focus-visible {
	outline: 3px solid #F5B400;
	outline-offset: 3px;
}

/* Viewer */
html.errd-asc-modal-open {
	overflow: hidden;
}

.errd-asc-modal {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(4, 14, 34, 0.96);
	color: #FFFFFF;
	overflow: hidden;
}

.errd-asc-modal::backdrop {
	background: rgba(4, 14, 34, 0.75);
	backdrop-filter: blur(4px);
}

.errd-asc-modal[open] {
	display: flex;
	flex-direction: column;
	animation: errd-asc-modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errd-asc-modal-in {
	from { opacity: 0; transform: scale(0.97); }
	to { opacity: 1; transform: none; }
}

.errd-asc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(7, 26, 66, 0.9);
}

.errd-asc-modal-kicker {
	color: #F5B400;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.errd-asc-modal-head h2 {
	margin: 2px 0 0;
	color: #FFFFFF;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
}

.errd-asc-modal-close {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.errd-asc-modal-close:hover,
.errd-asc-modal-close:focus-visible {
	background: #D7262E;
	border-color: #D7262E;
	transform: rotate(90deg);
}

.errd-asc-modal-close:focus-visible {
	outline: 3px solid #F5B400;
	outline-offset: 2px;
}

.errd-asc.errd-asc-modal-body {
	/* Poster width: as wide as fits whole in the screen height (header, toolbar and margins aside) */
	--asc-w: min(100%, 1400px, calc((100dvh - 330px) * 2034 / 1314));
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 16px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	overflow-y: auto;
	overscroll-behavior: contain;
}

.errd-asc-modal-intro {
	max-width: 900px;
	margin: 0 auto 12px;
	color: #C9D8F2;
	font-size: 0.9rem;
	line-height: 1.5;
	text-align: center;
}

.errd-asc-modal-body .errd-asc-toolbar,
.errd-asc-modal-body .errd-asc-status,
.errd-asc-modal-body .errd-asc-detail {
	max-width: var(--asc-w);
	margin-left: auto;
	margin-right: auto;
}

.errd-asc-modal-body .errd-asc-status {
	color: #C9D8F2;
}

/* The whole poster fits the screen height on desktop; on phones the tall viewer from the base styles applies */
.errd-asc-modal-body .errd-asc-viewport {
	width: var(--asc-w);
	margin: 0 auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.errd-asc-modal-body .errd-asc-detail {
	margin-top: 16px;
	color: var(--errd-gray-dark);
}

@media (max-width: 720px) {
	.errd-asc-launch {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 10px;
	}

	.errd-asc-launch-text {
		padding: 4px 8px 10px;
	}

	.errd-asc-launch-cta {
		align-self: stretch;
		justify-content: center;
	}

	.errd-asc-modal-head {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.errd-asc-modal-head h2 {
		font-size: 0.98rem;
	}

	.errd-asc-modal-close {
		width: 42px;
		height: 42px;
	}

	.errd-asc.errd-asc-modal-body {
		padding-left: 12px;
		padding-right: 12px;
	}

	.errd-asc-modal-intro {
		display: none;
	}

	.errd-asc.errd-asc-modal-body {
		--asc-w: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-asc-modal[open] {
		animation: none;
	}

	.errd-asc-launch,
	.errd-asc-launch-media img,
	.errd-asc-launch-lens {
		transition: none;
	}
}
/* ==========================================================================
   PROGRAM CARDS: ADVANCEMENT ROW (full card width, two balanced columns)
   ========================================================================== */
.errd-program-advance {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--errd-gray-border);
}

.errd-program-advance > .errd-ascenso-anual,
.errd-program-advance > .errd-logro {
	display: flex;
	flex-direction: column;
	margin-top: 0;
}

.errd-program-advance > .errd-ascenso-anual .errd-medals,
.errd-program-advance > .errd-logro .errd-logro-buttons {
	flex: 1;
}

.errd-program-advance .errd-logro-buttons {
	align-content: stretch;
}

/* Navegantes has no group recognitions: the full-journey button fills the right column as a feature card */
.errd-program-advance > .errd-recorrido-btn {
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	margin-top: 0;
	padding: 28px 24px;
	border-radius: var(--errd-radius-lg);
	background: radial-gradient(120% 90% at 50% 0%, #12407F 0%, var(--errd-navy-deep) 70%);
	text-align: center;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-badges img {
	width: 72px;
	margin-left: -14px;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-badges img:first-child {
	margin-left: 0;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text {
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text strong {
	font-size: 1.2rem;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text span {
	display: block;
	font-size: 0.85rem;
}

.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-arrow {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #F5B400;
	color: var(--errd-navy-deep);
}

@media (max-width: 900px) {
	.errd-program-advance {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.errd-program-advance > .errd-recorrido-btn {
		flex-direction: row;
		padding: 14px 16px;
		text-align: left;
	}

	.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-badges img {
		width: 34px;
		margin-left: -8px;
	}

	.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text {
		flex: 1;
		align-items: flex-start;
	}

	.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text strong {
		font-size: 0.95rem;
	}

	.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-arrow {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 640px) {
	.errd-program-advance > .errd-recorrido-btn .errd-recorrido-btn-text span {
		display: none;
	}

	/* Recognitions as compact rows: artwork left, text right */
	.errd-logro-btn {
		flex-direction: row;
		justify-content: flex-start;
		gap: 14px;
		padding: 12px 14px;
		text-align: left;
	}

	.errd-logro-btn img,
	.errd-logro-btn .errd-logro-icon {
		width: 84px;
		height: 34px;
	}

	.errd-logro-text {
		align-items: flex-start;
	}
}
/* Spiritual challenge patch beside the lessons section of the Exploradores guide */
.errd-doc-body .errd-guia-parche {
	float: right;
	width: 88px;
	height: auto;
	margin: 0 0 10px 16px;
	border-radius: 0;
	box-shadow: none;
	filter: drop-shadow(0 4px 8px rgba(7, 26, 66, 0.2));
}

.errd-guia section::after {
	content: "";
	display: table;
	clear: both;
}
/* Medium widths: when the recognitions wrap to 2 + 1, the last one spans the row as a horizontal card */
.errd-program-advance > .errd-logro {
	container-type: inline-size;
}

@container (min-width: 312px) and (max-width: 520px) {
	.errd-logro-buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.errd-logro-buttons > .errd-logro-btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		flex-direction: row;
		gap: 16px;
	}

	.errd-logro-buttons > .errd-logro-btn:last-child:nth-child(odd) .errd-logro-text {
		align-items: flex-start;
		text-align: left;
	}
}
/* ==========================================================================
   OFFICIAL SOURCE CREDIT (content from the leader's manual)
   ========================================================================== */
.errd-source-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--errd-gray-border);
	border-left: 3px solid var(--errd-navy-deep);
	border-radius: 0 var(--errd-radius-sm) var(--errd-radius-sm) 0;
	background: #F8FAFC;
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.errd-source-note svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--errd-navy-deep);
	opacity: 0.7;
}

.errd-source-note strong {
	color: var(--errd-navy-deep);
	font-weight: 800;
}
/* ==========================================================================
   MARCO LEGAL Y TÉRMINOS DE USO
   ========================================================================== */
.errd-legal {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: start;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 64px;
}

.errd-legal-toc {
	position: sticky;
	top: 110px;
	padding: 20px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-sm, 0 2px 8px rgba(7, 26, 66, 0.06));
}

.errd-legal-toc-title {
	display: block;
	margin-bottom: 12px;
	color: var(--errd-navy-deep);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.errd-legal-toc ol {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: legal-toc;
}

.errd-legal-toc li {
	counter-increment: legal-toc;
}

.errd-legal-toc a {
	display: flex;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--errd-radius-sm);
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.errd-legal-toc a::before {
	content: counter(legal-toc);
	flex-shrink: 0;
	color: var(--errd-red, #C0141A);
	font-weight: 800;
}

.errd-legal-toc a:hover,
.errd-legal-toc a:focus-visible {
	background: #F1F5F9;
	color: var(--errd-navy-deep);
}

.errd-legal-updated {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--errd-gray-border);
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	line-height: 1.5;
}

.errd-legal-updated strong {
	color: var(--errd-navy-deep);
}

.errd-legal-doc {
	min-width: 0;
	color: var(--errd-gray-dark);
	font-size: 1rem;
	line-height: 1.75;
}

.errd-legal-doc p {
	margin: 0 0 14px;
}

.errd-legal-doc ul,
.errd-legal-doc ol {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
	padding-left: 22px;
}

/* The theme reset removes list markers; documents need them back */
.errd-legal-doc ul {
	list-style: disc;
}

.errd-legal-doc ol {
	list-style: decimal;
}

.errd-legal-doc .errd-legal-tiers {
	list-style: none;
}

.errd-legal-doc li::marker {
	color: var(--errd-red, #C0141A);
	font-weight: 800;
}

.errd-legal-doc a {
	color: var(--errd-blue-inst, #0B4E92);
	font-weight: 700;
}

/* Notice summary (dark card, like the reference) */
.errd-legal-notice {
	margin-bottom: 36px;
	padding: 28px 30px;
	border-left: 5px solid #F5B400;
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #0B2A55 0%, #071A42 100%);
	box-shadow: var(--errd-shadow-md);
	color: #C9D8F2;
	font-size: 0.95rem;
}

.errd-legal-notice-kicker {
	display: block;
	margin-bottom: 10px;
	color: #F5B400;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.errd-legal-notice-copy {
	color: #FFFFFF;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.5;
}

.errd-legal-notice strong {
	color: #FFFFFF;
}

.errd-legal-notice p:last-child {
	margin-bottom: 0;
}

/* Sections */
.errd-legal-section {
	scroll-margin-top: 110px;
	margin-bottom: 28px;
	padding: 30px 32px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
}

.errd-legal-section h2 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--errd-navy-deep);
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.25;
}

.errd-legal-section h2 span {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 1rem;
}

.errd-legal-section h3 {
	margin: 22px 0 10px;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 800;
}

.errd-legal-lead {
	padding: 16px 18px;
	border-radius: var(--errd-radius-md);
	background: #F8FAFC;
}

.errd-legal-copyright {
	padding: 16px 20px;
	border: 1px dashed color-mix(in srgb, var(--errd-navy-deep) 35%, #FFFFFF);
	border-radius: var(--errd-radius-md);
	background: #F8FAFC;
	color: var(--errd-navy-deep);
	font-weight: 800;
	text-align: center;
}

/* Institutional tiers: global → regional → national */
.errd-legal-tiers {
	display: grid;
	gap: 0 !important;
	margin: 20px 0 22px !important;
	padding: 0 !important;
	list-style: none;
}

.errd-legal-tiers li {
	--t: var(--errd-navy-deep);
	position: relative;
	margin-left: 26px;
	padding: 14px 18px 14px 26px;
	border-left: 3px solid color-mix(in srgb, var(--t) 40%, #FFFFFF);
}

.errd-legal-tiers li::before {
	content: "";
	position: absolute;
	top: 20px;
	left: -11px;
	width: 18px;
	height: 18px;
	border: 4px solid #FFFFFF;
	border-radius: 50%;
	background: var(--t);
	box-shadow: 0 0 0 2px var(--t);
}

.errd-legal-tiers li.is-global { --t: #B8860B; }
.errd-legal-tiers li.is-regional { --t: #0B4E92; }
.errd-legal-tiers li.is-nacional { --t: #C0141A; }

.errd-legal-tier-level {
	display: block;
	color: var(--t);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.errd-legal-tiers strong {
	display: block;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
}

.errd-legal-tiers p {
	margin: 4px 0 0;
	font-size: 0.94rem;
}

/* Allowed / forbidden uses side by side */
.errd-legal-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.errd-legal-box {
	--b: var(--errd-navy-deep);
	padding: 18px 20px;
	border: 1px solid color-mix(in srgb, var(--b) 25%, #FFFFFF);
	border-top: 4px solid var(--b);
	border-radius: var(--errd-radius-md);
	background: color-mix(in srgb, var(--b) 4%, #FFFFFF);
	font-size: 0.94rem;
}

.errd-legal-box h3 {
	margin-top: 0;
	color: var(--b);
}

.errd-legal-box.is-allowed { --b: #2D8A3A; }
.errd-legal-box.is-forbidden { --b: #C0141A; }
.errd-legal-box.is-minors { --b: #0B4E92; margin: 22px 0; }

.errd-legal-box ul:last-child,
.errd-legal-box ol:last-child,
.errd-legal-box p:last-child {
	margin-bottom: 0;
}

.errd-legal-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding: 20px 22px;
	border-radius: var(--errd-radius-md);
	background: var(--errd-navy-deep);
	color: #C9D8F2;
	font-size: 0.9rem;
}

.errd-legal-contact strong {
	display: block;
	color: #FFFFFF;
	font-size: 1rem;
}

.errd-legal-contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.errd-legal-doc .errd-legal-contact-links a {
	padding: 8px 14px;
	border-radius: var(--errd-radius-full);
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	font-size: 0.86rem;
	text-decoration: none;
	transition: background 0.2s ease;
}

.errd-legal-doc .errd-legal-contact-links a:hover {
	background: #F5B400;
	color: var(--errd-navy-deep);
}

/* Footer link to this page */
.errd-footer-legal-link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.errd-footer-legal-link:hover {
	color: #FFFFFF;
}

@media (max-width: 960px) {
	.errd-legal {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 28px;
	}

	.errd-legal-toc {
		position: static;
	}

	.errd-legal-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.errd-legal-section {
		padding: 22px 18px;
	}

	.errd-legal-section h2 {
		font-size: 1.2rem;
	}

	.errd-legal-notice {
		padding: 22px 20px;
	}

	.errd-legal-tiers li {
		margin-left: 12px;
		padding-right: 0;
	}
}
/* ==========================================================================
   HEADER: FIT THE DESKTOP MENU BETWEEN 1024 AND 1280 PX
   The full menu needs ~890px; it tightens step by step instead of overflowing.
   ========================================================================== */
.errd-header-inner {
	gap: 20px;
}

.errd-brand {
	flex-shrink: 0;
}

.errd-nav-menu a,
.errd-header-cta {
	white-space: nowrap;
}

@media (max-width: 1280px) and (min-width: 1024px) {
	.errd-nav-menu {
		gap: 18px;
	}
}

@media (max-width: 1120px) and (min-width: 1024px) {
	.errd-brand {
		gap: 10px;
	}

	.errd-brand-logo {
		height: 44px;
	}

	/* "EXPLORADORES / DEL REY" on two lines */
	.errd-brand-text {
		max-width: 142px;
	}

	.errd-brand-title {
		font-size: 1rem;
	}

	.errd-brand-subtitle {
		font-size: 0.5625rem;
		letter-spacing: 1.2px;
		white-space: nowrap;
	}

	.errd-nav-menu {
		gap: 13px;
	}

	.errd-nav-menu a {
		font-size: 0.8125rem;
	}

	.errd-header-cta {
		margin-left: 10px;
		padding: 8px 14px;
		font-size: 0.8125rem;
	}
}

/* Below 1024px the full menu cannot fit: switch to the hamburger menu (mobile panel) */
@media (max-width: 1023px) {
	.errd-desktop-nav {
		display: none;
	}

	.errd-nav-toggle {
		display: block;
	}
}

/* Footer: brand, links and social icons wrap instead of overflowing on mid widths */
.errd-footer-top {
	flex-wrap: wrap;
	gap: 20px 32px;
}

.errd-footer-nav {
	flex-wrap: wrap;
	row-gap: 10px;
}

@media (max-width: 1180px) and (min-width: 769px) {
	.errd-footer-top {
		justify-content: center;
		text-align: center;
	}

	.errd-footer-nav {
		order: 3;
		justify-content: center;
		width: 100%;
	}
}
/* ==========================================================================
   NEW NEWS NOTICE (visitors)
   ========================================================================== */
.errd-news-toast {
	position: fixed;
	left: max(20px, env(safe-area-inset-left));
	bottom: max(20px, env(safe-area-inset-bottom));
	z-index: 999;
	display: flex;
	align-items: stretch;
	width: min(390px, calc(100vw - 40px));
	overflow: hidden;
	border-radius: var(--errd-radius-lg);
	background: var(--errd-navy-deep);
	box-shadow: 0 18px 40px rgba(7, 26, 66, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-news-toast.is-visible {
	opacity: 1;
	transform: none;
}

.errd-news-toast::before {
	content: "";
	flex-shrink: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--errd-red-inst) 0%, #F5B400 100%);
}

.errd-news-toast-link {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 14px 8px 14px 14px;
	color: #FFFFFF;
	text-decoration: none;
}

.errd-news-toast-media {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: var(--errd-radius-md);
	background: rgba(255, 255, 255, 0.1);
	color: #F5B400;
}

.errd-news-toast-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.errd-news-toast-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.errd-news-toast-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #F5B400;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.errd-news-toast-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--errd-red-inst);
	box-shadow: 0 0 0 0 rgba(229, 9, 45, 0.7);
	animation: errd-news-pulse 1.8s infinite;
}

@keyframes errd-news-pulse {
	70% { box-shadow: 0 0 0 8px rgba(229, 9, 45, 0); }
	100% { box-shadow: 0 0 0 0 rgba(229, 9, 45, 0); }
}

.errd-news-toast-text strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.3;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.errd-news-toast-cta {
	color: #C9D8F2;
	font-size: 0.78rem;
	font-weight: 700;
}

.errd-news-toast-link:hover .errd-news-toast-cta,
.errd-news-toast-link:focus-visible .errd-news-toast-cta {
	color: #FFFFFF;
}

.errd-news-toast-link:focus-visible,
.errd-news-toast-close:focus-visible {
	outline: 3px solid #F5B400;
	outline-offset: -3px;
}

.errd-news-toast-close {
	align-self: flex-start;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	margin: 8px 8px 0 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s ease;
}

.errd-news-toast-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
	.errd-news-toast {
		left: 12px;
		right: 12px;
		bottom: max(12px, env(safe-area-inset-bottom));
		width: auto;
		/* Leaves room for the back-to-top button */
		margin-right: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-news-toast {
		transition: opacity 0.2s ease;
		transform: none;
	}

	.errd-news-toast-dot {
		animation: none;
	}
}
/* ==========================================================================
   HOME ↔ PROGRAMAS: links from the home emblems to each program card
   ========================================================================== */
.errd-programs-more {
	display: flex;
	justify-content: center;
	margin-top: 46px;
}

.errd-programs-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--errd-radius-full);
	color: #FFFFFF;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.errd-programs-more-btn:hover,
.errd-programs-more-btn:focus-visible {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	transform: translateY(-2px);
}

.errd-programs-more-btn svg {
	transition: transform 0.25s ease;
}

.errd-programs-more-btn:hover svg {
	transform: translateX(4px);
}

.errd-program-item:focus-visible {
	outline: 3px solid #F5B400;
	outline-offset: 6px;
	border-radius: var(--errd-radius-md);
}

/* Program cards reached from the home page land below the sticky header */
#navegantes,
#pioneros,
#seguidores,
#exploradores,
#lideres,
#sistema-de-ascenso,
#maximos-reconocimientos,
#guia-de-uniformes {
	scroll-margin-top: 110px;
}

/* The card the visitor came to see glows briefly */
.errd-content-card:target {
	animation: errd-card-arrive 2.2s ease-out;
}

@keyframes errd-card-arrive {
	0%, 35% { box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.55), var(--errd-shadow-md); }
	100% { box-shadow: var(--errd-shadow-card); }
}

@media (prefers-reduced-motion: reduce) {
	.errd-content-card:target {
		animation: none;
	}
}
/* ==========================================================================
   METODOLOGÍA FORMATIVA: destacamentos y patrullas
   ========================================================================== */
.errd-metodo-title {
	margin-bottom: 14px;
	color: var(--errd-navy-deep);
	font-size: 1.85rem;
	font-weight: 800;
}

.errd-metodo-lead {
	max-width: 920px;
	margin-bottom: 30px;
	color: var(--errd-gray-dark);
	font-size: 1.02rem;
	line-height: 1.75;
}

.errd-metodo-subtitle {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
}

.errd-metodo-subtitle span {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.85rem;
	font-weight: 900;
}

/* 1. Evangelize → equip → empower */
.errd-metodo-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
	counter-reset: metodo;
}

.errd-metodo-steps > li {
	--c: var(--errd-blue-inst);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 20px 18px;
	border: 1px solid var(--errd-gray-border);
	border-top: 5px solid var(--c);
	border-radius: var(--errd-radius-md);
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 5%, #FFFFFF) 0%, #FFFFFF 70%);
}

.errd-metodo-steps > li.is-evangelizar { --c: #E5092D; }
.errd-metodo-steps > li.is-equipar { --c: #063B82; }
.errd-metodo-steps > li.is-empoderar { --c: #B8860B; }

/* Arrow between steps */
.errd-metodo-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -14px;
	z-index: 1;
	width: 12px;
	height: 12px;
	border-top: 3px solid var(--errd-gray-border);
	border-right: 3px solid var(--errd-gray-border);
	transform: translateY(-50%) rotate(45deg);
}

.errd-metodo-step-kicker {
	color: var(--c);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.errd-metodo-steps strong {
	color: var(--errd-navy-deep);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
}

.errd-metodo-steps p {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	line-height: 1.6;
}

.errd-metodo-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	padding: 10px 0 0;
	list-style: none;
}

.errd-metodo-methods li {
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	background: color-mix(in srgb, var(--c) 10%, #FFFFFF);
	color: var(--errd-gray-dark);
	font-size: 0.76rem;
}

.errd-metodo-methods b {
	color: var(--c);
	font-weight: 800;
}

/* 2 + 3. Outpost and patrol side by side */
.errd-metodo-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 34px;
}

.errd-metodo-block {
	padding: 22px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #F8FAFC;
}

.errd-metodo-block > p {
	margin: 0 0 16px;
	color: var(--errd-gray-dark);
	font-size: 0.92rem;
	line-height: 1.65;
}

.errd-metodo-org {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.errd-metodo-org li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-left: 18px;
	padding: 9px 14px;
	border: 1px solid var(--errd-gray-border);
	border-left: 4px solid var(--errd-blue-inst);
	border-radius: var(--errd-radius-sm);
	background: #FFFFFF;
}

.errd-metodo-org li::before {
	content: "";
	position: absolute;
	top: -9px;
	left: -14px;
	width: 10px;
	height: calc(50% + 9px);
	border-bottom: 2px solid var(--errd-gray-border);
	border-left: 2px solid var(--errd-gray-border);
}

.errd-metodo-org li.is-top {
	margin-left: 0;
	border-left-color: var(--errd-navy-deep);
}

.errd-metodo-org li.is-top::before {
	display: none;
}

.errd-metodo-org li.is-groups {
	border-left-color: #E5092D;
}

.errd-metodo-org strong {
	color: var(--errd-navy-deep);
	font-size: 0.88rem;
	font-weight: 800;
}

.errd-metodo-org span {
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

.errd-metodo-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.errd-metodo-facts div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px;
	border-radius: var(--errd-radius-md);
	background: var(--errd-navy-deep);
}

.errd-metodo-facts strong {
	color: #F5B400;
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1;
}

.errd-metodo-facts span {
	color: #C9D8F2;
	font-size: 0.74rem;
	line-height: 1.4;
}

.errd-metodo-reasons {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.errd-metodo-reasons li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	column-gap: 10px;
	align-items: start;
	counter-increment: reason;
}

.errd-metodo-reasons {
	counter-reset: reason;
}

.errd-metodo-reasons li::before {
	content: counter(reason);
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #E5092D;
	color: #FFFFFF;
	font-size: 0.78rem;
	font-weight: 900;
}

.errd-metodo-reasons strong {
	color: var(--errd-navy-deep);
	font-size: 0.9rem;
	font-weight: 800;
}

.errd-metodo-reasons span {
	color: var(--errd-gray-dark);
	font-size: 0.84rem;
	line-height: 1.5;
}

.errd-metodo-roles {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.errd-metodo-roles span {
	padding: 5px 11px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font-size: 0.76rem;
	font-weight: 700;
}

.errd-metodo-roles span:first-child {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

/* 4. Integral growth */
.errd-metodo-growth {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 22px;
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #0B2A55 0%, #071A42 100%);
	color: #C9D8F2;
}

.errd-metodo-areas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-metodo-areas li {
	display: grid;
	place-items: center;
	min-height: 64px;
	border: 1px solid rgba(245, 180, 0, 0.45);
	border-radius: var(--errd-radius-md);
	background: rgba(245, 180, 0, 0.1);
}

.errd-metodo-areas strong {
	color: #F5B400;
	font-size: 0.95rem;
	font-weight: 800;
}

.errd-metodo-growth p {
	margin: 0 0 12px;
	font-size: 0.92rem;
	line-height: 1.65;
}

.errd-metodo-growth p strong {
	color: #FFFFFF;
}

.errd-metodo-code {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.errd-metodo-code span {
	padding: 5px 12px;
	border-radius: var(--errd-radius-full);
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 700;
}

@media (max-width: 960px) {
	.errd-metodo-steps,
	.errd-metodo-split {
		grid-template-columns: 1fr;
	}

	.errd-metodo-steps > li:not(:last-child)::after {
		top: auto;
		right: auto;
		bottom: -14px;
		left: 50%;
		transform: translateX(-50%) rotate(135deg);
	}

	.errd-metodo-growth {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.errd-metodo-title {
		font-size: 1.45rem;
	}

	.errd-metodo-facts {
		grid-template-columns: 1fr;
	}

	.errd-metodo-facts div {
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	.errd-metodo-facts strong {
		min-width: 64px;
	}

	.errd-metodo-block,
	.errd-metodo-growth {
		padding: 18px 16px;
	}
}
/* Methodology launcher: the four blocks open in a dialog */
.errd-metodo-launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
	color: var(--errd-navy-deep);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.errd-metodo-launch-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-metodo-launch-items span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	font-size: 0.84rem;
	font-weight: 700;
}

.errd-metodo-launch-items b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 900;
}

.errd-metodo-launch-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: var(--errd-radius-full);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.9rem;
	font-weight: 800;
	white-space: nowrap;
	transition: background 0.25s ease;
}

.errd-metodo-launch:hover,
.errd-metodo-launch:focus-visible {
	transform: translateY(-2px);
	border-color: var(--errd-navy-deep);
	box-shadow: 0 14px 28px rgba(7, 26, 66, 0.1);
}

.errd-metodo-launch:hover .errd-metodo-launch-cta {
	background: var(--errd-red-inst);
}

.errd-metodo-launch:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-metodo .errd-metodo-lead {
	margin-bottom: 20px;
}

.errd-metodo-dialog .errd-doc-body {
	background: #FFFFFF;
}

@media (max-width: 600px) {
	.errd-metodo-launch {
		padding: 14px;
	}

	.errd-metodo-launch-cta {
		justify-content: center;
		width: 100%;
		white-space: normal;
		text-align: center;
	}
}
/* ==========================================================================
   METODOLOGÍA: interactive dialog (tabs, steps, pickers)
   ========================================================================== */
.errd-metodo-dialog {
	display: none;
	flex-direction: column;
}

.errd-metodo-dialog[open] {
	display: flex;
	max-height: min(92vh, 900px);
}

.errd-metodo-dialog .errd-doc-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 22px 26px 18px;
}

/* Tabs */
.errd-metodo-tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	padding: 12px 18px 16px;
	border-bottom: 1px solid var(--errd-gray-border);
	background: #F8FAFC;
}

.errd-metodo-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: var(--errd-radius-md);
	background: transparent;
	color: var(--errd-gray-muted);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.errd-metodo-tab b {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	font-weight: 900;
	transition: all 0.25s ease;
}

.errd-metodo-tab span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.errd-metodo-tab:hover {
	background: #FFFFFF;
	color: var(--errd-navy-deep);
}

.errd-metodo-tab.is-active {
	border-color: var(--errd-gray-border);
	background: #FFFFFF;
	box-shadow: 0 4px 12px rgba(7, 26, 66, 0.08);
	color: var(--errd-navy-deep);
}

.errd-metodo-tab.is-active b {
	border-color: var(--errd-red-inst);
	background: var(--errd-red-inst);
	color: #FFFFFF;
	transform: scale(1.08);
}

.errd-metodo-tab.is-done b {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-metodo-tab:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 1px;
}

.errd-metodo-progress {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	background: transparent;
}

.errd-metodo-progress span {
	display: block;
	width: 25%;
	height: 100%;
	background: linear-gradient(90deg, var(--errd-red-inst), #F5B400);
	transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Panels and entrance animations */
.errd-metodo-panel:focus {
	outline: none;
}

.errd-metodo-panel.is-entering {
	animation: errd-metodo-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-metodo-panel.is-entering.from-left {
	animation-name: errd-metodo-in-left;
}

@keyframes errd-metodo-in {
	from { opacity: 0; transform: translateX(26px); }
	to { opacity: 1; transform: none; }
}

@keyframes errd-metodo-in-left {
	from { opacity: 0; transform: translateX(-26px); }
	to { opacity: 1; transform: none; }
}

.errd-metodo-panel.is-entering .errd-metodo-steps > li,
.errd-metodo-panel.is-entering .errd-metodo-org li,
.errd-metodo-panel.is-entering .errd-metodo-facts > div,
.errd-metodo-panel.is-entering .errd-metodo-reasons li {
	animation: errd-metodo-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}

@keyframes errd-metodo-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.errd-metodo-hint,
.errd-metodo-panel-lead {
	margin: -6px 0 16px;
	color: var(--errd-gray-dark);
	font-size: 0.95rem;
	line-height: 1.65;
}

.errd-metodo-hint {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

/* 1. Steps as tappable cards */
.errd-metodo-dialog .errd-metodo-steps {
	margin-bottom: 8px;
}

.errd-metodo-dialog .errd-metodo-steps > li {
	padding: 0;
	border: 0;
	background: none;
}

.errd-metodo-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	height: 100%;
	padding: 20px 20px 18px;
	border: 1px solid var(--errd-gray-border);
	border-top: 5px solid var(--c);
	border-radius: var(--errd-radius-md);
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, #FFFFFF) 0%, #FFFFFF 70%);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.errd-metodo-step:hover,
.errd-metodo-step:focus-visible,
.errd-metodo-step[aria-expanded="true"] {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px color-mix(in srgb, var(--c) 18%, transparent);
}

.errd-metodo-step:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-metodo-step .errd-metodo-step-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.errd-metodo-step-num {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c);
	color: #FFFFFF;
	font-size: 0.72rem;
	letter-spacing: 0;
}

.errd-metodo-step .errd-metodo-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
}

.errd-metodo-step .errd-metodo-methods > span {
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	background: color-mix(in srgb, var(--c) 10%, #FFFFFF);
	color: var(--errd-gray-dark);
	font-size: 0.76rem;
}

.errd-metodo-step .errd-metodo-methods b {
	color: var(--c);
}

.errd-metodo-step-result {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	margin-top: 0;
	border-radius: var(--errd-radius-sm);
	background: var(--c);
	color: #FFFFFF;
	font-size: 0.86rem;
	font-weight: 800;
	opacity: 0;
	transition: opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
	padding: 0 12px;
	max-height: 0;
}

.errd-metodo-step[aria-expanded="true"] .errd-metodo-step-result {
	max-height: 80px;
	margin-top: 6px;
	padding: 10px 12px;
	opacity: 1;
}

/* Two-column panel layout */
.errd-metodo-two {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: start;
	gap: 22px;
}

.errd-metodo-dialog .errd-metodo-facts {
	grid-template-columns: 1fr;
	gap: 10px;
}

.errd-metodo-dialog .errd-metodo-facts > div {
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
}

.errd-metodo-dialog .errd-metodo-facts strong {
	flex-shrink: 0;
	min-width: 112px;
	font-size: 1.7rem;
}

.errd-metodo-dialog .errd-metodo-facts span {
	font-size: 0.85rem;
}

.errd-metodo-dialog .errd-metodo-facts strong span {
	color: inherit;
	font-size: inherit;
}

.errd-metodo-mini {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 10px;
	margin: 0 0 12px;
	color: var(--errd-navy-deep);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.errd-metodo-mini span {
	color: var(--errd-gray-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Pickers */
.errd-metodo-picker {
	padding: 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #F8FAFC;
}

.errd-metodo-chip {
	padding: 7px 13px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.errd-metodo-chip:hover {
	border-color: var(--errd-navy-deep);
}

.errd-metodo-chip.is-active {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	box-shadow: 0 6px 14px rgba(7, 26, 66, 0.18);
}

.errd-metodo-chip:focus-visible,
.errd-metodo-area:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-metodo-dialog .errd-metodo-roles {
	margin-bottom: 14px;
}

.errd-metodo-detail {
	min-height: 92px;
	padding: 14px 16px;
	border-left: 4px solid var(--errd-red-inst);
	border-radius: 0 var(--errd-radius-md) var(--errd-radius-md) 0;
	background: #FFFFFF;
	box-shadow: 0 6px 16px rgba(7, 26, 66, 0.06);
}

.errd-metodo-detail.is-changing {
	animation: errd-metodo-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-metodo-detail strong {
	display: block;
	margin-bottom: 4px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
}

.errd-metodo-detail p {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	line-height: 1.6;
}

.errd-metodo-ref {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 10px;
	border-radius: var(--errd-radius-full);
	background: #FBF5E1;
	color: #8A6405;
	font-size: 0.76rem;
	font-weight: 800;
}

.errd-metodo-note {
	margin: 12px 0 0;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
}

/* 4. Growth */
.errd-metodo-verse {
	margin: -4px 0 18px;
	padding: 14px 18px;
	border-left: 4px solid #F5B400;
	border-radius: 0 var(--errd-radius-md) var(--errd-radius-md) 0;
	background: #FBF8EE;
	color: var(--errd-navy-deep);
	font-size: 0.98rem;
	font-style: italic;
	line-height: 1.6;
}

.errd-metodo-verse cite {
	display: block;
	margin-top: 4px;
	color: #8A6405;
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 800;
}

.errd-metodo-picker.is-dark {
	border: 0;
	background: linear-gradient(135deg, #0B2A55 0%, #071A42 100%);
}

.errd-metodo-picker.is-dark .errd-metodo-mini {
	color: #FFFFFF;
}

.errd-metodo-picker.is-dark .errd-metodo-mini span,
.errd-metodo-picker.is-dark .errd-metodo-note {
	color: #C9D8F2;
}

.errd-metodo-dialog .errd-metodo-areas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 14px;
}

.errd-metodo-area {
	min-height: 58px;
	border: 1px solid rgba(245, 180, 0, 0.45);
	border-radius: var(--errd-radius-md);
	background: rgba(245, 180, 0, 0.08);
	color: #F5B400;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s ease;
}

.errd-metodo-area:hover {
	background: rgba(245, 180, 0, 0.18);
}

.errd-metodo-area.is-active {
	border-color: #F5B400;
	background: #F5B400;
	color: var(--errd-navy-deep);
	box-shadow: 0 8px 20px rgba(245, 180, 0, 0.3);
}

.errd-metodo-picker.is-dark .errd-metodo-detail {
	border-left-color: #F5B400;
}

/* Previous / next */
.errd-metodo-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	border-top: 1px solid var(--errd-gray-border);
	background: #FFFFFF;
}

.errd-metodo-nav-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s ease;
}

.errd-metodo-nav-btn:hover:not(:disabled) {
	border-color: var(--errd-navy-deep);
}

.errd-metodo-nav-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.errd-metodo-nav-btn.is-next {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-metodo-nav-btn.is-next:hover {
	background: var(--errd-red-inst);
	border-color: var(--errd-red-inst);
}

.errd-metodo-nav-btn:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-metodo-count {
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

@media (max-width: 960px) {
	.errd-metodo-two {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.errd-metodo-tabs {
		gap: 4px;
		padding: 10px 10px 14px;
	}

	.errd-metodo-tab {
		flex-direction: column;
		gap: 4px;
		padding: 8px 2px;
		font-size: 0.64rem;
		text-align: center;
	}

	.errd-metodo-tab span {
		max-width: 100%;
		overflow: visible;
		white-space: normal;
		line-height: 1.2;
		letter-spacing: -0.1px;
	}

	.errd-metodo-dialog .errd-doc-body {
		padding: 16px 14px;
	}

	.errd-metodo-dialog .errd-metodo-facts strong {
		min-width: 84px;
		font-size: 1.35rem;
	}

	.errd-metodo-nav {
		padding: 10px 12px;
	}

	.errd-metodo-nav-btn {
		padding: 9px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-metodo-panel.is-entering,
	.errd-metodo-panel.is-entering .errd-metodo-steps > li,
	.errd-metodo-panel.is-entering .errd-metodo-org li,
	.errd-metodo-panel.is-entering .errd-metodo-facts > div,
	.errd-metodo-panel.is-entering .errd-metodo-reasons li,
	.errd-metodo-detail.is-changing {
		animation: none;
	}
}
/* ==========================================================================
   METODOLOGÍA: destacamento banner (D emblem + patrol shields + topic buttons)
   ========================================================================== */
.errd-destac-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.errd-destac {
	--destac-hub: 480px;
	position: relative;
	isolation: isolate;
	margin-top: 8px;
	padding-bottom: 14px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(90deg, #F6F8FB 0%, #EEF3F9 100%);
	overflow: hidden;
}

/* Light-blue field with a curved edge behind the patrols */
.errd-destac::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--destac-hub);
	right: 0;
	z-index: -1;
	border-top-left-radius: 110px 50%;
	border-bottom-left-radius: 110px 50%;
	background: linear-gradient(135deg, #E3EDF8 0%, #C9DCF1 100%);
	box-shadow: -12px 0 0 rgba(255, 255, 255, 0.8);
}

.errd-destac-stage {
	position: relative;
	display: grid;
	grid-template-columns: var(--destac-hub) 1fr;
	align-items: center;
}

.errd-destac-hub {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 10px 14px 22px;
}

.errd-destac-cluster {
	position: relative;
	flex: none;
	width: 204px;
	height: 132px;
}

.errd-destac-emblem {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 88px;
	height: auto;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 8px 14px rgba(11, 31, 69, 0.25));
	transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-destac:hover .errd-destac-emblem {
	transform: translate(-50%, -50%) scale(1.04);
}

.errd-destac-sat {
	position: absolute;
	width: 42px;
	height: 38px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	filter: drop-shadow(0 4px 6px rgba(11, 31, 69, 0.28));
	animation: errd-destac-bob 4.5s ease-in-out infinite;
	animation-delay: calc(var(--i) * -0.9s);
	transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, filter 0.3s ease;
}

.errd-destac-sat--0 { top: 10px; left: 6px; }
.errd-destac-sat--1 { top: 82px; left: 6px; }
.errd-destac-sat--2 { top: 10px; right: 6px; }
.errd-destac-sat--3 { top: 82px; right: 6px; }

@keyframes errd-destac-bob {
	50% { translate: 0 -5px; }
}

.errd-destac-sat img,
.errd-destac-sat svg,
.errd-destac-patrol-art img,
.errd-destac-patrol-art svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.errd-destac.has-active .errd-destac-sat {
	opacity: 0.4;
}

.errd-destac .errd-destac-sat.is-active {
	z-index: 2;
	opacity: 1;
	scale: 1.35;
	filter: drop-shadow(0 6px 12px rgba(200, 16, 46, 0.45));
}

.errd-destac-caption {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.errd-destac-name {
	color: var(--errd-navy-deep);
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
}

.errd-destac-hint {
	color: #5B6B82;
	font-size: 0.8rem;
	font-weight: 600;
}

.errd-destac-hint.is-patrol {
	color: var(--errd-red-inst);
	font-weight: 800;
	animation: errd-destac-hint 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errd-destac-hint {
	from { opacity: 0; transform: translateY(5px); }
}

.errd-destac-crest {
	position: absolute;
	top: 50%;
	left: var(--destac-hub);
	z-index: 1;
	width: 72px;
	height: 72px;
	filter: drop-shadow(0 6px 10px rgba(11, 31, 69, 0.25));
	object-fit: contain;
	transform: translate(-50%, -50%);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-destac:hover .errd-destac-crest {
	transform: translate(-50%, -50%) rotate(-8deg) scale(1.06);
}

.errd-destac-patrols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	margin: 0;
	padding: 14px 18px 12px 56px;
	list-style: none;
}

.errd-destac-patrols li {
	margin: 0;
}

.errd-destac-patrol {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 100%;
	padding: 10px 4px;
	border: 2px solid transparent;
	border-radius: 18px;
	background: transparent;
	color: var(--errd-navy-deep);
	font: inherit;
	cursor: pointer;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.errd-destac-patrol-art {
	display: block;
	width: 100%;
	height: 76px;
	filter: drop-shadow(0 5px 7px rgba(11, 31, 69, 0.22));
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.errd-destac-patrol:hover .errd-destac-patrol-art {
	transform: translateY(-4px) scale(1.06);
}

.errd-destac-patrol-label {
	padding: 3px 10px;
	border-radius: 12px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.64rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	transition: background 0.25s ease;
}

.errd-destac.has-active .errd-destac-patrol {
	opacity: 0.55;
}

.errd-destac .errd-destac-patrol.is-active {
	opacity: 1;
	transform: translateY(-3px);
	border-color: var(--patrol);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 12px 24px rgba(11, 31, 69, 0.15);
}

.errd-destac-patrol.is-active .errd-destac-patrol-art {
	transform: scale(1.08) rotate(-4deg);
}

.errd-destac-patrol.is-active .errd-destac-patrol-label {
	background: var(--patrol);
}

.errd-destac-patrol:focus-visible,
.errd-destac-sat:focus-visible,
.errd-destac-topic:focus-visible,
.errd-destac-cta:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-destac-bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 14px;
	padding: 13px 14px 13px 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	box-shadow: 0 8px 20px rgba(11, 31, 69, 0.06);
}

.errd-destac-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-destac-topic {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 6px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-destac-topic b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 900;
	transition: background 0.2s ease, color 0.2s ease;
}

.errd-destac-topic.is-current,
.errd-destac-topic:hover {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-destac-topic.is-current b,
.errd-destac-topic:hover b {
	background: rgba(255, 255, 255, 0.18);
	color: #FFFFFF;
}

.errd-destac-topic:hover {
	transform: translateY(-2px);
}

.errd-destac-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--errd-radius-full);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.errd-destac-cta:hover {
	transform: translateY(-2px);
	background: var(--errd-red-inst);
	box-shadow: 0 10px 22px rgba(200, 16, 46, 0.25);
}

@media (max-width: 1100px) {
	.errd-destac {
		--destac-top: 170px;
	}

	.errd-destac-stage {
		grid-template-columns: 1fr;
	}

	.errd-destac::before {
		top: var(--destac-top);
		left: -10%;
		right: -10%;
		border-radius: 50% 50% 0 0 / 60px 60px 0 0;
	}

	.errd-destac-hub {
		justify-content: center;
		padding: 18px 16px 16px;
	}

	.errd-destac-crest {
		top: var(--destac-top);
		left: 50%;
	}

	.errd-destac-patrols {
		padding: 40px 14px 14px;
	}
}

@media (max-width: 700px) {
	.errd-destac {
		--destac-top: 244px;
	}

	.errd-destac-hub {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	.errd-destac-caption {
		align-items: center;
	}

	.errd-destac-patrols {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px;
	}

	.errd-destac-patrols li {
		width: calc(50% - 2px);
	}

	.errd-destac-patrol-art {
		height: 66px;
	}

	.errd-destac-patrol-label {
		padding: 3px 7px;
		font-size: 0.6rem;
	}

	.errd-destac-bar {
		margin: 0 10px;
		padding: 12px;
	}

	.errd-destac-cta {
		justify-content: center;
		width: 100%;
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-destac-sat {
		animation: none;
	}
}
/* ==========================================================================
   LÍDERES ADULTOS: interactive leader path (template-parts/lideres-ruta.php)
   ========================================================================== */
.errd-lider-lead {
	max-width: 900px;
	margin: 0 0 22px;
	color: var(--errd-gray-dark);
	font-size: 0.98rem;
	line-height: 1.75;
}

.errd-lider {
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	overflow: hidden;
}

.errd-lider-tabs {
	display: flex;
	gap: 4px;
	padding: 8px;
	background: var(--errd-navy-deep);
	overflow-x: auto;
	scrollbar-width: none;
}

.errd-lider-tab {
	display: inline-flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
}

.errd-lider-tab:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}

.errd-lider-tab.is-active {
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.errd-lider-tab:focus-visible,
.errd-lider-step:focus-visible,

.errd-lider-panel {
	padding: 26px;
	animation: errd-lider-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-panel[hidden] {
	display: none;
}

@keyframes errd-lider-in {
	from { opacity: 0; transform: translateY(10px); }
}

.errd-lider-kicker {
	display: block;
	margin-bottom: 4px;
	color: var(--errd-red-inst);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --- Ruta de ascenso --- */
.errd-lider-ruta {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 30px;
	align-items: start;
}

.errd-lider-badge-col {
	position: sticky;
	top: 110px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 22px 18px;
	border-radius: var(--errd-radius-lg);
	background: radial-gradient(circle at 50% 0%, #F2F6FC 0%, #E6EDF7 100%);
	text-align: center;
}













.errd-lider-overall {
	width: 100%;
}




.errd-lider-badge-hint {
	margin: 0;
	color: #5B6B82;
	font-size: 0.78rem;
	line-height: 1.5;
}

.errd-lider-reset {
	padding: 6px 14px;
	border: 1px solid #C5D0DE;
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: #5B6B82;
	font: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	cursor: pointer;
}

.errd-lider-reset:hover {
	border-color: var(--errd-red-inst);
	color: var(--errd-red-inst);
}

.errd-lider-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

/* Connector line behind the four steps */
.errd-lider-steps::before {
	content: '';
	position: absolute;
	top: 22px;
	left: 12%;
	right: 12%;
	height: 3px;
	border-radius: 3px;
	background: #E2E8F0;
}

.errd-lider-steps li {
	position: relative;
	margin: 0;
}

.errd-lider-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0 4px 10px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--errd-navy-deep);
	font: inherit;
	cursor: pointer;
	transition: border-color 0.25s ease;
}

.errd-lider-step-dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 3px solid var(--level);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--level);
	font-size: 1rem;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.errd-lider-step-dot svg {
	display: none;
	width: 22px;
	height: 22px;
}

.errd-lider-step-name {
	font-size: 0.9rem;
	font-weight: 800;
}

.errd-lider-step-meta {
	color: #7A879A;
	font-size: 0.72rem;
	font-weight: 700;
}

.errd-lider-step:hover .errd-lider-step-dot {
	transform: scale(1.08);
}

.errd-lider-step.is-active {
	border-bottom-color: var(--level);
}

.errd-lider-step.is-active .errd-lider-step-dot {
	transform: scale(1.12);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--level) 18%, transparent);
}

.errd-lider-step.is-complete .errd-lider-step-dot {
	background: var(--level);
	color: #FFFFFF;
}

.errd-lider-step.is-complete .errd-lider-step-dot b {
	display: none;
}

.errd-lider-step.is-complete .errd-lider-step-dot svg {
	display: block;
}

.errd-lider-step.is-complete .errd-lider-step-meta {
	color: var(--level);
}

.errd-lider-detail {
	padding: 22px;
	border: 1px solid var(--errd-gray-border);
	border-top: 5px solid var(--level);
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--level) 5%, #FFFFFF) 0%, #FFFFFF 140px);
	animation: errd-lider-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-detail[hidden] {
	display: none;
}

.errd-lider-detail-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.errd-lider-detail-head .errd-lider-kicker {
	color: var(--level);
	filter: brightness(0.85);
}

.errd-lider-detail h3 {
	margin: 0 0 4px;
	color: var(--errd-navy-deep);
	font-size: 1.5rem;
	font-weight: 900;
}

.errd-lider-detail-head p {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.92rem;
}

.errd-lider-ring {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
}

.errd-lider-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.errd-lider-ring circle {
	fill: none;
	stroke: #E2E8F0;
	stroke-width: 5;
}

.errd-lider-ring .errd-lider-ring-fill {
	stroke: var(--level);
	stroke-linecap: round;
	stroke-dasharray: 0 100;
	transition: stroke-dasharray 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-ring span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	font-weight: 900;
}

.errd-lider-prereq {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 6px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #F1F5F9;
	color: #475569;
	font-size: 0.82rem;
	font-weight: 600;
}

.errd-lider-subtitle {
	margin: 18px 0 8px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
	font-weight: 800;
}

.errd-lider-subtitle small {
	margin-left: 6px;
	color: #7A879A;
	font-size: 0.75rem;
	font-weight: 600;
}

.errd-lider-checks {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-lider-checks li {
	margin: 0;
}

.errd-lider-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
	line-height: 1.5;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-check:hover {
	transform: translateX(3px);
	border-color: var(--level);
}

.errd-lider-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.errd-lider-box {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid #B6C2D2;
	border-radius: 6px;
	background: #FFFFFF;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.errd-lider-box::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #FFFFFF;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.errd-lider-check input:checked + .errd-lider-box {
	border-color: var(--level);
	background: var(--level);
}

.errd-lider-check input:checked + .errd-lider-box::after {
	transform: rotate(45deg) scale(1);
}

.errd-lider-check input:focus-visible + .errd-lider-box {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-lider-check:has(input:checked) {
	border-color: color-mix(in srgb, var(--level) 45%, #FFFFFF);
	background: color-mix(in srgb, var(--level) 6%, #FFFFFF);
}

.errd-lider-check-body strong {
	display: block;
	margin-bottom: 2px;
	color: var(--errd-navy-deep);
	font-size: 0.92rem;
}

.errd-lider-check-body em {
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: var(--errd-radius-full);
	background: #EEF2F7;
	color: #5B6B82;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 700;
}

.errd-lider-done {
	display: none;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--level);
	color: #FFFFFF;
	font-size: 0.86rem;
	line-height: 1.5;
}

.errd-lider-detail.is-complete .errd-lider-done {
	display: flex;
	animation: errd-lider-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-done svg {
	flex: none;
}

.errd-lider-footnote {
	margin: 14px 0 0;
	color: #5B6B82;
	font-size: 0.82rem;
}

/* --- Perfil del líder --- */
.errd-lider-ages {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.errd-lider-age {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--errd-radius-lg);
	background: var(--errd-navy-deep);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.84rem;
	line-height: 1.45;
}

.errd-lider-age strong {
	flex: none;
	color: #FFFFFF;
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.errd-lider-age strong small {
	color: #F3C74E;
	font-size: 1.1rem;
}

.errd-lider-age b {
	color: #FFFFFF;
}

.errd-lider-age--team {
	background: #EEF3F9;
	color: var(--errd-gray-dark);
}

.errd-lider-age--team strong {
	color: var(--errd-navy-deep);
}

.errd-lider-profile-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.errd-lider-profile-head h3,
.errd-lider-section-title {
	margin: 0 0 4px;
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
	font-weight: 900;
}

.errd-lider-profile-head p {
	margin: 0;
	color: #5B6B82;
	font-size: 0.86rem;
}

.errd-lider-meter {
	min-width: 170px;
	color: var(--errd-navy-deep);
	font-size: 1.4rem;
	font-weight: 900;
	text-align: right;
}

.errd-lider-meter-bar {
	height: 8px;
	margin-top: 6px;
	border-radius: var(--errd-radius-full);
	background: #E2E8F0;
	overflow: hidden;
}

.errd-lider-meter-bar span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--errd-blue-accent), #1F9D55);
	transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-profile {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.errd-lider-profile-group h4 {
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--errd-navy-deep);
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.errd-lider-trait {
	--level: #1F9D55;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	margin-bottom: 8px;
	padding: 11px 12px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	font-size: 0.84rem;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-trait:hover {
	transform: translateY(-2px);
	border-color: #1F9D55;
}

.errd-lider-trait[aria-pressed="true"] {
	border-color: color-mix(in srgb, #1F9D55 45%, #FFFFFF);
	background: color-mix(in srgb, #1F9D55 7%, #FFFFFF);
	color: var(--errd-navy-deep);
}

.errd-lider-trait[aria-pressed="true"] .errd-lider-box {
	border-color: #1F9D55;
	background: #1F9D55;
}

.errd-lider-trait[aria-pressed="true"] .errd-lider-box::after {
	transform: rotate(45deg) scale(1);
}

.errd-lider-profile-msg {
	margin: 6px 0 26px;
	padding: 12px 14px;
	border-left: 4px solid var(--errd-blue-accent);
	border-radius: 0 8px 8px 0;
	background: #F1F5F9;
	color: #475569;
	font-size: 0.84rem;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.errd-lider-profile-msg.is-full {
	border-color: #1F9D55;
	background: #ECF8F1;
	color: #14532D;
}

.errd-lider-join {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 12px 0 16px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.errd-lider-join li {
	position: relative;
	margin: 0;
	padding: 18px 16px 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.errd-lider-join li:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 26px rgba(11, 31, 69, 0.1);
}

.errd-lider-join li:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 34px;
	right: -11px;
	z-index: 1;
	width: 10px;
	height: 10px;
	border-top: 3px solid #B6C2D2;
	border-right: 3px solid #B6C2D2;
	transform: rotate(45deg);
}

.errd-lider-join-num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--errd-red-inst);
	color: #FFFFFF;
	font-size: 0.9rem;
	font-weight: 900;
}

.errd-lider-join strong {
	display: block;
	margin-bottom: 4px;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
}

.errd-lider-join p {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.83rem;
	line-height: 1.5;
}

.errd-lider-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	color: #5B6B82;
	font-size: 0.8rem;
	line-height: 1.5;
}

.errd-lider-note svg {
	flex: none;
	margin-top: 2px;
}

/* --- Reconocimientos --- */
.errd-lider-honor {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 18px;
}

.errd-lider-medal,
.errd-lider-ac {
	padding: 22px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
}

.errd-lider-medal {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 18px;
	background: linear-gradient(160deg, #FFFBEF 0%, #FFFFFF 60%);
	border-color: #EED9A0;
}

.errd-lider-dialog .errd-lider-medal-img {
	display: block;
	max-width: none;
	width: 84px;
	height: auto;
	margin: 0 auto 14px;
	filter: drop-shadow(0 10px 14px rgba(11, 31, 69, 0.28));
}

.errd-lider-medal h3,
.errd-lider-ac h3 {
	margin: 0 0 6px;
	color: var(--errd-navy-deep);
	font-size: 1.3rem;
	font-weight: 900;
}

.errd-lider-medal p,
.errd-lider-ac > p {
	margin: 0 0 12px;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
	line-height: 1.6;
}

.errd-lider-conditions {
	display: grid;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.errd-lider-conditions li {
	--level: #B8860B;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 0.88rem;
}

.errd-lider-conditions em {
	color: #9A6F06;
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
}

.errd-lider-conditions li.is-met .errd-lider-box {
	border-color: #B8860B;
	background: #B8860B;
}

.errd-lider-conditions li.is-met .errd-lider-box::after {
	transform: rotate(45deg) scale(1);
}

.errd-lider-awards {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: 32px;
}

.errd-lider-award {
	padding: 6px 12px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.errd-lider-award:hover {
	border-color: var(--award);
}

.errd-lider-award.is-active {
	border-color: var(--award);
	background: var(--award);
	color: #FFFFFF;
}

.errd-lider-award-result {
	flex-basis: 100%;
	margin: 6px 0 0 !important;
	font-size: 0.84rem !important;
}

.errd-lider-award-result strong {
	display: inline-block;
	color: var(--errd-navy-deep);
	animation: errd-lider-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-ac {
	background: #F8FAFC;
}

.errd-lider-ac-types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 14px;
}

.errd-lider-ac-types div {
	padding: 10px 12px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--errd-gray-dark);
}

.errd-lider-ac-types strong {
	display: block;
	margin-bottom: 2px;
	color: var(--errd-navy-deep);
	font-size: 0.84rem;
}

.errd-lider-calc {
	padding: 14px;
	border-radius: 12px;
	background: var(--errd-navy-deep);
	color: rgba(255, 255, 255, 0.85);
}

.errd-lider-calc label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.84rem;
}

.errd-lider-calc label strong {
	color: #FFFFFF;
}

.errd-lider-calc input[type="range"] {
	width: 100%;
	accent-color: #F3C74E;
	cursor: pointer;
}

.errd-lider-calc-out {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 10px 0 8px;
}

.errd-lider-calc-out > div:first-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 84px;
	padding: 6px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
}

.errd-lider-calc-out > div:first-child strong {
	color: #F3C74E;
	font-size: 1.8rem;
	font-weight: 900;
	line-height: 1.1;
}

.errd-lider-calc-out > div:first-child span {
	font-size: 0.7rem;
	font-weight: 700;
}

.errd-lider-calc-goal {
	font-size: 0.8rem;
	line-height: 1.45;
}

.errd-lider-calc-goal.is-met {
	color: #8FE3B0;
	font-weight: 700;
}

.errd-lider-calc small {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.72rem;
}

@media (max-width: 1000px) {
	.errd-lider-ruta,
	.errd-lider-honor {
		grid-template-columns: minmax(0, 1fr);
	}

	.errd-lider-badge-col {
		position: static;
		display: grid;
		grid-template-columns: 170px 1fr;
		align-items: center;
		text-align: left;
	}


	.errd-lider-profile,
	.errd-lider-join {
		grid-template-columns: 1fr 1fr;
	}

	.errd-lider-join li::after {
		display: none;
	}
}

@media (max-width: 700px) {
	.errd-lider-panel {
		padding: 18px 14px;
	}

	.errd-lider-tab {
		flex: 1 1 0;
		flex-direction: column;
		gap: 4px;
		padding: 10px 6px;
		font-size: 0.74rem;
		white-space: normal;
		text-align: center;
	}

	.errd-lider-badge-col {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}


	.errd-lider-steps::before {
		top: 18px;
	}

	.errd-lider-step-dot {
		width: 38px;
		height: 38px;
	}

	.errd-lider-steps {
		gap: 2px;
	}

	.errd-lider-step {
		padding: 0 0 8px;
	}

	.errd-lider-step-name {
		font-size: 0.68rem;
	}

	.errd-lider-detail {
		padding: 16px 14px;
	}

	.errd-lider-detail h3 {
		font-size: 1.25rem;
	}

	.errd-lider-ring {
		width: 52px;
		height: 52px;
	}

	.errd-lider-ages,
	.errd-lider-profile,
	.errd-lider-join,
	.errd-lider-ac-types,
	.errd-lider-medal {
		grid-template-columns: minmax(0, 1fr);
	}

	.errd-lider-badge-col {
		padding: 18px 12px;
	}

	.errd-lider-medal-art {
		width: 90px;
	}

	.errd-lider-awards {
		margin-left: 0;
	}
}

/* Líderes Adultos: launcher on the page + dialog + progress panel */
.errd-lider-launch {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 22px;
	border-radius: var(--errd-radius-lg);
	background: linear-gradient(135deg, #0B1F45 0%, #17396F 100%);
	color: #FFFFFF;
	box-shadow: 0 14px 30px rgba(11, 31, 69, 0.18);
}

.errd-lider-launch-intro {
	display: flex;
	align-items: center;
	gap: 14px;
}

.errd-lider-launch-intro img {
	flex: none;
	width: 64px;
	height: auto;
	padding: 4px;
	border-radius: 10px;
	background: #FFFFFF;
}

.errd-lider-launch-intro .errd-lider-kicker {
	color: #F3C74E;
}

.errd-lider-launch-intro strong {
	display: block;
	font-size: 1.2rem;
	font-weight: 900;
}

.errd-lider-launch-intro div > span:last-child {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
}

.errd-lider-launch-levels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-lider-launch-level {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px 6px 6px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--errd-radius-full);
	background: rgba(255, 255, 255, 0.07);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-lider-launch-level b {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--level);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 900;
}

.errd-lider-launch-level:hover {
	transform: translateY(-2px);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
}

.errd-lider-launch-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--errd-radius-full);
	background: var(--errd-red-inst);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(200, 16, 46, 0.35);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.errd-lider-launch-cta:hover {
	transform: translateY(-2px);
	background: #E01535;
}

.errd-lider-launch-level:focus-visible,
.errd-lider-launch-cta:focus-visible {
	outline: 3px solid #F3C74E;
	outline-offset: 2px;
}

.errd-lider-dialog .errd-doc-body {
	padding: 0;
	background: #FFFFFF;
}

.errd-lider-dialog .errd-lider {
	border: 0;
	border-radius: 0;
	overflow: visible;
}

.errd-lider-dialog .errd-lider-tabs {
	position: sticky;
	top: 0;
	z-index: 3;
}

.errd-lider-dialog .errd-lider-badge-col {
	top: 84px;
}

.errd-lider-progress {
	--p: 0;
	position: relative;
	display: grid;
	place-items: center;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: conic-gradient(#E3A912 calc(var(--p) * 1%), #D6DEE9 0);
	box-shadow: 0 12px 24px rgba(11, 31, 69, 0.15);
	transition: background 0.4s ease;
}

.errd-lider-progress::before {
	content: '';
	position: absolute;
	inset: 11px;
	border-radius: 50%;
	background: #FFFFFF;
}

.errd-lider-progress img {
	position: relative;
	width: 96px;
	height: auto;
}

.errd-lider-progress.is-flash {
	animation: errd-lider-pulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes errd-lider-pulse {
	40% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(227, 169, 18, 0.25); }
}

.errd-lider-overall {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 0.86rem;
}

.errd-lider-levels-mini {
	display: grid;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.errd-lider-levels-mini li {
	margin: 0;
}

.errd-lider-levels-mini button {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 5px 8px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid transparent;
	border-left: 4px solid var(--level);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--errd-navy-deep);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.errd-lider-levels-mini button:hover,
.errd-lider-levels-mini button.is-selected {
	border-color: var(--errd-gray-border);
	border-left-color: var(--level);
	background: #FFFFFF;
}

.errd-lider-mini-name {
	font-size: 0.82rem;
	font-weight: 800;
}

.errd-lider-mini-pct {
	color: #7A879A;
	font-size: 0.72rem;
	font-weight: 700;
}

.errd-lider-levels-mini button.is-complete .errd-lider-mini-pct {
	color: var(--level);
}

.errd-lider-mini-bar {
	grid-column: 1 / -1;
	height: 5px;
	border-radius: var(--errd-radius-full);
	background: #E2E8F0;
	overflow: hidden;
}

.errd-lider-mini-bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--level);
	transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1000px) {
	.errd-lider-progress {
		grid-row: span 4;
		width: 150px;
		height: 150px;
	}

	.errd-lider-badge-col > .errd-lider-kicker {
		display: none;
	}
}

@media (max-width: 700px) {
	.errd-lider-launch {
		padding: 18px 16px;
	}

	.errd-lider-launch-cta {
		justify-content: center;
		width: 100%;
	}

	.errd-lider-progress {
		grid-row: auto;
	}

	.errd-lider-badge-col > .errd-lider-kicker {
		display: block;
	}

	.errd-lider-dialog .errd-lider-tab {
		font-size: 0.7rem;
	}
}
/* Launcher layout: intro + CTA on top, the four levels underneath */
.errd-lider-launch {
	display: grid;
	grid-template-columns: 1fr auto;
}

.errd-lider-launch-cta {
	grid-row: 1;
	grid-column: 2;
}

.errd-lider-launch-levels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-column: 1 / -1;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.errd-lider-launch-level {
	justify-content: flex-start;
	width: 100%;
	padding: 9px 12px 9px 8px;
	border-radius: 12px;
}

@media (max-width: 700px) {
	.errd-lider-launch {
		grid-template-columns: minmax(0, 1fr);
	}

	.errd-lider-launch-cta {
		grid-row: auto;
		grid-column: auto;
	}

	.errd-lider-launch-levels {
		grid-template-columns: 1fr 1fr;
	}
}
.errd-lider-dialog .errd-lider-medal-ribbon {
	display: block;
	max-width: none;
	width: 100px;
	height: auto;
	margin: 0 auto;
	border-radius: 2px;
	box-shadow: 0 4px 10px rgba(11, 31, 69, 0.2);
}

@media (max-width: 700px) {
	.errd-lider-medal-art {
		display: flex;
		align-items: center;
		gap: 18px;
		width: auto;
	}

	.errd-lider-dialog .errd-lider-medal-img {
		width: 64px;
		margin: 0;
	}
}
@media (max-width: 700px) {
	.errd-lider-dialog .errd-lider-progress img {
		width: 90px;
		max-width: none;
	}
}
/* ==========================================================================
   EN VIVO: YouTube live pill, site-wide notice and the En Vivo page
   ========================================================================== */
.errd-live-dot {
	position: relative;
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
}

.errd-live-dot::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid currentColor;
	opacity: 0;
	animation: errd-live-ping 1.6s ease-out infinite;
}

@keyframes errd-live-ping {
	0% { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(1.8); opacity: 0; }
}

/* Header pill */
.errd-live-pill {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
	padding: 7px 12px;
	border-radius: var(--errd-radius-full);
	background: #E62117;
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-decoration: none;
	box-shadow: 0 6px 14px rgba(230, 33, 23, 0.35);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.errd-live-pill[hidden] {
	display: none;
}

.errd-live-pill:hover {
	transform: translateY(-1px);
	background: #C4160E;
	color: #FFFFFF;
}

@media (max-width: 1023px) {
	.errd-header-inner {
		position: relative;
	}

	/* Hangs just below the header: the brand leaves no room beside the menu button */
	.errd-live-pill--header {
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		z-index: 5;
		margin: 0;
		padding: 6px 11px;
		font-size: 0.66rem;
	}
}

/* Site-wide notice */
.errd-live-toast {
	position: fixed;
	top: 92px;
	left: 50%;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(640px, calc(100vw - 24px));
	padding: 12px 12px 12px 14px;
	border-radius: 16px;
	background: #0B1F45;
	color: #FFFFFF;
	box-shadow: 0 22px 50px rgba(5, 15, 35, 0.45);
	opacity: 0;
	transform: translate(-50%, -18px);
	transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-live-toast[hidden] {
	display: none;
}

.errd-live-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.errd-live-toast-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #E62117;
	color: #FFFFFF;
}

.errd-live-toast-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.errd-live-toast-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #FF6B63;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.errd-live-toast-msg {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.88rem;
	line-height: 1.4;
}

.errd-live-toast-msg strong {
	color: #FFFFFF;
	font-weight: 800;
}

.errd-live-toast-cta {
	flex: none;
	padding: 10px 16px;
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: #0B1F45;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.errd-live-toast-cta:hover {
	background: #E62117;
	color: #FFFFFF;
}

.errd-live-toast-close {
	display: grid;
	flex: none;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	cursor: pointer;
}

.errd-live-toast-close:hover {
	background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 600px) {
	.errd-live-toast {
		top: 78px;
		flex-wrap: wrap;
	}

	.errd-live-toast-icon {
		width: 40px;
		height: 40px;
	}

	.errd-live-toast-text {
		flex-basis: calc(100% - 100px);
	}

	.errd-live-toast-cta {
		flex: 1;
		text-align: center;
	}
}

/* En Vivo page */
.errd-tv {
	padding-top: 40px;
	padding-bottom: 60px;
}

.errd-tv-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 0;
	overflow: hidden;
	border-radius: var(--errd-radius-lg);
	background: #0B1F45;
	box-shadow: 0 24px 50px rgba(11, 31, 69, 0.22);
	scroll-margin-top: 110px;
}

.errd-tv-stage.is-switching .errd-tv-info > * {
	animation: errd-tv-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes errd-tv-in {
	from { opacity: 0; transform: translateY(8px); }
}

.errd-tv-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000000;
}

.errd-tv-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.errd-tv-empty {
	display: grid;
	place-content: center;
	gap: 10px;
	height: 100%;
	color: #FFFFFF;
	text-align: center;
}

.errd-tv-empty a {
	color: #F3C74E;
	font-weight: 800;
}

.errd-tv-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	color: rgba(255, 255, 255, 0.85);
}

.errd-tv-status {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 9px;
	padding: 6px 12px;
	border-radius: var(--errd-radius-full);
	background: rgba(255, 255, 255, 0.1);
	color: #C9D3E3;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.errd-tv-status .errd-live-dot::after {
	display: none;
}

.errd-tv-stage.is-live .errd-tv-status {
	background: #E62117;
	color: #FFFFFF;
}

.errd-tv-stage.is-live .errd-tv-status .errd-live-dot::after {
	display: block;
}

.errd-tv-program {
	color: #F3C74E;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.errd-tv-title {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.2;
}

.errd-tv-meta {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

.errd-tv-offline {
	margin: 4px 0 0;
	padding: 12px 14px;
	border-left: 3px solid #F3C74E;
	border-radius: 0 10px 10px 0;
	background: rgba(255, 255, 255, 0.06);
	font-size: 0.84rem;
	line-height: 1.5;
}

.errd-tv-offline[hidden] {
	display: none;
}

.errd-tv-next {
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
	border: 1px dashed rgba(243, 199, 78, 0.5);
	border-radius: 10px;
}

.errd-tv-next span {
	color: #F3C74E;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.errd-tv-next strong {
	color: #FFFFFF;
}

.errd-tv-next em {
	font-size: 0.82rem;
	font-style: normal;
}

.errd-tv-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.errd-tv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--errd-radius-full);
	color: #FFFFFF;
	font-size: 0.88rem;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-tv-btn:hover {
	transform: translateY(-2px);
	border-color: #FFFFFF;
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}

.errd-tv-btn--primary {
	border-color: #E62117;
	background: #E62117;
}

.errd-tv-btn--primary:hover {
	border-color: #C4160E;
	background: #C4160E;
}

.errd-tv-section {
	margin-top: 54px;
}

.errd-tv-section-title {
	margin: 4px 0 20px;
	color: var(--errd-navy-deep);
	font-size: 1.7rem;
	font-weight: 900;
}

.errd-tv-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 20px;
}

.errd-tv-section-head .errd-tv-section-title {
	margin-bottom: 0;
}

.errd-tv-programs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.errd-tv-program-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--errd-gray-border);
	border-top: 4px solid #E62117;
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.errd-tv-program-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(11, 31, 69, 0.1);
}

.errd-tv-program-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #FDECEB;
	color: #E62117;
}

.errd-tv-program-card h3 {
	margin: 4px 0 0;
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
	font-weight: 900;
}

.errd-tv-program-card p {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	line-height: 1.5;
}

.errd-tv-link {
	align-self: flex-start;
	margin-top: auto;
	padding: 0;
	border: 0;
	background: none;
	color: #E62117;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
}

.errd-tv-link:hover {
	text-decoration: underline;
}

.errd-tv-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.errd-tv-filter {
	padding: 7px 14px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.errd-tv-filter:hover {
	border-color: var(--errd-navy-deep);
}

.errd-tv-filter.is-active {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-tv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 18px;
}

.errd-tv-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.errd-tv-card[hidden] {
	display: none;
}

.errd-tv-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px rgba(11, 31, 69, 0.12);
}

.errd-tv-card:focus-visible,
.errd-tv-filter:focus-visible,
.errd-tv-link:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.errd-tv-card.is-playing {
	border-color: #E62117;
	box-shadow: 0 0 0 2px #E62117;
}

.errd-tv-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0B1F45;
}

.errd-tv-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-tv-card:hover .errd-tv-card-thumb img {
	transform: scale(1.05);
}

.errd-tv-card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(230, 33, 23, 0.92);
	color: #FFFFFF;
	transform: translate(-50%, -50%) scale(0.9);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.errd-tv-card:hover .errd-tv-card-play,
.errd-tv-card:focus-visible .errd-tv-card-play {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.errd-tv-card-now {
	position: absolute;
	top: 10px;
	left: 10px;
	display: none;
	padding: 4px 9px;
	border-radius: var(--errd-radius-full);
	background: #E62117;
	color: #FFFFFF;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.errd-tv-card.is-playing .errd-tv-card-now {
	display: block;
}

.errd-tv-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.errd-tv-chip {
	align-self: flex-start;
	padding: 3px 9px;
	border-radius: var(--errd-radius-full);
	background: #FDECEB;
	color: #C4160E;
	font-size: 0.7rem;
	font-weight: 800;
}

.errd-tv-card-body strong {
	font-size: 0.95rem;
	line-height: 1.35;
}

.errd-tv-card-date {
	margin-top: auto;
	color: #7A879A;
	font-size: 0.78rem;
}

.errd-tv-empty-filter {
	padding: 24px;
	border: 1px dashed var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	color: var(--errd-gray-dark);
	text-align: center;
}

.errd-tv-empty-filter[hidden] {
	display: none;
}

.errd-tv-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 26px 0 0;
	text-align: center;
}

.errd-tv-more-btn {
	padding: 12px 26px;
	border: 2px solid var(--errd-navy-deep);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-tv-more-btn:hover {
	transform: translateY(-2px);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.errd-tv-more-btn[hidden] {
	display: none;
}

.errd-tv-card-duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.8);
	color: #FFFFFF;
	font-size: 0.72rem;
	font-weight: 700;
}

.errd-tv-more a {
	color: #E62117;
	font-weight: 800;
}

@media (max-width: 900px) {
	.errd-tv-stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.errd-tv-info {
		padding: 20px 18px;
	}

	.errd-tv-title {
		font-size: 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-live-dot::after {
		animation: none;
	}
}
/* Live pill: in the top bar on desktop, beside the menu button on phones and tablets */
.errd-live-pill--topbar {
	margin: 0 14px 0 0;
	padding: 3px 10px;
	font-size: 0.62rem;
	box-shadow: none;
}

@media (min-width: 1024px) {
	.errd-live-pill--header {
		display: none;
	}
}

@media (max-width: 1023px) {
	.errd-live-pill--topbar {
		display: none;
	}
}
/* ==========================================================================
   DOMINIC: virtual assistant (inc/dominic.php)
   ========================================================================== */
body.has-dominic .errd-back-to-top {
	bottom: 98px;
	right: 34px;
}

.errd-dominic-launcher {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9980;
	display: inline-flex;
	align-items: center;
	gap: 0;
	max-width: 58px;
	height: 58px;
	padding: 4px 12px 4px 4px;
	overflow: hidden;
	border: 2px solid #FFFFFF;
	border-radius: var(--errd-radius-full);
	background: #0B1F45;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(11, 31, 69, 0.35);
	transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), gap 0.3s ease, transform 0.25s ease, background 0.2s ease;
}

.errd-dominic-launcher .errd-dominic-avatar {
	flex: none;
	width: 46px;
	height: 46px;
}

.errd-dominic-launcher-label {
	opacity: 0;
	transition: opacity 0.25s ease;
}

.errd-dominic-launcher:hover,
.errd-dominic-launcher:focus-visible {
	max-width: 260px;
	gap: 10px;
	transform: translateY(-2px);
}

.errd-dominic-launcher:hover .errd-dominic-launcher-label,
.errd-dominic-launcher:focus-visible .errd-dominic-launcher-label {
	opacity: 1;
}

.errd-dominic-launcher:focus-visible {
	outline: 3px solid #F3C74E;
	outline-offset: 3px;
}

.errd-dominic.is-open .errd-dominic-launcher {
	transform: scale(0.92);
	background: #17396F;
}

.errd-dominic-panel {
	position: fixed;
	right: 24px;
	bottom: 96px;
	z-index: 9985;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	height: min(640px, calc(100vh - 130px));
	overflow: hidden;
	border-radius: 20px;
	background: #F4F7FB;
	box-shadow: 0 28px 70px rgba(5, 15, 35, 0.35);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.errd-dominic-panel[hidden] {
	display: none;
}

.errd-dominic-panel.is-visible {
	opacity: 1;
	transform: none;
}

.errd-dominic-head {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 14px 16px;
	background: linear-gradient(135deg, #0B1F45 0%, #17396F 100%);
	color: #FFFFFF;
}

.errd-dominic-head-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.errd-dominic-head-text strong {
	font-size: 1.02rem;
	font-weight: 900;
	letter-spacing: 0.08em;
}

.errd-dominic-head-text span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.75rem;
}

.errd-dominic-online {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34D27B;
	box-shadow: 0 0 0 3px rgba(52, 210, 123, 0.25);
}

.errd-dominic-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s ease;
}

.errd-dominic-icon:hover {
	background: rgba(255, 255, 255, 0.22);
}

.errd-dominic-log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 16px 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.errd-dominic-msg {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 100%;
	animation: errd-dominic-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes errd-dominic-in {
	from { opacity: 0; transform: translateY(8px); }
}

.errd-dominic-msg.is-user {
	justify-content: flex-end;
}

.errd-dominic-msg-avatar {
	flex: none;
}

.errd-dominic-msg-avatar svg {
	display: block;
	width: 28px;
	height: 28px;
}

.errd-dominic-bubble {
	min-width: 0;
	max-width: 86%;
	padding: 10px 13px;
	border-radius: 16px 16px 16px 4px;
	background: #FFFFFF;
	color: #1E2B45;
	font-size: 0.9rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
	box-shadow: 0 2px 8px rgba(11, 31, 69, 0.06);
}

.errd-dominic-msg.is-user .errd-dominic-bubble {
	border-radius: 16px 16px 4px 16px;
	background: #0B1F45;
	color: #FFFFFF;
	white-space: pre-wrap;
}

.errd-dominic-msg.is-bot .errd-dominic-bubble > * {
	animation: errd-dominic-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
	animation-delay: var(--d, 0ms);
}

.errd-dominic-bubble p {
	margin: 0 0 8px;
}

.errd-dominic-bubble p:last-child {
	margin-bottom: 0;
}

.errd-dominic-bubble ul,
.errd-dominic-bubble ol {
	margin: 4px 0 8px;
	padding-left: 20px;
}

.errd-dominic-bubble ul {
	list-style: disc;
}

.errd-dominic-bubble ol {
	list-style: decimal;
}

.errd-dominic-bubble li {
	margin-bottom: 4px;
}

.errd-dominic-bubble strong {
	color: #0B1F45;
}

.errd-dominic-bubble a {
	color: #C8102E;
	font-weight: 700;
}

.errd-dominic-sources {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px dashed #DCE3EC;
}

.errd-dominic-source {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: var(--errd-radius-full);
	background: #EEF3F9;
	color: #0B1F45;
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
}

a.errd-dominic-source:hover {
	background: #0B1F45;
	color: #FFFFFF;
}

.errd-dominic-source.is-manual {
	background: #FFF6DE;
	color: #7A5A0B;
}

.errd-dominic-msg.is-typing .errd-dominic-bubble {
	display: flex;
	gap: 4px;
	padding: 14px 16px;
}

.errd-dominic-msg.is-typing .errd-dominic-bubble span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #8A97AB;
	animation: errd-dominic-dot 1.1s ease-in-out infinite;
}

.errd-dominic-msg.is-typing .errd-dominic-bubble span:nth-child(2) { animation-delay: 0.15s; }
.errd-dominic-msg.is-typing .errd-dominic-bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes errd-dominic-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-5px); opacity: 1; }
}

.errd-dominic-suggest {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 10px;
}

.errd-dominic-suggest[hidden] {
	display: none;
}

.errd-dominic-chip {
	padding: 6px 11px;
	border: 1px solid #C9D5E5;
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: #0B1F45;
	font: inherit;
	font-size: 0.76rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.errd-dominic-chip:hover {
	border-color: #0B1F45;
	background: #0B1F45;
	color: #FFFFFF;
}

.errd-dominic-form {
	display: flex;
	flex: none;
	align-items: flex-end;
	gap: 8px;
	margin: 0 12px;
	padding: 6px 6px 6px 14px;
	border: 1px solid #D5DEEA;
	border-radius: 18px;
	background: #FFFFFF;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.errd-dominic-form:focus-within {
	border-color: #0B1F45;
	box-shadow: 0 0 0 3px rgba(11, 31, 69, 0.1);
}

.errd-dominic-form textarea {
	flex: 1;
	min-height: 24px;
	max-height: 120px;
	padding: 7px 0;
	border: 0;
	outline: none;
	resize: none;
	background: transparent;
	color: #1E2B45;
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.4;
}

.errd-dominic-send {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #C8102E;
	color: #FFFFFF;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.errd-dominic-send:hover {
	transform: scale(1.06);
	background: #A50D25;
}

.errd-dominic-send:disabled {
	opacity: 0.5;
	cursor: wait;
}

.errd-dominic-note {
	flex: none;
	margin: 6px 0 10px;
	color: #556378;
	font-size: 0.68rem;
	text-align: center;
}

.errd-dominic-chip:focus-visible,
.errd-dominic-icon:focus-visible,
.errd-dominic-send:focus-visible,
.errd-dominic-source:focus-visible {
	outline: 3px solid #F3C74E;
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.errd-dominic-launcher {
		right: 16px;
		bottom: 16px;
		max-width: 54px;
		height: 54px;
	}

	.errd-dominic-launcher .errd-dominic-avatar {
		width: 42px;
		height: 42px;
	}

	body.has-dominic .errd-back-to-top {
		right: 21px;
		bottom: 82px;
	}

	.errd-dominic-panel {
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
		transform-origin: bottom center;
	}

	.errd-dominic.is-open .errd-dominic-launcher {
		display: none;
	}

	.errd-dominic-form textarea {
		font-size: 16px; /* Avoids the zoom-in on iPhone */
	}
}

@media (prefers-reduced-motion: reduce) {
	.errd-dominic-msg,
	.errd-dominic-msg.is-bot .errd-dominic-bubble > *,
	.errd-dominic-msg.is-typing .errd-dominic-bubble span {
		animation: none;
	}
}
/* COMANDANTE · navegación: botones de destino, sección resaltada y aviso en el celular */
.errd-dominic-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.errd-dominic-chip.is-primary {
	border-color: #C8102E;
	background: #C8102E;
	color: #FFFFFF;
}

.errd-dominic-chip.is-primary:hover {
	border-color: #A50D25;
	background: #A50D25;
}

.errd-dominic-highlight {
	border-radius: 14px;
	animation: errd-dominic-highlight 3s ease-out;
}

@keyframes errd-dominic-highlight {
	0%, 55% {
		box-shadow: 0 0 0 4px #F3C74E, 0 0 0 12px rgba(243, 199, 78, 0.28);
		background-color: rgba(243, 199, 78, 0.10);
	}
	100% {
		box-shadow: 0 0 0 4px rgba(243, 199, 78, 0), 0 0 0 12px rgba(243, 199, 78, 0);
		background-color: transparent;
	}
}

.errd-dominic-toast {
	position: fixed;
	right: 16px;
	bottom: 82px;
	left: 16px;
	z-index: 9986;
	padding: 12px 14px;
	border: 0;
	border-left: 4px solid #F3C74E;
	border-radius: 14px;
	background: #0B1F45;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.86rem;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 14px 34px rgba(5, 15, 35, 0.35);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	cursor: pointer;
}

.errd-dominic-toast.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.errd-dominic-highlight {
		animation: none;
		box-shadow: 0 0 0 4px #F3C74E;
	}
}

/* COMANDANTE avatar (photo illustration) */
.errd-dominic-avatar {
	display: block;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: #0B1F45;
}

.errd-dominic-head .errd-dominic-avatar {
	width: 42px;
	height: 42px;
	border: 2px solid #F3C74E;
}

.errd-dominic-msg-avatar .errd-dominic-avatar {
	width: 30px;
	height: 30px;
	border: 1.5px solid #FFFFFF;
	box-shadow: 0 2px 6px rgba(11, 31, 69, 0.2);
}

.errd-dominic-launcher .errd-dominic-avatar {
	border: 2px solid #F3C74E;
}
/* COMANDANTE: images in answers + viewer */
.errd-dominic-images {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.errd-dominic-images.is-pair {
	grid-template-columns: 1fr 1fr;
}

.errd-dominic-figure {
	margin: 0;
}

.errd-dominic-figure-btn {
	display: grid;
	place-items: center;
	width: 100%;
	max-height: 190px;
	padding: 6px;
	overflow: hidden;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #F8FAFC;
	cursor: zoom-in;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.errd-dominic-figure-btn:hover,
.errd-dominic-figure-btn:focus-visible {
	border-color: #0B1F45;
	box-shadow: 0 6px 14px rgba(11, 31, 69, 0.12);
}

.errd-dominic-figure-btn img {
	display: block;
	max-width: 100%;
	max-height: 176px;
	object-fit: contain;
}

.errd-dominic-figure figcaption {
	margin-top: 4px;
	color: #556378;
	font-size: 0.66rem;
	line-height: 1.35;
}

.errd-dominic-figure figcaption a {
	color: #556378;
	font-weight: 600;
}

.errd-dominic-viewer {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(5, 15, 35, 0.86);
	animation: errd-dominic-in 0.25s ease;
}

.errd-dominic-viewer[hidden] {
	display: none;
}

.errd-dominic-viewer figure {
	margin: 0;
	max-width: min(900px, 100%);
	text-align: center;
}

.errd-dominic-viewer img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	border-radius: 12px;
	background: #FFFFFF;
	object-fit: contain;
}

.errd-dominic-viewer figcaption {
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.85rem;
}

.errd-dominic-viewer-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #FFFFFF;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.errd-dominic-viewer-close:hover,
.errd-dominic-viewer-close:focus-visible {
	background: rgba(255, 255, 255, 0.3);
	outline: none;
}
/* COMANDANTE: topographic map card */
.errd-dominic-map {
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid #DCE3EC;
	border-radius: 12px;
	background: #F8FAFC;
}

.errd-dominic-map-head {
	padding: 7px 10px;
	border-bottom: 1px solid #DCE3EC;
	color: #0B1F45;
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1.3;
}

.errd-dominic-map-canvas {
	height: 220px;
	background: #E8EEF5;
}

.errd-dominic-map-canvas.is-offline {
	display: grid;
	place-items: center;
	padding: 16px;
	color: #556378;
	font-size: 0.8rem;
	text-align: center;
}

.errd-dominic-map-canvas .leaflet-control-attribution {
	font-size: 9px;
}

.errd-dominic-map-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 10px;
}

.errd-dominic-map-links a {
	padding: 4px 10px;
	border: 1px solid #C9D5E5;
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: #0B1F45;
	font-size: 0.7rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.errd-dominic-map-links a:hover,
.errd-dominic-map-links a:focus-visible {
	border-color: #0B1F45;
	background: #0B1F45;
	color: #FFFFFF;
}

/* ==========================================================================
   Alas de Bronce: private pilot exam simulator (page-alas-de-bronce.php)
   ========================================================================== */

.adb-hero {
	--bronze: #C98A4B;
	--bronze-light: #E7B37A;
}

.adb-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: 30px;
	position: relative;
	z-index: 1;
}

.adb-hero .errd-page-hero-title {
	background: linear-gradient(90deg, #FFFFFF 0%, var(--bronze-light) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.adb-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	padding: 13px 22px;
	border-radius: var(--errd-radius-full);
	background: var(--bronze);
	color: #1A0F05;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.adb-hero-cta:hover,
.adb-hero-cta:focus-visible {
	background: var(--bronze-light);
	transform: translateY(-2px);
}

.adb-hero-art {
	width: 100%;
	max-width: 440px;
	justify-self: end;
}

.adb-hero-plane {
	animation: adb-climb 6s ease-in-out infinite;
}

@keyframes adb-climb {
	0%, 100% { translate: 0 0; }
	50% { translate: 6px -8px; }
}

/* Program cards */
.adb-intro {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: -34px;
	position: relative;
	z-index: 2;
}

.adb-intro-card {
	padding: 24px;
	border: 1px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-lg);
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-card);
}

.adb-intro-card h2 {
	margin: 12px 0 8px;
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
	font-weight: 900;
}

.adb-intro-card p,
.adb-steps li {
	color: var(--errd-gray-dark);
	font-size: 0.95rem;
	line-height: 1.6;
}

.adb-intro-icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #F7EBDD;
	color: #8A5520;
}

.adb-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: adb-step;
}

.adb-steps li {
	position: relative;
	padding: 0 0 10px 34px;
	counter-increment: adb-step;
}

.adb-steps li::before {
	content: counter(adb-step);
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 800;
}

/* Simulator shell */
.adb {
	margin-top: 54px;
	padding: 30px;
	border-radius: 26px;
	background: linear-gradient(180deg, #F2F5FA 0%, #FFFFFF 100%);
	border: 1px solid var(--errd-gray-border);
	scroll-margin-top: 90px;
}

.adb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px 30px;
	margin-bottom: 22px;
}

/* «Volver» of the practice modules: its own row above the heading */
.adb-back-row {
	flex-basis: 100%;
	margin-bottom: -2px;
}

.adb-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px 8px 10px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.adb-back:hover,
.adb-back:focus-visible {
	border-color: #E7B37A;
	background: #FBF3EA;
}

.adb-head p {
	max-width: 420px;
	margin: 0;
	color: var(--errd-gray-muted);
	font-size: 0.9rem;
}

.adb-title {
	margin: 4px 0 0;
	color: var(--errd-navy-deep);
	font-size: 1.7rem;
	font-weight: 900;
}

.adb-loading,
.adb-error {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 50px 10px;
	color: var(--errd-gray-muted);
	font-weight: 700;
}

.adb-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--errd-gray-border);
	border-top-color: #A8692E;
	border-radius: 50%;
	animation: adb-spin 0.8s linear infinite;
}

@keyframes adb-spin {
	to { transform: rotate(360deg); }
}

.adb-view {
	animation: adb-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adb-in {
	from { opacity: 0; transform: translateY(8px); }
}

/* Buttons */
.adb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1.5px solid var(--errd-navy-deep);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.adb-btn:hover:not(:disabled),
.adb-btn:focus-visible {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-btn--primary {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-btn--primary:hover:not(:disabled),
.adb-btn--primary:focus-visible {
	background: var(--errd-blue-royal);
	border-color: var(--errd-blue-royal);
}

.adb-btn--ghost {
	border-color: var(--errd-gray-border);
	background: transparent;
}

.adb-btn--sm {
	min-height: 36px;
	padding: 6px 14px;
	font-size: 0.82rem;
}

.adb-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.adb-btn.is-warn {
	border-color: var(--errd-red-inst);
	background: var(--errd-red-inst);
	color: #FFFFFF;
}

.adb-link {
	display: block;
	margin: 22px auto 0;
	border: 0;
	background: none;
	color: var(--errd-gray-muted);
	font: inherit;
	font-size: 0.82rem;
	text-decoration: underline;
	cursor: pointer;
}

/* Home */
.adb-resume {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 16px 18px;
	border: 1.5px solid #E7B37A;
	border-radius: 16px;
	background: #FBF3EA;
}

.adb-resume div {
	flex: 1 1 240px;
}

.adb-resume strong,
.adb-resume span {
	display: block;
}

.adb-resume strong {
	color: #6E3F12;
}

.adb-resume span {
	color: #7A5530;
	font-size: 0.88rem;
}

.adb-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.adb-stat {
	padding: 16px;
	border-radius: 16px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-stat strong {
	display: block;
	color: #E7B37A;
	font-size: 1.7rem;
	font-weight: 900;
	line-height: 1.1;
}

.adb-stat span {
	color: #C7D2E5;
	font-size: 0.82rem;
	font-weight: 600;
}

.adb-modes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.adb-mode {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 18px;
	background: #FFFFFF;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.adb-mode:hover {
	transform: translateY(-3px);
	box-shadow: var(--errd-shadow-md);
}

.adb-mode--exam {
	border-color: #E7B37A;
	background: linear-gradient(160deg, #FFFFFF 40%, #FBF3EA 100%);
}

.adb-mode h3 {
	margin: 4px 0 0;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 900;
}

.adb-mode p {
	flex: 1;
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
	line-height: 1.55;
}

.adb-mode-icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #EAF0FA;
	color: var(--errd-blue-inst);
}

.adb-mode--exam .adb-mode-icon {
	background: #F7EBDD;
	color: #8A5520;
}

.adb-count {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}

.adb-count button {
	min-width: 44px;
	min-height: 36px;
	padding: 4px 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
}

.adb-count button.is-active {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-areas-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 28px 0 12px;
}

.adb-areas-head h3,
.adb-history h3,
.adb-areas-result h3,
.adb-review h3 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
	font-weight: 900;
}

.adb-areas-head span {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

.adb-areas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.adb-area {
	position: relative;
	cursor: pointer;
}

.adb-area input {
	position: absolute;
	opacity: 0;
}

.adb-area-box {
	display: block;
	height: 100%;
	padding: 14px 14px 14px 44px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 14px;
	background: #FFFFFF;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.adb-area-box::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 16px;
	width: 18px;
	height: 18px;
	border: 2px solid #94A3B8;
	border-radius: 5px;
	background: #FFFFFF;
}

.adb-area input:checked + .adb-area-box {
	border-color: var(--errd-blue-inst);
	background: #F5F8FE;
}

.adb-area input:checked + .adb-area-box::before {
	border-color: var(--errd-blue-inst);
	background: var(--errd-blue-inst) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.adb-area input:focus-visible + .adb-area-box {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.adb-area strong {
	display: block;
	color: var(--errd-navy-deep);
	font-size: 0.92rem;
}

.adb-area em {
	display: block;
	margin-bottom: 8px;
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	font-style: normal;
}

.adb-bar {
	display: block;
	height: 6px;
	border-radius: 6px;
	background: #E2E8F0;
	overflow: hidden;
}

.adb-bar > span {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, #A8692E, #E7B37A);
	transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adb-bar > span.is-pass {
	background: #1F9D55;
}

.adb-bar > span.is-fail {
	background: #E5322D;
}

.adb-history {
	margin-top: 26px;
}

.adb-history ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.adb-history li {
	padding: 10px 14px;
	border-left: 4px solid #E5322D;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-sm);
}

.adb-history li.is-pass {
	border-left-color: #1F9D55;
}

.adb-history strong {
	display: block;
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
}

.adb-history span {
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
}

/* Quiz */
.adb-q-top {
	display: flex;
	align-items: center;
	gap: 12px;
	scroll-margin-top: 90px;
}

.adb-q-top > div {
	flex: 1;
}

.adb-q-mode,
.adb-q-count {
	display: block;
}

.adb-q-mode {
	color: #8A5520;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.adb-q-count {
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 900;
}

.adb-clock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: var(--errd-radius-full);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.adb-clock.is-low {
	background: var(--errd-red-inst);
	animation: adb-pulse 1s ease-in-out infinite;
}

@keyframes adb-pulse {
	50% { opacity: 0.75; }
}

.adb-progress {
	height: 6px;
	margin: 14px 0 18px;
	border-radius: 6px;
	background: #E2E8F0;
	overflow: hidden;
}

.adb-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--errd-blue-inst), #A8692E);
	transition: width 0.4s ease;
}

.adb-q-card {
	padding: 26px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 20px;
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-card);
}

.adb-q-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.adb-chip {
	padding: 3px 10px;
	border-radius: var(--errd-radius-full);
	background: #EAF0FA;
	color: var(--errd-blue-inst);
	font-size: 0.74rem;
	font-weight: 800;
}

.adb-chip--flag {
	background: #FFF4D6;
	color: #8A6405;
}

.adb-chip--warn {
	background: #FDE2E1;
	color: #B42318;
}

.adb-flag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 6px 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.adb-flag.is-on {
	border-color: #E0B126;
	background: #FFF4D6;
	color: #8A6405;
}

.adb-fig {
	margin: 18px auto 0;
	max-width: 480px;
}

.adb-fig svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

.adb-fig--sm {
	max-width: 320px;
	margin: 10px 0;
}

.adb-q-text {
	margin: 18px 0 18px;
	color: var(--errd-dark-text);
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.5;
}

.adb-options {
	display: grid;
	gap: 10px;
}

.adb-opt {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 56px;
	padding: 12px 16px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--errd-dark-text);
	font: inherit;
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.adb-opt:hover:not(:disabled) {
	border-color: var(--errd-blue-accent);
	background: #F5F8FE;
}

.adb-opt:focus-visible {
	outline: 3px solid var(--errd-blue-accent);
	outline-offset: 2px;
}

.adb-opt:active:not(:disabled) {
	transform: scale(0.99);
}

.adb-opt-letter {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #EEF2F7;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-opt.is-picked {
	border-color: var(--errd-navy-deep);
	background: #F1F4FA;
}

.adb-opt.is-picked .adb-opt-letter {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-opt.is-correct {
	border-color: #1F9D55;
	background: #ECFAF1;
}

.adb-opt.is-correct .adb-opt-letter {
	background: #1F9D55;
	color: #FFFFFF;
}

.adb-opt.is-wrong {
	border-color: #E5322D;
	background: #FEF0EF;
}

.adb-opt.is-wrong .adb-opt-letter {
	background: #E5322D;
	color: #FFFFFF;
}

.adb-opt.is-dim {
	opacity: 0.6;
}

.adb-opt:disabled {
	cursor: default;
}

.adb-feedback {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	animation: adb-in 0.3s ease;
}

.adb-feedback.is-ok {
	background: #ECFAF1;
	color: #14532D;
}

.adb-feedback.is-bad {
	background: #FEF0EF;
	color: #7F1D1D;
}

.adb-feedback strong {
	font-size: 1.02rem;
}

.adb-feedback p {
	margin: 6px 0 0;
	line-height: 1.55;
}

.adb-why {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 7px 14px;
	border: 1.5px solid currentColor;
	border-radius: var(--errd-radius-full);
	background: transparent;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
}

.adb-why::before {
	content: '';
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071A42' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.adb-why:hover,
.adb-why:focus-visible {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-why:hover::before,
.adb-why:focus-visible::before {
	filter: invert(1);
}

.adb-q-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
}

.adb-q-nav [data-adb-finish] {
	margin-left: auto;
}

.adb-hint {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

.adb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
	gap: 6px;
	margin-top: 20px;
	padding: 14px;
	border-radius: 16px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-grid button {
	position: relative;
	height: 36px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 9px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 800;
	cursor: pointer;
}

.adb-grid button.is-done {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-grid button.is-flag::after {
	content: '';
	position: absolute;
	top: -4px;
	right: -4px;
	width: 11px;
	height: 11px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: #E0B126;
}

.adb-grid button.is-current {
	outline: 3px solid #E7B37A;
	outline-offset: 1px;
}

/* Results */
.adb-score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
	padding: 26px;
	border-radius: 22px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-ring {
	--c: #E7B37A;
	display: grid;
	flex: 0 0 150px;
	place-content: center;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background:
		radial-gradient(closest-side, var(--errd-navy-deep) 79%, transparent 80%),
		conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
	text-align: center;
}

.adb-score.is-pass .adb-ring {
	--c: #34D27B;
}

.adb-score.is-fail .adb-ring {
	--c: #FF6B5E;
}

.adb-ring strong {
	font-size: 2.2rem;
	font-weight: 900;
	line-height: 1;
}

.adb-ring span {
	color: #C7D2E5;
	font-size: 0.82rem;
}

.adb-score-text {
	flex: 1 1 300px;
}

.adb-score-text h3 {
	margin: 6px 0;
	color: #FFFFFF;
	font-size: 1.5rem;
	font-weight: 900;
}

.adb-score-text p {
	margin: 0 0 6px;
	color: #D6DEEC;
}

.adb-score-time {
	font-size: 0.85rem;
}

.adb-score-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.adb-score .adb-btn {
	border-color: rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #FFFFFF;
}

.adb-score .adb-btn--primary {
	border-color: #E7B37A;
	background: #E7B37A;
	color: #1A0F05;
}

.adb-score .adb-btn:hover,
.adb-score .adb-btn:focus-visible {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
}

.adb-areas-result {
	margin-top: 24px;
}

.adb-areas-result ul {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.adb-areas-result li {
	display: grid;
	grid-template-columns: minmax(150px, 220px) 1fr 56px;
	align-items: center;
	gap: 12px;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
	font-weight: 600;
}

.adb-areas-result .adb-bar {
	height: 10px;
}

.adb-areas-result strong {
	color: var(--errd-navy-deep);
	text-align: right;
}

.adb-review {
	margin-top: 28px;
}

.adb-review-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.adb-review ol {
	display: grid;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.adb-rev {
	padding: 16px 18px;
	border: 1px solid var(--errd-gray-border);
	border-left: 5px solid #1F9D55;
	border-radius: 14px;
	background: #FFFFFF;
}

.adb-rev.is-bad {
	border-left-color: #E5322D;
}

.adb-rev-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.adb-rev-n {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #EEF2F7;
	color: var(--errd-navy-deep);
	font-size: 0.8rem;
	font-weight: 900;
}

.adb-rev-q {
	margin: 10px 0 6px;
	color: var(--errd-dark-text);
	font-weight: 700;
	line-height: 1.5;
}

.adb-rev p {
	margin: 4px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.adb-rev-yours {
	color: #B42318;
}

.adb-rev-right {
	color: #166534;
	font-weight: 700;
}

.adb-rev-x {
	color: var(--errd-gray-dark);
}

.adb-note {
	display: flex;
	gap: 12px;
	margin: 22px 0 60px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #F2F5FA;
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	line-height: 1.6;
}

.adb-note svg {
	flex: 0 0 20px;
	margin-top: 2px;
	color: var(--errd-blue-inst);
}

.adb-note p {
	margin: 0;
}

@media (max-width: 1100px) {
	.adb-modes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.adb-hero-grid {
		grid-template-columns: 1fr;
	}

	.adb-hero-art {
		display: none;
	}

	.adb-intro {
		grid-template-columns: 1fr;
		margin-top: 24px;
	}

	.adb-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.adb {
		margin-top: 34px;
		padding: 18px 14px;
		border-radius: 20px;
	}

	.adb-title {
		font-size: 1.35rem;
	}

	.adb-modes {
		grid-template-columns: 1fr;
	}

	.adb-q-card {
		padding: 18px 14px;
	}

	.adb-q-text {
		font-size: 1.05rem;
	}

	.adb-opt {
		font-size: 0.95rem;
	}

	.adb-q-top .adb-btn--sm {
		padding: 6px 10px;
	}

	.adb-q-nav .adb-btn {
		flex: 1 1 auto;
	}

	.adb-flag {
		margin-left: 0;
	}

	.adb-score {
		padding: 20px 16px;
	}

	.adb-areas-result li {
		grid-template-columns: 1fr 48px;
	}

	.adb-areas-result li .adb-bar {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-hero-plane,
	.adb-clock.is-low,
	.adb-view,
	.adb-feedback {
		animation: none;
	}
}

/* Alas de Bronce · hub, application form, cockpit tools and Academia virtual */
.adb-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.adb-hero-actions .adb-hero-cta {
	margin-top: 0;
}

.adb-hero-cta--ghost {
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #FFFFFF;
}

.adb-hero-cta--ghost:hover,
.adb-hero-cta--ghost:focus-visible {
	border-color: #E7B37A;
	background: rgba(231, 179, 122, 0.15);
	color: #FFFFFF;
}

.adb-hero-wings {
	justify-self: end;
	margin: 0;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.adb-hero-wings img {
	display: block;
	width: min(100%, 520px);
	height: auto;
	animation: adb-climb 6s ease-in-out infinite;
}

.adb-hub {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 12px;
	margin-top: -36px;
	scroll-margin-top: 110px; /* «Volver» brings it up below the fixed site header */
	position: relative;
	z-index: 2;
}

.adb-hub-btn {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 14px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-card);
	color: var(--errd-navy-deep);
	text-decoration: none;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}

.adb-hub-btn:hover,
.adb-hub-btn:focus-visible {
	transform: translateY(-3px);
	border-color: #E7B37A;
	box-shadow: var(--errd-shadow-lg);
}

.adb-hub-btn strong {
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1.25;
}

.adb-hub-btn > span:last-child {
	color: var(--errd-gray-muted);
	font-size: 0.76rem;
	line-height: 1.35;
}

.adb-hub-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 14px;
	background: #F7EBDD;
	color: #8A5520;
	transition: background 0.2s ease, color 0.2s ease;
}

.adb-hub-btn.is-active {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

/* Members-only modules seen by a visitor: lock badge, softer look; they open the Academy sign-in */
.adb-hub-icon {
	position: relative;
}

.adb-hub-lock {
	position: absolute;
	right: -6px;
	bottom: -6px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 2px solid #FFFFFF;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #E7B37A;
}

.adb-hub-btn.is-locked:not(.is-active) {
	background: #FAF7F3;
}

.adb-hub-btn.is-locked:not(.is-active) strong,
.adb-hub-btn.is-locked:not(.is-active) .adb-hub-icon svg:first-child {
	opacity: 0.72;
}

.adb-gate {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid #E7B37A;
	border-radius: 18px;
	background: #FBF3EA;
	color: var(--errd-navy-deep);
}

.adb-gate > div {
	flex: 1;
	min-width: 0;
}

.adb-gate strong {
	display: block;
	font-weight: 900;
}

.adb-gate p {
	margin: 4px 0 0;
	font-size: 0.92rem;
	line-height: 1.5;
}

.adb-gate-ico {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--errd-navy-deep);
	color: #E7B37A;
}

@media (max-width: 640px) {
	.adb-gate {
		flex-wrap: wrap;
	}
}

/* Administration link (instructors and administrators only): always in the last column */
.adb-hub-btn.adb-hub-admin {
	grid-column: -2 / -1;
	border-color: #C98A4B;
	background: linear-gradient(135deg, #0F2147 0%, #1D3466 70%, #6E4418 140%);
	color: #FFFFFF;
}

.adb-hub-admin .adb-hub-icon {
	background: rgba(231, 179, 122, 0.2);
	color: #E7B37A;
}

.adb-hub-btn.adb-hub-admin > span:last-child {
	color: rgba(255, 255, 255, 0.78);
}

.adb-hub-btn.adb-hub-admin:hover,
.adb-hub-btn.adb-hub-admin:focus-visible {
	border-color: #E7B37A;
}

.adb-hub-btn.is-active > span:last-child {
	color: #C7D2E5;
}

.adb-hub-btn.is-active .adb-hub-icon {
	background: #E7B37A;
	color: #1A0F05;
}

.adb-panel {
	margin-top: 26px;
	scroll-margin-top: 90px;
}

/* Shared form inputs */
.adb-tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.adb-in {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--errd-gray-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-in--wide {
	grid-column: 1 / -1;
}

.adb-in-box {
	display: flex;
	align-items: center;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 12px;
	background: #FFFFFF;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.adb-in-box:focus-within {
	border-color: var(--errd-blue-accent);
	box-shadow: 0 0 0 3px rgba(30, 107, 235, 0.15);
}

.adb-in-box input,
.adb-in-box select,
.adb-in-box textarea {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--errd-dark-text);
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	outline: none;
}

.adb-in-box textarea {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.9rem;
}

.adb-in-box em {
	padding-right: 12px;
	color: var(--errd-gray-muted);
	font-style: normal;
	font-size: 0.8rem;
}

.adb-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 16px;
	padding: 5px;
	border-radius: 14px;
	background: #E9EEF6;
	overflow-x: auto;
	scrollbar-width: thin;
}

.adb-tabs button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--errd-gray-dark);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

.adb-tabs button[aria-selected="true"] {
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	box-shadow: var(--errd-shadow-sm);
}

.adb-btn--lg {
	min-height: 52px;
	padding: 12px 26px;
	font-size: 1rem;
}

.adb-good {
	color: #15803D;
	font-weight: 800;
}

.adb-bad {
	color: #B42318;
	font-weight: 800;
}

.adb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Application form */
.adb-form fieldset {
	margin: 0 0 16px;
	padding: 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
}

.adb-form legend {
	padding: 0 8px;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-form-note {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: #FBF3EA;
	color: #6E3F12;
	font-size: 0.9rem;
}

.adb-fields {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.adb-fields > label:not(.adb-check) {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--errd-gray-dark);
	font-size: 0.82rem;
	font-weight: 700;
}

.adb-fields input[type="text"],
.adb-fields input[type="email"],
.adb-fields input[type="tel"],
.adb-fields input[type="date"],
.adb-choice input[type="text"] {
	min-height: 46px;
	padding: 8px 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--errd-dark-text);
	font: inherit;
	font-size: 0.98rem;
}

.adb-fields input:focus {
	border-color: var(--errd-blue-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 107, 235, 0.15);
}

.adb-fields .is-wide {
	grid-column: 1 / -1;
}

.adb-choice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.adb-choice > span {
	flex-basis: 100%;
	color: var(--errd-gray-dark);
	font-size: 0.82rem;
	font-weight: 700;
}

.adb-choice label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.adb-choice label:has(input:checked) {
	border-color: var(--errd-navy-deep);
	background: #EEF2FA;
}

.adb-choice input[type="text"] {
	flex: 1 1 200px;
}

.adb-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	font-weight: 600;
}

.adb-check input {
	width: 20px;
	height: 20px;
	margin-top: 1px;
}

.is-invalid,
.is-invalid input {
	border-color: var(--errd-red-inst) !important;
}

.adb-choice.is-invalid > span,
label.is-invalid {
	color: var(--errd-red-inst);
}

.adb-form-msg {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #FEF0EF;
	color: #B42318;
	font-weight: 700;
}

.adb-form-msg.is-ok {
	background: #ECFAF1;
	color: #166534;
}

.adb-sent {
	padding: 40px 20px;
	text-align: center;
	color: var(--errd-gray-dark);
}

.adb-sent svg {
	color: #1F9D55;
}

.adb-sent h3 {
	margin: 10px 0 6px;
	color: var(--errd-navy-deep);
	font-size: 1.5rem;
	font-weight: 900;
}

.adb-sent p {
	max-width: 560px;
	margin: 0 auto 18px;
}

/* Flight computer */
.adb-tool {
	padding: 22px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 18px;
	background: #FFFFFF;
}

.adb-tool h3,
.adb-plan h3,
.adb-meteo h3,
.adb-atc h3 {
	margin: 0 0 4px;
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
	font-weight: 900;
}

.adb-tool-tip {
	margin: 0 0 14px;
	color: var(--errd-gray-muted);
	font-size: 0.86rem;
	line-height: 1.55;
}

.adb-outs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	grid-column: 1 / -1;
	gap: 10px;
}

.adb-out {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-out span {
	display: block;
	color: #AFC0DC;
	font-size: 0.74rem;
	font-weight: 700;
}

.adb-out strong {
	display: block;
	color: #E7B37A;
	font-size: 1.15rem;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.adb-out .adb-good {
	color: #4ADE80;
}

.adb-out .adb-bad {
	color: #FF8A80;
}

.adb-wind {
	grid-column: 1 / -1;
	max-width: 420px;
}

.adb-wind svg {
	display: block;
	width: 100%;
	height: auto;
}

.adb-wb {
	display: grid;
	grid-column: 1 / -1;
	gap: 8px;
}

.adb-wb-row {
	display: grid;
	grid-template-columns: minmax(140px, 1.3fr) 1fr 1fr;
	align-items: end;
	gap: 10px;
}

.adb-wb-row > span {
	padding-bottom: 12px;
	color: var(--errd-navy-deep);
	font-size: 0.85rem;
	font-weight: 800;
}

/* Flight plan */
.adb-scen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.adb-scen > span {
	color: var(--errd-gray-dark);
	font-size: 0.85rem;
	font-weight: 800;
}

.adb-scen button {
	padding: 8px 14px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.adb-scen button.is-active,
.adb-scen button:hover {
	border-color: #A8692E;
	background: #FBF3EA;
}

.adb-plan-form fieldset {
	margin: 0 0 14px;
	padding: 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
}

.adb-plan-form legend {
	padding: 0 8px;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-plan-out {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 16px;
}

.adb-plan-map {
	min-height: 360px;
	border-radius: 16px;
	background: #E2E8F0;
	overflow: hidden;
	z-index: 0;
}

.adb-plan-map > p {
	padding: 20px;
	color: var(--errd-gray-muted);
}

.adb-plan-log {
	padding: 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
}

.adb-table-wrap {
	overflow-x: auto;
}

.adb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
	font-variant-numeric: tabular-nums;
}

.adb-table th,
.adb-table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--errd-gray-border);
	text-align: left;
	white-space: nowrap;
}

.adb-table thead th {
	color: var(--errd-gray-muted);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.adb-table tfoot td {
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-table--dec th {
	width: 1%;
}

.adb-table--dec td {
	white-space: normal;
}

.adb-table code {
	padding: 2px 6px;
	border-radius: 6px;
	background: #EEF2F7;
	color: var(--errd-navy-deep);
	font-weight: 800;
}

.adb-checks {
	display: grid;
	gap: 6px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.86rem;
}

.adb-checks li {
	position: relative;
	padding: 8px 10px 8px 32px;
	border-radius: 10px;
	background: #ECFAF1;
	color: #14532D;
}

.adb-checks li::before {
	content: '✓';
	position: absolute;
	left: 11px;
	font-weight: 900;
}

.adb-checks li.is-bad {
	background: #FEF0EF;
	color: #7F1D1D;
}

.adb-checks li.is-bad::before {
	content: '!';
}

.adb-fpl {
	margin-top: 16px;
	padding: 16px;
	border-radius: 16px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-fpl h3 {
	color: #FFFFFF;
}

.adb-fpl-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.adb-fpl pre,
.adb-raw {
	margin: 10px 0;
	padding: 14px;
	border-radius: 12px;
	background: #0B1430;
	color: #A7F3D0;
	font-size: 0.9rem;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

.adb-fpl .adb-tool-tip {
	color: #AFC0DC;
}

.adb-raw mark {
	padding: 1px 4px;
	border-radius: 4px;
	background: #E7B37A;
	color: #1A0F05;
}

/* Avionics */
.adb-radio {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 16px;
}

.adb-av {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(180deg, #2A2F38, #15181E);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--errd-shadow-lg);
}

.adb-av-unit {
	padding: 12px;
	border-radius: 12px;
	background: #1C2027;
	border: 1px solid #333A45;
}

.adb-av-label {
	display: block;
	margin-bottom: 8px;
	color: #9CA3AF;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.5px;
}

.adb-av-freqs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.adb-av-freq {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: #05070A;
}

.adb-av-freq em {
	display: block;
	color: #6B7280;
	font-size: 0.62rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 1px;
}

.adb-av-freq b,
.adb-av-freq input {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	color: #E5E7EB;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.45rem;
	font-weight: 700;
	outline: none;
}

.adb-av-freq.is-act b {
	color: #4ADE80;
	text-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
}

.adb-av-freq input {
	color: #67E8F9;
}

.adb-av-swap {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: #374151;
	color: #FFFFFF;
	font-size: 1.2rem;
	cursor: pointer;
}

.adb-av-knobs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #9CA3AF;
	font-size: 0.72rem;
	font-weight: 800;
}

.adb-av-knobs button,
.adb-xpdr-keys button,
.adb-xpdr-modes button {
	min-width: 40px;
	min-height: 38px;
	border: 1px solid #4B5563;
	border-radius: 9px;
	background: #2D333D;
	color: #F3F4F6;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.adb-av-knobs button:active,
.adb-xpdr-keys button:active,
.adb-xpdr-modes button:active {
	transform: scale(0.96);
}

.adb-xpdr-screen {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 10px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #05070A;
	color: #FBBF24;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.adb-xpdr-screen b {
	font-size: 2rem;
	letter-spacing: 6px;
}

.adb-xpdr-screen span {
	font-size: 0.85rem;
	font-weight: 700;
}

.adb-xpdr-screen.is-off {
	color: #374151;
}

.adb-blink {
	animation: adb-pulse 0.6s steps(2) infinite;
	font-style: normal;
}

.adb-reply {
	color: #4ADE80;
	font-style: normal;
}

.adb-xpdr-keys,
.adb-xpdr-modes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.adb-xpdr-modes button.is-on {
	border-color: #FBBF24;
	background: #FBBF24;
	color: #111827;
}

.adb-xpdr-modes .adb-ident {
	border-color: #1D4ED8;
	background: #1D4ED8;
}

.adb-xpdr-note {
	margin: 10px 0 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #1E3A8A;
	color: #DBEAFE;
	font-size: 0.82rem;
	font-weight: 700;
}

.adb-xpdr-note.is-emerg {
	background: #991B1B;
	color: #FEE2E2;
}

.adb-atc {
	padding: 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 18px;
	background: #FFFFFF;
}

.adb-atc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 12px;
}

.adb-atc-head span {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.adb-atc-msg {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px;
	border-radius: 14px;
	background: #0B1430;
	color: #E5E7EB;
}

.adb-atc-msg p {
	margin: 0;
	font-weight: 700;
	line-height: 1.5;
}

.adb-atc-who {
	padding: 3px 8px;
	border-radius: 6px;
	background: #22C55E;
	color: #052E16;
	font-size: 0.72rem;
	font-weight: 900;
}

.adb-atc-res {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 700;
}

.adb-atc-res.is-ok {
	background: #ECFAF1;
	color: #14532D;
}

.adb-atc-res.is-bad {
	background: #FEF0EF;
	color: #7F1D1D;
}

.adb-atc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.adb-atc-tips {
	margin: 16px 0 0;
	padding-left: 18px;
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	line-height: 1.6;
}

/* Weather */
.adb-meteo-pick {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 16px;
}

.adb-meteo-pick .adb-in {
	flex: 1 1 280px;
}

.adb-meteo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.adb-meteo-grid h3 small {
	color: var(--errd-gray-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.adb-cat {
	display: inline-block;
	margin: 6px 0 10px;
	padding: 4px 12px;
	border-radius: var(--errd-radius-full);
	color: #FFFFFF;
	font-size: 0.85rem;
	font-weight: 900;
	letter-spacing: 1px;
}

.adb-cat--vfr { background: #15803D; }
.adb-cat--mvfr { background: #1D4ED8; }
.adb-cat--ifr { background: #DC2626; }
.adb-cat--lifr { background: #A21CAF; }

.adb-atis {
	padding: 16px;
	border-radius: 16px;
	background: #FBF3EA;
	border: 1.5px solid #E7B37A;
}

.adb-atis-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.adb-atis-head strong,
.adb-atis-head span {
	display: block;
}

.adb-atis-head strong {
	color: #6E3F12;
}

.adb-atis-head span {
	color: #7A5530;
	font-size: 0.8rem;
}

.adb-atis-head .adb-atis-letter {
	display: grid;
	flex: 0 0 46px;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--errd-navy-deep);
	color: #E7B37A;
	font-size: 1.5rem;
	font-weight: 900;
}

.adb-atis p {
	margin: 0 0 12px;
	color: #3F2A14;
	line-height: 1.65;
}

.adb-notam {
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
}

.adb-notam pre {
	margin: 10px 0;
	padding: 12px;
	border-radius: 10px;
	background: #0B1430;
	color: #FDE68A;
	font-size: 0.86rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.adb-notam details {
	border-bottom: 1px solid var(--errd-gray-border);
}

.adb-notam summary {
	padding: 8px 0;
	color: var(--errd-navy-deep);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
}

.adb-notam details p {
	margin: 0 0 10px;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
}

.adb-abbr {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 8px;
	margin: 10px 0 0;
}

.adb-abbr div {
	padding: 8px 12px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-abbr dt {
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-abbr dd {
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.82rem;
}

/* Academia virtual */
.adb-ac-welcome {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.adb-ac-pitch h3 {
	margin: 0 0 8px;
	color: var(--errd-navy-deep);
	font-size: 1.45rem;
	font-weight: 900;
}

.adb-ac-pitch > p {
	color: var(--errd-gray-dark);
	line-height: 1.6;
}

.adb-ac-tech {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.adb-ac-tech li {
	display: flex;
	gap: 12px;
	padding: 12px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-ac-tech li > span {
	display: grid;
	flex: 0 0 42px;
	place-items: center;
	height: 42px;
	border-radius: 12px;
	background: #EAF0FA;
	color: var(--errd-blue-inst);
}

.adb-ac-tech strong,
.adb-ac-tech em {
	display: block;
}

.adb-ac-tech strong {
	color: var(--errd-navy-deep);
}

.adb-ac-tech em {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	font-style: normal;
}

.adb-ac-auth {
	padding: 20px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	box-shadow: var(--errd-shadow-md);
}

.adb-ac-form {
	display: grid;
	gap: 12px;
}

.adb-ac-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--errd-gray-dark);
	font-size: 0.84rem;
	font-weight: 700;
}

.adb-ac-form input,
.adb-ac-form select,
.adb-ac-profile input,
.adb-ac-profile select {
	min-height: 46px;
	padding: 8px 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 12px;
	background-color: #FFFFFF;
	color: inherit;
	font: inherit;
	font-size: 0.98rem;
}

.adb-ac-form input:focus,
.adb-ac-form select:focus,
.adb-ac-profile input:focus,
.adb-ac-profile select:focus {
	border-color: var(--errd-blue-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 107, 235, 0.15);
}

.adb-ac-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.adb-ac-forgot {
	color: var(--errd-blue-inst);
	font-size: 0.85rem;
	text-align: center;
}

.adb-ac-sub {
	margin: 28px 0 12px;
	color: var(--errd-navy-deep);
	font-size: 1.2rem;
	font-weight: 900;
}

.adb-ac-mats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.adb-ac-mat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--errd-gray-border);
	border-top: 4px solid var(--mc);
	border-radius: 16px;
	background: #FFFFFF;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.adb-ac-mat:hover:not(.is-locked) {
	transform: translateY(-3px);
	box-shadow: var(--errd-shadow-md);
}

.adb-ac-mat.is-locked {
	cursor: default;
}

.adb-ac-mat-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--mc) 14%, #FFFFFF);
	color: var(--mc);
}

.adb-ac-mat-n {
	color: var(--errd-gray-muted);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.adb-ac-mat h4 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 900;
}

.adb-ac-mat p {
	flex: 1;
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	line-height: 1.5;
}

.adb-ac-mat em {
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	font-style: normal;
}

.adb-ac-mat .adb-bar {
	width: 100%;
}

.adb-ac-mat .adb-bar > span {
	background: var(--mc);
}

.adb-ac-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.adb-ac-bar strong,
.adb-ac-bar span {
	display: block;
}

.adb-ac-bar strong {
	color: var(--errd-navy-deep);
	font-size: 1.3rem;
	font-weight: 900;
}

.adb-ac-bar span {
	color: var(--errd-gray-muted);
}

.adb-ac-dash {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 12px;
}

.adb-ac-card {
	padding: 18px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 18px;
	background: #FFFFFF;
}

.adb-ac-card h3,
.adb-ac-card h4 {
	margin: 0 0 4px;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-ac-card p {
	margin: 0 0 12px;
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
}

/* Mensajes de instructores y Director */
.adb-ac-msgs {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
	background: #F7EBDD;
	border-color: #E7B37A;
}

.adb-ac-msgs > div {
	flex: 1;
	min-width: 0;
}

.adb-ac-msgs h3 {
	margin: 0 0 2px;
}

.adb-ac-msgs p {
	margin: 0;
}

.adb-ac-msgs-ico {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--errd-navy-deep);
	color: #E7B37A;
}

.adb-ac-msgs.has-new {
	border-color: #8A5520;
}

.adb-ac-msgview {
	display: grid;
	gap: 12px;
}

.adb-ac-msghead {
	display: flex;
	align-items: center;
	gap: 12px;
}

.adb-ac-msghead h2 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.25rem;
	font-weight: 900;
}

.adb-ac-msglist {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-ac-msgrow {
	display: grid;
	gap: 4px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	text-align: left;
	cursor: pointer;
}

.adb-ac-msgrow:hover,
.adb-ac-msgrow:focus-visible {
	border-color: #E7B37A;
}

.adb-ac-msgrow.has-new {
	background: #F7EBDD;
	border-color: #8A5520;
}

.adb-ac-msgsub {
	font-weight: 800;
}

.adb-ac-msgmeta {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

.adb-ac-msgbadge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #8A5520;
	color: #FFFFFF;
	font-size: 0.72rem;
}

.adb-ac-thread {
	display: grid;
	gap: 10px;
}

.adb-ac-msg {
	justify-self: start;
	max-width: min(85%, 640px);
	padding: 10px 14px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 14px 14px 14px 4px;
	background: #FFFFFF;
}

.adb-ac-msg.is-mine {
	justify-self: end;
	border-color: #E7B37A;
	border-radius: 14px 14px 4px 14px;
	background: #F7EBDD;
}

.adb-ac-msgwho {
	display: block;
	margin-bottom: 4px;
	color: #8A5520;
	font-size: 0.78rem;
	font-weight: 800;
}

.adb-ac-msg p {
	margin: 0;
	overflow-wrap: anywhere;
}

.adb-ac-msgform {
	display: grid;
	gap: 8px;
}

.adb-ac-msgform label {
	display: grid;
	gap: 4px;
	color: var(--errd-navy-deep);
	font-weight: 800;
}

.adb-ac-msgform textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 12px;
	font: inherit;
}

.adb-ac-msgform .adb-btn {
	justify-self: start;
}

.adb-ac-msgnote {
	margin: 0;
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

@media (max-width: 640px) {
	.adb-ac-msgs {
		flex-wrap: wrap;
	}

	.adb-ac-msgs .adb-btn {
		width: 100%;
	}

	.adb-ac-msg {
		max-width: 100%;
	}
}

.adb-ac-overall {
	display: flex;
	align-items: center;
	gap: 16px;
}

.adb-ac-overall .adb-btn {
	text-align: left;
}

.adb-ac-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.adb-ac-stat strong {
	color: var(--errd-navy-deep);
	font-size: 1.8rem;
	font-weight: 900;
	line-height: 1.1;
}

.adb-ac-stat em {
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	font-style: normal;
}

.adb-ac-stat-ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	border-radius: 12px;
}

.adb-ac-stat-ico.is-xp {
	background: #FEF3C7;
	color: #B45309;
}

.adb-ac-stat-ico.is-fire {
	background: #FFE4E6;
	color: #E11D48;
}

.adb-ac-final {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 20px;
	padding: 20px;
	border-radius: 18px;
	background: var(--errd-navy-deep);
	color: #D6DEEC;
}

.adb-ac-final h3 {
	margin: 0 0 4px;
	color: #FFFFFF;
	font-weight: 900;
}

.adb-ac-final p {
	max-width: 620px;
	margin: 0;
}

.adb-ac-final .adb-btn--primary {
	border-color: #E7B37A;
	background: #E7B37A;
	color: #1A0F05;
}

.adb-ac-badges {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-ac-badges li {
	padding: 14px;
	border-radius: 14px;
	background: #F1F4F8;
	color: #94A3B8;
	text-align: center;
	opacity: 0.75;
}

.adb-ac-badges li.is-on {
	background: #FBF3EA;
	color: #8A5520;
	opacity: 1;
}

.adb-ac-badges strong,
.adb-ac-badges em {
	display: block;
}

.adb-ac-badges strong {
	margin-top: 4px;
	font-size: 0.88rem;
}

.adb-ac-badges em {
	font-size: 0.74rem;
	font-style: normal;
}

.adb-ac-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 0.85rem;
}

.adb-ac-crumbs button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--errd-blue-inst);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.adb-ac-crumbs span {
	color: var(--errd-gray-muted);
}

/* Botón «← Volver» de la Academia virtual */
.adb-ac-crumbs .adb-ac-volver {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin-right: 8px;
	padding: 6px 14px;
	border: 1px solid #E2D2BF;
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	box-shadow: 0 2px 8px rgba(7, 26, 66, 0.06);
}

.adb-ac-crumbs .adb-ac-volver:hover {
	border-color: #A8692E;
	background: #FBF6F0;
}

.adb-ac-crumbs .adb-ac-volver:focus-visible {
	outline: 2px solid #A8692E;
	outline-offset: 2px;
}

.adb-ac-crumbs b {
	color: var(--errd-navy-deep);
}

.adb-ac-mhead {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-radius: 18px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	border-left: 6px solid var(--mc);
}

.adb-ac-mhead > div {
	flex: 1;
}

.adb-ac-mhead h3 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.4rem;
	font-weight: 900;
}

.adb-ac-mhead p {
	margin: 4px 0 0;
	color: var(--errd-gray-dark);
}

.adb-ac-lessons {
	display: grid;
	gap: 8px;
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.adb-ac-lessons button {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 14px;
	background: #FFFFFF;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-ac-lessons button:hover {
	border-color: var(--errd-blue-accent);
}

.adb-ac-lessons strong,
.adb-ac-lessons em {
	display: block;
}

.adb-ac-lessons strong {
	color: var(--errd-navy-deep);
}

.adb-ac-lessons em {
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	font-style: normal;
}

.adb-ac-ln {
	display: grid;
	flex: 0 0 36px;
	place-items: center;
	height: 36px;
	border-radius: 50%;
	background: #EEF2F7;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-ac-lessons .is-done .adb-ac-ln {
	background: #1F9D55;
	color: #FFFFFF;
}

.adb-ac-mactions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.adb-ac-lesson {
	max-width: 780px;
	margin: 0 auto;
	padding: 28px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	border-top: 5px solid var(--mc);
}

.adb-ac-lesson header h3 {
	margin: 6px 0 4px;
	color: var(--errd-navy-deep);
	font-size: 1.6rem;
	font-weight: 900;
}

.adb-ac-lesson header em {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	font-style: normal;
}

.adb-ac-lesson-body {
	margin-top: 16px;
	color: var(--errd-body-ink, #1E2B45);
	font-size: 1.03rem;
	line-height: 1.75;
}

.adb-ac-lesson-body h4 {
	margin: 22px 0 6px;
	color: var(--errd-navy-deep);
	font-size: 1.12rem;
	font-weight: 900;
}

.adb-ac-lesson-body ul {
	padding-left: 20px;
}

.adb-ac-lesson-body li {
	margin-bottom: 6px;
}

.adb-ac-key,
.adb-ac-tip {
	margin: 16px 0;
	padding: 14px 16px;
	border-radius: 14px;
	border-left: 5px solid var(--errd-blue-inst);
	background: #EEF4FD;
}

.adb-ac-tip {
	border-left-color: #A8692E;
	background: #FBF3EA;
}

.adb-ac-key strong,
.adb-ac-tip strong {
	display: block;
	color: var(--errd-navy-deep);
	font-size: 0.78rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-ac-key p,
.adb-ac-tip p {
	margin: 4px 0 0;
	font-weight: 600;
}

.adb-ac-check {
	margin: 20px 0;
	padding: 18px;
	border: 2px dashed #C7D2E5;
	border-radius: 16px;
	background: #F8FAFD;
}

.adb-ac-check-tag {
	color: #8A5520;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-ac-check-q {
	margin: 6px 0 12px;
	color: var(--errd-navy-deep);
	font-weight: 800;
}

.adb-ac-check .adb-opt {
	min-height: 48px;
	font-size: 0.95rem;
}

.adb-ac-check-fb {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 0.92rem;
}

.adb-ac-check-fb.is-ok {
	background: #ECFAF1;
	color: #14532D;
}

.adb-ac-check-fb.is-bad {
	background: #FEF0EF;
	color: #7F1D1D;
}

.adb-ac-check-fb p {
	margin: 4px 0 0;
}

.adb-ac-check-was {
	display: block;
	margin-top: 8px;
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
}

.adb-link--inline {
	display: inline;
	margin: 6px 0 0;
	padding: 0;
}

.adb-ac-feynman {
	margin-top: 24px;
	padding: 16px;
	border-radius: 16px;
	background: #F2F5FA;
}

.adb-ac-feynman label {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.adb-ac-feynman strong {
	color: var(--errd-navy-deep);
}

.adb-ac-feynman span {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

.adb-ac-feynman textarea {
	padding: 10px 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 12px;
	font: inherit;
	resize: vertical;
}

.adb-ac-lesson-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.adb-ac-lesson-foot p {
	margin: 0;
	color: var(--errd-gray-muted);
	font-size: 0.88rem;
	font-weight: 700;
}

.adb-ac-lesson-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--errd-gray-border);
}

.adb-ac-lesson-nav button {
	border: 0;
	background: none;
	color: var(--errd-blue-inst);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.adb-ac-flash {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
}

.adb-ac-flash-count {
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.adb-ac-flip {
	position: relative;
	display: block;
	width: 100%;
	height: 280px;
	margin: 12px 0 16px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	perspective: 1200px;
}

.adb-ac-face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px;
	border-radius: 22px;
	backface-visibility: hidden;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: var(--errd-shadow-lg);
}

.adb-ac-front {
	background: linear-gradient(150deg, var(--errd-navy-deep), #12306B);
	color: #FFFFFF;
	border-bottom: 6px solid var(--mc);
}

.adb-ac-back {
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	border: 2px solid #E7B37A;
	transform: rotateY(180deg);
}

.adb-ac-flip.is-flipped .adb-ac-front {
	transform: rotateY(-180deg);
}

.adb-ac-flip.is-flipped .adb-ac-back {
	transform: rotateY(0);
}

.adb-ac-face em {
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.75;
}

.adb-ac-face strong {
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.35;
}

.adb-ac-face small {
	opacity: 0.75;
}

.adb-ac-flash-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.adb-ac-done {
	max-width: 620px;
	margin: 0 auto;
	padding: 30px 20px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	text-align: center;
}

.adb-ac-done h3 {
	margin: 10px 0 6px;
	color: var(--errd-navy-deep);
	font-size: 1.5rem;
	font-weight: 900;
}

.adb-ac-done .adb-score-actions {
	justify-content: center;
}

.adb-ac-wrong {
	margin: 16px 0;
	text-align: left;
}

.adb-ac-wrong ul {
	display: grid;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.adb-ac-wrong li {
	padding: 10px 12px;
	border-left: 4px solid #E5322D;
	border-radius: 10px;
	background: #FEF7F6;
	font-size: 0.88rem;
}

.adb-ac-wrong strong,
.adb-ac-wrong span {
	display: block;
}

.adb-ac-wrong span {
	color: #166534;
	font-weight: 700;
}

.adb-ac-quiz {
	max-width: 780px;
	margin: 0 auto;
}

.adb-ac-cert {
	max-width: 760px;
	margin: 0 auto 16px;
	padding: 40px 30px;
	border: 10px double #A8692E;
	border-radius: 8px;
	background: #FFFDF8;
	color: var(--errd-gray-dark);
	text-align: center;
}

.adb-ac-cert-tag {
	color: #8A5520;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 2px;
}

.adb-ac-cert h3 {
	margin: 10px 0;
	color: var(--errd-navy-deep);
	font-size: 2rem;
	font-weight: 900;
}

.adb-ac-cert-name {
	display: block;
	margin: 6px 0 14px;
	color: #6E3F12;
	font-size: 2.1rem;
	font-weight: 900;
}

.adb-ac-cert em,
.adb-ac-cert small {
	display: block;
	margin-top: 12px;
}

.adb-ac-cert small {
	color: var(--errd-gray-muted);
}

/* Matrícula (inc/adb-matricula.php) */
.adb-mat {
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.adb-ac-mat {
	display: block;
	margin-top: 4px;
	font-size: 0.85rem;
}

.adb-ac-cert-id {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 20px;
	text-align: left;
}

.adb-ac-cert-id p {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 0.95rem;
}

.adb-ac-cert-id p span {
	display: block;
	margin-top: 2px;
	color: var(--errd-gray-muted);
	font-size: 0.75rem;
}

.adb-ac-cert-qr {
	width: 84px;
	height: 84px;
	flex: none;
}

.adb-ac-cert-qr svg {
	width: 100%;
	height: 100%;
	display: block;
}

.adb-ac-cert-qr:empty {
	background: repeating-linear-gradient(45deg, #EFE6D6 0 4px, #FFFDF8 4px 8px);
	border-radius: 4px;
}

.adb-ac-cert-pending {
	font-style: italic;
}

/* Verificación pública de matrículas (adb-verificar.php) */
.adb-verif {
	padding: 56px 16px 72px;
	background: var(--errd-gray-light, #F2F5FA);
}

.adb-verif-card {
	max-width: 620px;
	margin: 0 auto;
	padding: 32px 28px;
	border-radius: 20px;
	background: #FFFFFF;
	box-shadow: 0 18px 44px rgba(7, 26, 66, 0.1);
}

.adb-verif-kicker {
	margin: 0;
	color: #A8692E;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adb-verif-card h1 {
	margin: 6px 0 18px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.9rem;
	font-weight: 800;
}

.adb-verif-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.adb-verif-form input {
	flex: 1 1 240px;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #CBD5E1;
	border-radius: 12px;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1rem;
	text-transform: uppercase;
}

.adb-verif-result {
	display: flex;
	gap: 14px;
	margin-top: 22px;
	padding: 18px;
	border-radius: 14px;
	border: 1px solid;
}

.adb-verif-result.is-ok {
	border-color: #86EFAC;
	background: #F0FDF4;
}

.adb-verif-result.is-bad {
	border-color: #FECACA;
	background: #FEF2F2;
}

.adb-verif-ico {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-content: center;
	border-radius: 50%;
	color: #FFFFFF;
	font-weight: 800;
	background: #16A34A;
}

.adb-verif-result.is-bad .adb-verif-ico {
	background: #E5092D;
}

.adb-verif-result strong {
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.05rem;
}

.adb-verif-result p {
	margin: 4px 0 0;
}

.adb-verif-result dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: 10px 0 0;
	font-size: 0.92rem;
}

.adb-verif-result dt {
	color: #64748B;
}

.adb-verif-result dd {
	margin: 0;
	font-weight: 600;
}

.adb-verif-help,
.adb-verif-note {
	margin: 18px 0 0;
	color: #64748B;
	font-size: 0.85rem;
}

.adb-xp-pop {
	position: fixed;
	left: 50%;
	bottom: 110px;
	z-index: 100000;
	padding: 8px 16px;
	border-radius: var(--errd-radius-full);
	background: #FBBF24;
	color: #111827;
	font-weight: 900;
	transform: translateX(-50%);
	animation: adb-xp 1.4s ease forwards;
	pointer-events: none;
}

@keyframes adb-xp {
	from { opacity: 0; transform: translate(-50%, 10px); }
	20% { opacity: 1; transform: translate(-50%, 0); }
	to { opacity: 0; transform: translate(-50%, -40px); }
}

.adb-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: 14px;
	background: var(--errd-navy-deep);
	color: #FFFFFF;
	font-weight: 700;
	box-shadow: var(--errd-shadow-lg);
	transform: translateX(-50%);
}

@media print {
	body.adb-printing * {
		visibility: hidden;
	}

	body.adb-printing #adb-cert,
	body.adb-printing #adb-cert * {
		visibility: visible;
	}

	body.adb-printing #adb-cert {
		position: absolute;
		inset: 0;
		margin: 0;
	}
}

@media (max-width: 1100px) {
	.adb-hub {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.adb-ac-dash {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adb-plan-out,
	.adb-radio,
	.adb-meteo-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 860px) {
	.adb-hero-wings {
		justify-self: center;
	}

	.adb-hub {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 20px;
	}

	.adb-ac-welcome,
	.adb-ac-mactions {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.adb-hub-btn {
		padding: 14px 12px;
	}

	.adb-hub-icon {
		width: 40px;
		height: 40px;
	}

	.adb-ac-dash {
		grid-template-columns: 1fr 1fr;
	}

	.adb-ac-overall,
	.adb-ac-review {
		grid-column: 1 / -1;
	}

	.adb-ac-overall {
		flex-direction: column;
		align-items: flex-start;
	}

	.adb-ac-lesson {
		padding: 18px 14px;
	}

	.adb-ac-lesson header h3 {
		font-size: 1.3rem;
	}

	.adb-ac-row {
		grid-template-columns: 1fr;
	}

	.adb-ac-mhead {
		flex-wrap: wrap;
	}

	.adb-wb-row {
		grid-template-columns: 1fr 1fr;
	}

	.adb-wb-row > span {
		grid-column: 1 / -1;
		padding-bottom: 0;
	}

	.adb-tool {
		padding: 16px 12px;
	}

	.adb-av-freq b,
	.adb-av-freq input {
		font-size: 1.15rem;
	}

	.adb-ac-flip {
		height: 240px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-hero-wings img,
	.adb-ac-face,
	.adb-xp-pop,
	.adb-blink {
		animation: none;
		transition: none;
	}
}

@media (max-width: 600px) {
	.adb-hub {
		gap: 8px;
	}

	.adb-hub-btn {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		padding: 10px;
		border-radius: 14px;
	}

	.adb-hub-btn strong {
		font-size: 0.82rem;
	}

	.adb-hub-btn > span:last-child {
		display: none;
	}

	.adb-hub-icon {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
		margin-bottom: 0;
		border-radius: 10px;
	}

	.adb-hub-icon svg {
		width: 20px;
		height: 20px;
	}
}

/* Alas de Bronce · nine hub buttons, Torre de control and Clave Morse */
@media (min-width: 1101px) {
	.adb-hub {
		grid-template-columns: repeat(9, minmax(0, 1fr));
		gap: 10px;
	}

	.adb-hub-btn {
		padding: 16px 12px;
	}
}

@media (min-width: 861px) and (max-width: 1100px) {
	.adb-hub {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.adb-tw-tip {
	color: var(--errd-gray-muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.adb-tw-intro {
	display: grid;
	gap: 16px;
}

.adb-tw-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.adb-tw-stats div {
	padding: 14px;
	border-radius: 14px;
	background: var(--errd-navy-deep);
	color: #C7D2E5;
	font-size: 0.8rem;
}

.adb-tw-stats strong {
	display: block;
	color: #E7B37A;
	font-size: 1.6rem;
	font-weight: 900;
}

.adb-tw-levels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.adb-tw-level {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-tw-level strong {
	color: var(--errd-navy-deep);
}

.adb-tw-level span {
	font-size: 0.85rem;
}

.adb-tw-level em {
	color: var(--errd-gray-muted);
	font-size: 0.76rem;
	font-style: normal;
}

.adb-tw-level.is-on {
	border-color: #A8692E;
	background: #FBF3EA;
}

.adb-tw-level:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.adb-tw-how {
	padding: 16px;
	border-radius: 16px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-how h4 {
	margin: 0 0 6px;
	color: var(--errd-navy-deep);
}

.adb-tw-how ol {
	margin: 0;
	padding-left: 20px;
	color: var(--errd-gray-dark);
	line-height: 1.7;
}

.adb-tw-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 12px;
}

.adb-tw-tower {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
	font-weight: 900;
}

.adb-tw-you {
	margin-left: auto;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
}

.adb-tw-you b {
	padding: 3px 8px;
	border-radius: 8px;
	background: #FBF3EA;
	color: #6E3F12;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.adb-tw-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	counter-reset: tw;
}

.adb-tw-steps li {
	padding: 8px;
	border-radius: 10px;
	background: #EEF2F7;
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-align: center;
	counter-increment: tw;
}

.adb-tw-steps li::before {
	content: counter(tw) '. ';
}

.adb-tw-steps li.is-on {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-tw-steps li.is-done {
	background: #DCFCE7;
	color: #166534;
}

.adb-tw-radio {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: 18px;
	background: linear-gradient(180deg, #1F2937, #0B1220);
	color: #9CA3AF;
}

.adb-tw-play {
	display: grid;
	flex: 0 0 60px;
	place-items: center;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: #22C55E;
	color: #052E16;
	cursor: pointer;
	box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
	transition: transform 0.2s ease;
}

.adb-tw-play:hover {
	transform: scale(1.06);
}

.adb-tw-wave {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 3px;
	height: 40px;
}

.adb-tw-wave i {
	flex: 1;
	height: 4px;
	border-radius: 3px;
	background: #374151;
}

.is-talking .adb-tw-wave i {
	background: #4ADE80;
	animation: adb-wave 0.9s ease-in-out infinite;
}

.is-talking .adb-tw-wave i:nth-child(3n) { animation-delay: -0.3s; }
.is-talking .adb-tw-wave i:nth-child(3n + 1) { animation-delay: -0.6s; }
.is-talking .adb-tw-wave i:nth-child(4n) { animation-duration: 0.7s; }

@keyframes adb-wave {
	50% { height: 34px; }
}

.adb-tw-plays {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-tw-body {
	display: grid;
	gap: 14px;
	margin-top: 16px;
	justify-items: start;
}

.adb-tw-body > * {
	width: 100%;
}

.adb-tw-body > .adb-btn {
	width: auto;
}

.adb-tw-text {
	margin: 0;
	padding: 14px;
	border-radius: 12px;
	background: #0B1430;
	color: #A7F3D0;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	line-height: 1.6;
}

.adb-tw-q p {
	margin: 0 0 8px;
	color: var(--errd-navy-deep);
	font-weight: 800;
}

.adb-tw-rb {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.adb-tw-rb strong {
	color: var(--errd-navy-deep);
}

.adb-tw-rb span {
	color: var(--errd-gray-muted);
	font-size: 0.86rem;
}

.adb-tw-rb textarea {
	padding: 12px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 12px;
	font: inherit;
	font-size: 1rem;
}

.adb-tw-result {
	padding: 14px 16px;
	border-radius: 14px;
}

.adb-tw-result.is-ok {
	background: #ECFAF1;
	color: #14532D;
}

.adb-tw-result.is-bad {
	background: #FEF7EC;
	color: #7C2D12;
}

.adb-tw-result ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.adb-tw-result li {
	padding: 4px 10px;
	border-radius: var(--errd-radius-full);
	font-size: 0.82rem;
	font-weight: 800;
}

.adb-tw-result li.is-ok {
	background: #BBF7D0;
	color: #14532D;
}

.adb-tw-result li.is-ok::before {
	content: '✓ ';
}

.adb-tw-result li.is-bad {
	background: #FECACA;
	color: #7F1D1D;
}

.adb-tw-result li.is-bad::before {
	content: '✗ ';
}

.adb-tw-compare {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.adb-tw-compare div {
	padding: 14px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-compare span {
	color: #8A5520;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-tw-compare p {
	margin: 6px 0 0;
	color: var(--errd-navy-deep);
	font-weight: 700;
}

.adb-tw-points {
	margin: 0;
	color: #B45309;
	font-weight: 900;
}

.adb-tw-phon-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 22px;
	border-radius: 18px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	text-align: center;
}

.adb-tw-phon-card > span {
	flex-basis: 100%;
	color: var(--errd-gray-muted);
	font-weight: 700;
}

.adb-tw-phon-card > strong {
	flex-basis: 100%;
	color: var(--errd-navy-deep);
	font-size: 3.4rem;
	font-weight: 900;
	line-height: 1;
}

.adb-tw-phon-card input,
.adb-mo-stage input {
	width: 180px;
	min-height: 48px;
	padding: 8px 12px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 12px;
	font: inherit;
	font-size: 1.2rem;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.adb-tw-phon-card p {
	flex-basis: 100%;
	min-height: 1.4em;
	margin: 0;
}

.adb-tw-phon-card em {
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	font-style: normal;
}

.adb-tw-alpha {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 6px;
	margin-top: 14px;
}

.adb-tw-alpha button {
	padding: 8px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 10px;
	background: #FFFFFF;
	font: inherit;
	cursor: pointer;
}

.adb-tw-alpha b,
.adb-tw-alpha span {
	display: block;
}

.adb-tw-alpha b {
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
}

.adb-tw-alpha span {
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
}

.adb-tw-ref dl {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 8px;
}

.adb-tw-ref dl div {
	padding: 12px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-ref dt button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--errd-navy-deep);
	font: inherit;
	font-weight: 900;
	cursor: pointer;
}

.adb-tw-ref dd {
	margin: 4px 0 0;
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
}

.adb-tw-ref h4,
.adb-mo-chartref h4 {
	margin: 18px 0 4px;
	color: var(--errd-navy-deep);
}

.adb-tw-live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.adb-tw-live-grid a {
	padding: 14px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	color: inherit;
	text-decoration: none;
}

.adb-tw-live-grid a:hover {
	border-color: #A8692E;
}

.adb-tw-live-grid b,
.adb-tw-live-grid span,
.adb-tw-live-grid em {
	display: block;
}

.adb-tw-live-grid b {
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
}

.adb-tw-live-grid span {
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
}

.adb-tw-live-grid em {
	margin-top: 6px;
	color: var(--errd-blue-inst);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
}

/* Morse */
.adb-mo i {
	display: inline-block;
	margin: 0 2px;
	border-radius: 3px;
	background: currentColor;
	vertical-align: middle;
}

.adb-mo i.is-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.adb-mo i.is-dash {
	width: 20px;
	height: 6px;
}

.adb-mo-settings {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.adb-mo-settings label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	color: var(--errd-gray-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-mo-settings input {
	accent-color: #A8692E;
}

.adb-mo-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(180deg, #1F2937, #0B1220);
	color: #D1D5DB;
	text-align: center;
}

.adb-mo-stage p {
	margin: 0;
}

.adb-mo-big {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border: 0;
	border-radius: 50%;
	background: #E7B37A;
	color: #1A0F05;
	cursor: pointer;
	box-shadow: 0 0 0 8px rgba(231, 179, 122, 0.2);
}

.adb-mo-fb {
	min-height: 1.6em;
	font-weight: 800;
}

.adb-mo-fb.is-ok {
	color: #4ADE80;
}

.adb-mo-fb.is-bad {
	color: #FCA5A5;
}

.adb-mo-keys {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.adb-mo-keys button {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid #4B5563;
	border-radius: 10px;
	background: #2D333D;
	color: #F3F4F6;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
}

.adb-mo-progress {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 14px 0;
}

.adb-mo-progress strong,
.adb-mo-progress span {
	display: block;
}

.adb-mo-progress strong {
	color: var(--errd-navy-deep);
	font-size: 1.4rem;
	font-weight: 900;
}

.adb-mo-progress span {
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
}

.adb-mo-progress p {
	flex: 1 1 260px;
	margin: 0;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
}

.adb-mo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
	gap: 5px;
}

.adb-mo-grid span {
	display: grid;
	place-items: center;
	height: 38px;
	border-radius: 9px;
	font-weight: 900;
}

.adb-mo-grid .is-locked { background: #EEF2F7; color: #CBD5E1; }
.adb-mo-grid .is-new { background: #FEE2E2; color: #991B1B; }
.adb-mo-grid .is-mid { background: #FEF3C7; color: #92400E; }
.adb-mo-grid .is-master { background: #DCFCE7; color: #166534; }

.adb-mo-ident,
.adb-mo-keyer {
	display: grid;
	gap: 14px;
	justify-items: start;
}

.adb-mo-chart {
	width: 100%;
	padding: 16px;
	border-radius: 16px;
	background: #F5F0E1;
	border: 1px solid #E2D3A8;
}

.adb-mo-chart > span {
	color: #7A5530;
	font-size: 0.8rem;
	font-weight: 800;
}

.adb-mo-chart-box {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.adb-mo-idbtn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px;
	border: 2px solid #1E3A8A;
	border-radius: 10px;
	background: #FFFFFF;
	color: #1E3A8A;
	font: inherit;
	cursor: pointer;
}

.adb-mo-idbtn b {
	font-size: 1.3rem;
	letter-spacing: 2px;
}

.adb-mo-sym span {
	display: block;
}

.adb-mo-idbtn.is-correct {
	border-color: #15803D;
	background: #DCFCE7;
}

.adb-mo-idbtn.is-wrong {
	border-color: #B91C1C;
	background: #FEE2E2;
}

.adb-mo-target {
	padding: 14px 18px;
	border-radius: 16px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-mo-target > span {
	display: block;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-mo-target strong {
	display: flex;
	gap: 18px;
}

.adb-mo-target em {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--errd-navy-deep);
	font-size: 2rem;
	font-style: normal;
	font-weight: 900;
}

.adb-mo-target small {
	font-size: 0.6rem;
}

.adb-mo-paddle {
	width: min(100%, 360px);
	height: 120px;
	border: 0;
	border-radius: 22px;
	background: linear-gradient(180deg, #374151, #111827);
	color: #E7B37A;
	font: inherit;
	font-weight: 900;
	letter-spacing: 3px;
	cursor: pointer;
	user-select: none;
	touch-action: none;
	box-shadow: 0 8px 0 #030712;
	transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.adb-mo-paddle.is-down {
	transform: translateY(6px);
	box-shadow: 0 2px 0 #030712;
	background: linear-gradient(180deg, #A8692E, #6E3F12);
	color: #FFFFFF;
}

.adb-mo-decoded {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	color: var(--errd-gray-dark);
}

.adb-mo-decoded b {
	color: var(--errd-navy-deep);
	font-size: 1.8rem;
	letter-spacing: 4px;
}

.adb-mo-decoded i {
	color: #A8692E;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.3rem;
	font-style: normal;
	background: none;
}

.adb-mo-decoded p {
	flex-basis: 100%;
	margin: 0;
}

.adb-mo-table {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: 6px;
}

.adb-mo-table button {
	padding: 10px 6px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	cursor: pointer;
}

.adb-mo-table button:hover {
	border-color: #A8692E;
	background: #FBF3EA;
}

.adb-mo-table b,
.adb-mo-table span {
	display: block;
}

.adb-mo-table b {
	font-size: 1.2rem;
}

.adb-mo-chartref ul {
	padding-left: 20px;
	color: var(--errd-gray-dark);
	line-height: 1.8;
}

@media (max-width: 760px) {
	.adb-tw-levels,
	.adb-tw-compare,
	.adb-mo-settings {
		grid-template-columns: 1fr;
	}

	.adb-tw-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.adb-tw-you {
		margin-left: 0;
	}

	.adb-mo-chart-box {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.is-talking .adb-tw-wave i {
		animation: none;
		height: 18px;
	}
}


/* Alas de Bronce · ten hub buttons and CTAF simulator */
@media (min-width: 861px) {
	.adb-hub {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.adb-hub-btn {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		column-gap: 12px;
	}

	.adb-hub-btn .adb-hub-icon {
		margin-bottom: 0;
	}

	.adb-hub-btn strong {
		flex: 1;
	}

	.adb-hub-btn > span:last-child {
		flex-basis: 100%;
		margin-top: 4px;
	}
}

.adb-ct-sim {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.adb-ct-mapwrap {
	position: sticky;
	top: 90px;
}

.adb-ct-map {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: var(--errd-shadow-md);
}

.adb-ct-map .adb-ct-rwy {
	fill: #FFFFFF;
	font-size: 11px;
	font-weight: 900;
}

.adb-ct-map .adb-ct-small {
	fill: #0B1F45;
	font-size: 10px;
	font-weight: 800;
}

.adb-ct-map .adb-ct-tag {
	fill: #0B1F45;
	font-size: 10px;
	font-weight: 900;
	paint-order: stroke;
	stroke: #FFFFFF;
	stroke-width: 3px;
}

.adb-ct-zone {
	fill: rgba(255, 255, 255, 0.18);
	stroke: rgba(255, 255, 255, 0.85);
	stroke-width: 1.5;
	stroke-dasharray: 4 3;
	cursor: pointer;
	transition: fill 0.2s ease;
}

.adb-ct-zone:hover {
	fill: rgba(251, 191, 36, 0.5);
}

.adb-ct-zone.is-right {
	fill: rgba(34, 197, 94, 0.65);
}

.adb-ct-zone.is-wrong {
	fill: rgba(239, 68, 68, 0.6);
}

.adb-ct-zone.is-off {
	fill: transparent;
	stroke-opacity: 0.35;
}

.is-answered .adb-ct-zone {
	cursor: default;
}

.adb-ct-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 8px;
	color: var(--errd-gray-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-ct-legend i {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border: 1.5px solid #071A42;
	border-radius: 3px;
	vertical-align: -1px;
}

.adb-ct-panel {
	display: grid;
	gap: 12px;
	padding: 18px;
	border-radius: 18px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-ct-panel h4 {
	margin: 0;
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
	font-weight: 900;
}

.adb-ct-panel > p {
	margin: 0;
	color: var(--errd-gray-dark);
}

.adb-ct-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-ct-steps li {
	padding: 4px 9px;
	border-radius: var(--errd-radius-full);
	background: #EEF2F7;
	color: var(--errd-gray-muted);
	font-size: 0.7rem;
	font-weight: 800;
}

.adb-ct-steps li.is-on {
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-ct-steps li.is-done {
	background: #DCFCE7;
	color: #166534;
}

.adb-ct-build {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-height: 64px;
	padding: 10px;
	border: 2px dashed #C7D2E5;
	border-radius: 14px;
	background: #F8FAFD;
}

.adb-ct-build > span {
	color: var(--errd-gray-muted);
	font-size: 0.88rem;
}

.adb-ct-pool {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.adb-ct-chip {
	padding: 9px 14px;
	border: 1.5px solid var(--errd-navy-deep);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	color: var(--errd-navy-deep);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.adb-ct-chip:hover:not(:disabled) {
	transform: translateY(-2px);
	background: #EEF2FA;
}

.adb-ct-chip.is-placed {
	border-color: #A8692E;
	background: #FBF3EA;
	color: #6E3F12;
}

.adb-ct-chip.is-used {
	opacity: 0.3;
	cursor: default;
}

.adb-ct-fb {
	min-height: 1.3em;
	margin: 0;
	font-weight: 800;
}

.adb-ct-fb.is-ok {
	color: #15803D;
}

.adb-ct-fb.is-bad {
	color: #B42318;
}

.adb-ct-hint {
	margin: 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: #FBF3EA;
	color: #6E3F12;
	font-size: 0.88rem;
}

.adb-ct-radio {
	padding: 12px 14px;
	border-radius: 14px;
	background: #0B1430;
	color: #A7F3D0;
}

.adb-ct-radio > span {
	color: #22C55E;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-ct-radio p {
	margin: 6px 0 10px;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	line-height: 1.5;
}

.adb-ct-done ul {
	padding-left: 18px;
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
}

.adb-ct-listen-intro {
	padding: 22px;
	border-radius: 18px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-ct-rules {
	max-width: 780px;
	color: var(--errd-gray-dark);
	line-height: 1.7;
}

.adb-ct-rules h4 {
	margin: 18px 0 4px;
	color: var(--errd-navy-deep);
}

@media (max-width: 900px) {
	.adb-ct-sim {
		grid-template-columns: 1fr;
	}

	.adb-ct-mapwrap {
		position: static;
	}
}

.adb-ct-radio .adb-btn {
	border-color: rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #FFFFFF;
}

.adb-ct-radio .adb-btn:hover,
.adb-ct-radio .adb-btn:focus-visible {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: var(--errd-navy-deep);
}

/* FAA testing supplement figures (FAA-CT-8080-2H) in exam questions */
.adb-fig--faa {
	max-width: 100%;
}

.adb-faa {
	display: block;
	margin: 0 0 10px;
	border: 1px solid var(--errd-gray-border);
	border-radius: 12px;
	background: #FFFFFF;
	overflow: hidden;
	text-decoration: none;
}

.adb-faa img {
	display: block;
	width: 100%;
	max-height: 70vh;
	object-fit: contain;
	background: #FFFFFF;
}

.adb-faa span {
	display: block;
	padding: 6px 10px;
	border-top: 1px solid var(--errd-gray-border);
	color: var(--errd-blue-inst);
	font-size: 0.78rem;
	font-weight: 700;
}

.adb-faa:hover span,
.adb-faa:focus-visible span {
	text-decoration: underline;
}

.adb-fig--sm.adb-fig--faa {
	max-width: 520px;
}
.adb-faa {
	max-height: 78vh;
	overflow: auto;
	overscroll-behavior: contain;
}

.adb-faa img {
	max-height: none;
}

.adb-faa span {
	position: sticky;
	bottom: 0;
	background: #FFFFFF;
}
.adb-faa:not(.adb-faa--chart) {
	max-height: none;
	overflow: visible;
}

.adb-faa:not(.adb-faa--chart) img {
	width: auto;
	max-width: 100%;
	max-height: 56vh;
	margin: 0 auto;
}

/* Alas de Bronce · real ATC listening log (LiveATC opens on its own site) */
.adb-tw-live-note {
	padding: 14px 16px;
	border-radius: 14px;
	background: #EEF4FD;
	border-left: 5px solid var(--errd-blue-inst);
	color: var(--errd-gray-dark);
	font-size: 0.9rem;
}

.adb-tw-live-note strong {
	color: var(--errd-navy-deep);
}

.adb-tw-live-note p {
	margin: 4px 0 0;
	line-height: 1.6;
}

.adb-tw-live .adb-tw-live-grid {
	margin-top: 14px;
}

.adb-tw-live-grid article {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-live-grid article b {
	color: var(--errd-navy-deep);
	font-size: 1.15rem;
}

.adb-tw-live-grid article span {
	color: var(--errd-gray-dark);
	font-size: 0.86rem;
	font-weight: 700;
}

.adb-tw-live-grid article p {
	flex: 1;
	margin: 0 0 8px;
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
}

.adb-tw-live-grid article div {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.adb-tw-credit {
	margin: 8px 0 0;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
}

.adb-tw-log {
	margin-top: 18px;
	padding: 18px;
	border-radius: 18px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-log h4,
.adb-tw-logs h4 {
	margin: 10px 0 4px;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-tw-log label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	color: var(--errd-gray-dark);
	font-size: 0.82rem;
	font-weight: 700;
}

.adb-tw-log input,
.adb-tw-log select {
	min-height: 42px;
	padding: 6px 10px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: 10px;
	background: #FFFFFF;
	font: inherit;
	font-size: 0.92rem;
}

.adb-tw-log-head {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.adb-tw-log-rows {
	display: grid;
	gap: 6px;
}

.adb-tw-log-row {
	display: grid;
	grid-template-columns: 28px 1fr 1.2fr 1.4fr;
	align-items: center;
	gap: 6px;
}

.adb-tw-log-row > span {
	color: var(--errd-gray-muted);
	font-weight: 900;
	text-align: center;
}

.adb-tw-skills {
	display: grid;
	gap: 8px;
}

.adb-tw-skills > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	padding: 8px 10px;
	border-radius: 10px;
	background: #F8FAFD;
}

.adb-tw-skills > div > span {
	color: var(--errd-gray-dark);
	font-size: 0.88rem;
	font-weight: 700;
}

.adb-tw-skills [role="radiogroup"] {
	display: flex;
	gap: 6px;
}

.adb-tw-skills label {
	flex-direction: row;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border: 1.5px solid var(--errd-gray-border);
	border-radius: var(--errd-radius-full);
	background: #FFFFFF;
	cursor: pointer;
}

.adb-tw-skills label:has(input:checked) {
	border-color: var(--errd-navy-deep);
	background: #EEF2FA;
}

.adb-tw-ask {
	margin: 14px 0;
}

.adb-tw-ask > span {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.adb-tw-ask input {
	flex: 1 1 240px;
}

.adb-tw-ask .adb-why {
	margin-top: 0;
}

.adb-tw-logs {
	margin-top: 16px;
}

.adb-tw-logs ul {
	display: grid;
	gap: 6px;
	padding: 0;
	list-style: none;
}

.adb-tw-logs li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-tw-logs li strong {
	color: var(--errd-navy-deep);
}

.adb-tw-logs li span {
	flex: 1;
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
}

/* Morse: levels, visual reading, copy feedback and 60 s challenge */
.adb-mo-levels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.adb-mo-level {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-mo-level strong {
	color: var(--errd-navy-deep);
	font-size: 1.05rem;
}

.adb-mo-level span {
	font-size: 0.82rem;
	line-height: 1.45;
}

.adb-mo-level em {
	color: var(--errd-gray-muted);
	font-size: 0.75rem;
	font-style: normal;
}

.adb-mo-level.is-on {
	border-color: #A8692E;
	background: #FBF3EA;
}

.adb-mo-textin {
	width: min(100%, 520px);
	min-height: 50px;
	padding: 10px 14px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--errd-dark-text);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 2px;
	text-align: center;
	text-transform: uppercase;
}

.adb-mo-textin:disabled {
	opacity: 0.5;
}

.adb-mo-fb.is-mid {
	color: #FBBF24;
}

.adb-mo-readbox .adb-mo-fb.is-ok { color: #15803D; }
.adb-mo-readbox .adb-mo-fb.is-bad { color: #B42318; }
.adb-mo-readbox .adb-mo-fb.is-mid { color: #B45309; }

.adb-mo-diff {
	margin: 8px 0;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.25rem;
	letter-spacing: 3px;
}

.adb-mo-diff b.is-ok {
	color: #4ADE80;
}

.adb-mo-diff b.is-bad {
	color: #FF6B5E;
	text-decoration: underline;
}

.adb-mo-readbox .adb-mo-diff b.is-ok {
	color: #15803D;
}

.adb-mo-readbox .adb-mo-diff b.is-bad {
	color: #B42318;
}

.adb-mo-readbox {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 22px;
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
	text-align: center;
}

.adb-mo-readbox > span {
	color: #8A5520;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-mo-code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 4px;
	color: var(--errd-navy-deep);
}

.adb-mo-code--sm {
	opacity: 0.85;
	transform: scale(0.85);
}

.adb-mo-stage .adb-mo-code {
	color: #E5E7EB;
}

.adb-mo-word {
	display: inline-flex;
	gap: 10px;
}

.adb-mo-char {
	display: inline-flex;
	align-items: center;
	padding: 6px 4px;
	border-bottom: 2px solid currentColor;
}

.adb-mo-slash {
	padding: 0 10px;
	color: #A8692E;
	font-size: 1.6rem;
	font-weight: 900;
}

.adb-mo-gap {
	color: var(--errd-gray-muted);
}

.adb-mo-race {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(180deg, #1F2937, #0B1220);
	color: #E5E7EB;
	text-align: center;
}

.adb-mo-race h4 {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.3rem;
}

.adb-mo-race p {
	margin: 0;
}

.adb-mo-race-top {
	display: flex;
	gap: 24px;
	align-items: center;
	font-weight: 800;
}

.adb-mo-clock {
	padding: 6px 14px;
	border-radius: var(--errd-radius-full);
	background: #FBBF24;
	color: #111827;
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
}

.adb-mo-race-score {
	color: #E7B37A;
	font-size: 3.4rem;
	font-weight: 900;
	line-height: 1;
}

.adb-mo-race .adb-btn {
	border-color: rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #FFFFFF;
}

.adb-mo-race .adb-btn--primary {
	border-color: #E7B37A;
	background: #E7B37A;
	color: #1A0F05;
}

@media (max-width: 760px) {
	.adb-mo-levels,
	.adb-tw-log-head {
		grid-template-columns: 1fr;
	}

	.adb-tw-log-row {
		grid-template-columns: 24px 1fr;
	}

	.adb-tw-log-row select,
	.adb-tw-log-row input:last-child {
		grid-column: 2;
	}
}

.adb-mo-readbox .adb-mo-code i.is-dot {
	width: 11px;
	height: 11px;
}

.adb-mo-readbox .adb-mo-code i.is-dash {
	width: 30px;
	height: 10px;
}

.adb-mo-readbox .adb-mo-code {
	gap: 12px 6px;
}
.adb-tw-live-grid article .adb-btn {
	padding: 6px 12px;
	border-radius: var(--errd-radius-full);
	font-size: 0.8rem;
}

.adb-tw-live-grid article .adb-btn--primary {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #FFFFFF;
}

.adb-tw-live-grid article .adb-btn--ghost {
	border-color: var(--errd-gray-border);
	background: transparent;
	color: var(--errd-navy-deep);
}

/* Alas de Bronce · dual listening (LiveATC / IVAO) */
.adb-iv-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.adb-iv-switch button {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 2px solid var(--errd-gray-border);
	border-radius: 16px;
	background: #FFFFFF;
	color: var(--errd-gray-dark);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-iv-switch strong {
	color: var(--errd-navy-deep);
	font-size: 1.1rem;
}

.adb-iv-switch span {
	font-size: 0.82rem;
}

.adb-iv-switch button[aria-selected="true"] {
	border-color: var(--errd-navy-deep);
	background: var(--errd-navy-deep);
	color: #C7D2E5;
}

.adb-iv-switch button[aria-selected="true"] strong {
	color: #E7B37A;
}

.adb-iv-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.adb-iv-links .adb-btn--primary {
	color: #FFFFFF;
}

.adb-iv-status {
	margin: 12px 0 0;
	color: var(--errd-gray-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.adb-iv-h {
	margin: 18px 0 8px;
	color: var(--errd-navy-deep);
	font-weight: 900;
}

.adb-iv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.adb-iv-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border-radius: 14px;
	background: #FFFFFF;
	border: 1px solid var(--errd-gray-border);
}

.adb-iv-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.adb-iv-top b {
	color: var(--errd-navy-deep);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.05rem;
}

.adb-iv-live {
	padding: 2px 8px;
	border-radius: var(--errd-radius-full);
	background: #DCFCE7;
	color: #166534;
	font-size: 0.66rem;
	font-weight: 900;
	letter-spacing: 1px;
}

.adb-iv-pos {
	color: var(--errd-gray-dark);
	font-size: 0.85rem;
	font-weight: 700;
}

.adb-iv-freq {
	color: #15803D;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 1.5rem;
}

.adb-iv-freq small {
	font-size: 0.75rem;
}

.adb-iv-card em {
	color: var(--errd-gray-muted);
	font-size: 0.78rem;
	font-style: normal;
}

.adb-iv-card details {
	margin: 4px 0;
}

.adb-iv-card summary {
	color: var(--errd-blue-inst);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}

.adb-iv-card pre {
	margin: 6px 0;
	padding: 10px;
	border-radius: 10px;
	background: #0B1430;
	color: #A7F3D0;
	font-size: 0.78rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.adb-iv-card .adb-btn--primary {
	color: #FFFFFF;
}

.adb-av-tuned {
	grid-column: 1 / -1;
	margin: 0 0 10px;
	padding: 10px 14px;
	border-radius: 12px;
	background: #DCFCE7;
	color: #14532D;
	font-weight: 700;
}

@media (max-width: 600px) {
	.adb-iv-switch {
		grid-template-columns: 1fr 1fr;
	}

	.adb-iv-switch span {
		display: none;
	}
}


/* Alas de Bronce · Academia: illustrated materia cards */
.adb-ac-mats {
	grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
	gap: 18px;
}

.adb-ac .adb-ac-mat,
.adb-ac-mat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	border: 1px solid #E3E8F0;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(7, 26, 66, 0.04), 0 8px 24px rgba(7, 26, 66, 0.06);
	overflow: hidden;
	text-align: left;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.adb-ac-mat:hover:not(.is-locked),
.adb-ac-mat:focus-visible {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--mc) 45%, #E3E8F0);
	box-shadow: 0 2px 4px rgba(7, 26, 66, 0.05), 0 22px 44px color-mix(in srgb, var(--mc) 22%, transparent);
}

.adb-ac-mat:focus-visible {
	outline: 3px solid var(--mc);
	outline-offset: 3px;
}

.adb-ac-mat-top {
	position: relative;
	display: block;
	height: 158px;
	background:
		radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--mc) 22%, transparent) 0, transparent 55%),
		radial-gradient(circle, color-mix(in srgb, var(--mc) 18%, transparent) 1px, transparent 1.4px) 0 0 / 14px 14px,
		linear-gradient(160deg, color-mix(in srgb, var(--mc) 9%, #FFFFFF) 0%, #FFFFFF 100%);
	border-bottom: 1px solid color-mix(in srgb, var(--mc) 14%, #EEF2F7);
}

.adb-ac-mat-top::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--mc), color-mix(in srgb, var(--mc) 55%, #FFFFFF));
}

.adb-ac-mat .adb-ac-mat-icon {
	position: absolute;
	left: 16px;
	top: 18px;
	z-index: 1;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: #FFFFFF;
	color: var(--mc);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--mc) 25%, transparent);
}

.adb-art {
	position: absolute;
	right: 6px;
	bottom: 2px;
	width: 74%;
	height: auto;
	max-height: 142px;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adb-ac-mat:hover:not(.is-locked) .adb-art {
	transform: translateY(-4px) scale(1.04);
}

/* Illustration strokes: ink, accent (materia colour), tints */
.adb-art .k { stroke: #0F2147; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adb-art .k:not([fill]):not(.w):not(.s) { fill: none; }
.adb-art .a { fill: none; stroke: var(--mc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.adb-art .af { fill: var(--mc); }
.adb-art .kf { fill: #0F2147; }
.adb-art .w { fill: #FFFFFF; }
.adb-art .s { fill: color-mix(in srgb, var(--mc) 16%, #FFFFFF); }
.adb-art .b { stroke-width: 3; }
.adb-art .d { stroke-dasharray: 5 5; }
.adb-art .o { opacity: 0.55; }
.adb-art .t { fill: #0F2147; font: 800 13px var(--errd-font-sans, sans-serif); }

.adb-ac-mat-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 6px;
}

.adb-ac-mat .adb-ac-mat-n {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: color-mix(in srgb, var(--mc) 80%, #0F2147);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.adb-ac-badge {
	padding: 2px 8px;
	border-radius: var(--errd-radius-full);
	font-size: 0.66rem;
	letter-spacing: 0.4px;
}

.adb-ac-badge.is-on {
	background: color-mix(in srgb, var(--mc) 14%, #FFFFFF);
	color: color-mix(in srgb, var(--mc) 85%, #0F2147);
}

.adb-ac-badge.is-pass {
	background: #DCFCE7;
	color: #166534;
}

.adb-ac-mat-t {
	color: var(--errd-navy-deep);
	font-size: 1.14rem;
	font-weight: 900;
	line-height: 1.3;
}

.adb-ac-mat-d {
	display: -webkit-box;
	overflow: hidden;
	color: #475569;
	font-size: 0.88rem;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.adb-ac-mat-foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding: 10px 18px 18px;
}

.adb-ac-mat-progress {
	display: flex;
	align-items: center;
	gap: 10px;
}

.adb-ac-mat-progress .adb-bar {
	flex: 1;
	width: auto;
	height: 8px;
	background: color-mix(in srgb, var(--mc) 10%, #EEF2F7);
}

.adb-ac-mat-progress .adb-bar > span {
	background: linear-gradient(90deg, var(--mc), color-mix(in srgb, var(--mc) 65%, #FFFFFF));
}

.adb-ac-mat-pct {
	min-width: 36px;
	color: var(--errd-navy-deep);
	font-size: 0.8rem;
	font-weight: 900;
	text-align: right;
}

.adb-ac-mat-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	color: var(--errd-gray-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.adb-ac-mat-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.adb-ac-mat-meta svg {
	color: var(--mc);
}

.adb-ac-mat-go {
	color: color-mix(in srgb, var(--mc) 85%, #0F2147);
	font-weight: 900;
	transition: transform 0.3s ease;
}

.adb-ac-mat:hover .adb-ac-mat-go {
	transform: translateX(4px);
}

.adb-ac-mat.is-pass .adb-ac-mat-top::after {
	content: '✓';
	position: absolute;
	right: 14px;
	top: 14px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #16A34A;
	color: #FFFFFF;
	font-weight: 900;
	box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

/* Materia page header with its illustration */
.adb-ac-mhead {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle, color-mix(in srgb, var(--mc) 14%, transparent) 1px, transparent 1.4px) 0 0 / 14px 14px,
		linear-gradient(120deg, #FFFFFF 40%, color-mix(in srgb, var(--mc) 10%, #FFFFFF) 100%);
}

.adb-ac-mhead .adb-ac-mat-n {
	display: block;
	margin-bottom: 2px;
	color: color-mix(in srgb, var(--mc) 80%, #0F2147);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.adb-ac-mhead-art {
	flex: 0 0 210px;
}

.adb-ac-mhead-art .adb-art {
	position: static;
	width: 210px;
}

@media (max-width: 760px) {
	.adb-ac-mhead-art {
		display: none;
	}

	.adb-ac-mat-top {
		height: 140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-ac-mat,
	.adb-art,
	.adb-ac-mat-go {
		transition: none;
	}
}

/* Elements hidden with the hidden attribute stay hidden even when a component sets display */
.adb [hidden],
.adb-panel [hidden],
.adb-ac-form[hidden] {
	display: none !important;
}
/* Materias illustrated with instrument photos (Sistemas e instrumentos) */
.adb-art--img {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6%;
	right: 14px;
	bottom: 14px;
	width: 70%;
	height: 118px;
}

.adb-art--img img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 48%;
	object-fit: contain;
	filter: drop-shadow(0 8px 14px rgba(7, 26, 66, 0.28));
}

.adb-ac-mhead-art .adb-art--img {
	position: static;
	width: 210px;
	height: 100px;
}
.adb-art--one {
	right: 10px;
	bottom: 8px;
	width: 78%;
	height: 128px;
}

.adb-art--one img {
	max-width: 100%;
	height: auto;
	max-height: 100%;
	filter: drop-shadow(0 10px 14px rgba(7, 26, 66, 0.22));
}

.adb-ac-mhead-art .adb-art--one {
	width: 230px;
	height: 100px;
}
.adb-ac-mat .adb-art--one {
	width: calc(100% - 84px);
	justify-content: center;
}
/* Materias whose header is a full photo (Navegación) */
.adb-art-cover {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

.adb-art-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 45%;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.adb-art-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--mc) 38%, rgba(255, 255, 255, 0.55)) 0%, rgba(255, 255, 255, 0) 45%),
		linear-gradient(0deg, rgba(7, 26, 66, 0.16) 0%, rgba(7, 26, 66, 0) 40%);
}

.adb-ac-mat:hover:not(.is-locked) .adb-art-cover img {
	transform: scale(1.06);
}

.adb-ac-mat-top:has(.adb-art-cover)::before {
	z-index: 1;
}

.adb-ac-mhead-art .adb-art-cover {
	position: relative;
	inset: auto;
	width: 210px;
	height: 110px;
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(7, 26, 66, 0.18);
}

.adb-ac-mhead-art .adb-art-cover::after {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.adb-art-cover img {
		transition: none;
	}
}
/* Compact legible board in the card header (Servicios meteorológicos) */
.adb-art-panel {
	position: absolute;
	right: 14px;
	top: 14px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: calc(100% - 84px);
}

.adb-art-panel img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(7, 26, 66, 0.3));
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adb-ac-mat:hover:not(.is-locked) .adb-art-panel img {
	transform: translateY(-3px) scale(1.03);
}

.adb-ac-mhead-art .adb-art-panel {
	position: static;
	width: 170px;
	height: 112px;
}

/* Full infographic on the materia page */
.adb-ac-info {
	margin: 16px 0 0;
	padding: 12px;
	border: 1px solid #E3E8F0;
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: var(--errd-shadow-sm);
}

.adb-ac-info a {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.adb-ac-info img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.adb-ac-info a:hover img {
	transform: scale(1.01);
}

.adb-ac-info figcaption {
	margin-top: 8px;
	color: var(--errd-gray-muted);
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.adb-art-panel img,
	.adb-ac-info img {
		transition: none;
	}
}
.adb-ac-info {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}
.adb-ac-info {
	max-width: 640px;
}

/* Alas de Bronce · Academia: badge display case (metal medallions, wings emblem) */
.adb-ac-trophy {
	position: relative;
	margin-top: 34px;
	padding: 28px 24px 30px;
	border-radius: 26px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at 50% 0%, rgba(231, 179, 122, 0.22), transparent 60%),
		linear-gradient(180deg, #1B2B47 0%, #0E1A30 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(7, 26, 66, 0.22);
	color: #E2E8F0;
	overflow: hidden;
}

.adb-ac-trophy-head {
	display: grid;
	justify-items: center;
	gap: 6px;
	margin-bottom: 22px;
	text-align: center;
}

.adb-ac-trophy-head img {
	display: block;
	width: min(100%, 300px);
	height: auto;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.adb-ac-trophy-head h3 {
	margin: 4px 0 0;
	color: #FFFFFF;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.adb-ac-trophy-head p {
	margin: 0;
	color: #B8C4D6;
	font-size: 0.92rem;
}

.adb-ac-trophy-head p b {
	color: #E7B37A;
}

.adb-ac-trophy-bar {
	display: block;
	width: min(100%, 280px);
	height: 8px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.adb-ac-trophy-bar > span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #A8692E, #E7B37A);
	transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.adb-ac-trophy .adb-ac-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 12px;
}

.adb-ac-trophy .adb-ac-badges > li {
	width: 136px;
}

.adb-ac-trophy .adb-ac-badges li,
.adb-ac-trophy .adb-ac-badges li.is-on {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	background: none;
	color: inherit;
	opacity: 1;
}

.adb-ac-medal {
	position: relative;
	display: block;
	width: 112px;
	height: 112px;
	margin-bottom: 10px;
	border-radius: 24px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.45);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.adb-ac-medal img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.adb-ac-badges li.is-on .adb-ac-medal {
	box-shadow: 0 0 0 2px #C98A4B, 0 0 26px rgba(231, 179, 122, 0.45), 0 12px 24px rgba(0, 0, 0, 0.45);
}

.adb-ac-badges li.is-on:hover .adb-ac-medal {
	transform: translateY(-4px) scale(1.04);
}

.adb-ac-badges li.is-off .adb-ac-medal img {
	filter: grayscale(1) brightness(0.55) contrast(0.9);
}

.adb-ac-medal i {
	position: absolute;
	right: -6px;
	bottom: -6px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-style: normal;
	font-weight: 900;
	font-size: 0.85rem;
}

.adb-ac-medal-ok {
	background: linear-gradient(135deg, #E7B37A, #A8692E);
	color: #1A0F05;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.adb-ac-medal-lock {
	background: #334155;
	color: #CBD5E1;
	box-shadow: 0 0 0 2px #0E1A30;
}

.adb-ac-trophy .adb-ac-badges strong {
	margin-top: 0;
	color: #FFFFFF;
	font-size: 0.95rem;
	text-align: center;
}

.adb-ac-trophy .adb-ac-badges li.is-off strong {
	color: #94A3B8;
}

.adb-ac-trophy .adb-ac-badges em {
	color: #94A3B8;
	font-size: 0.76rem;
	line-height: 1.35;
	text-align: center;
}

@media (max-width: 600px) {
	.adb-ac-trophy {
		padding: 22px 14px 24px;
	}

	.adb-ac-trophy .adb-ac-badges > li {
		width: calc(50% - 6px);
	}

	.adb-ac-medal {
		width: 96px;
		height: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-ac-medal,
	.adb-ac-trophy-bar > span {
		transition: none;
	}
}


/* Alas de Bronce · Academia: illustrations, labs, decoders, comparisons and steps inside lessons */
.adb-ac-ill {
	margin: 22px 0;
	padding: 18px 18px 14px;
	border: 1px solid color-mix(in srgb, var(--mc) 18%, #E3E8F0);
	border-radius: 18px;
	background:
		radial-gradient(circle, color-mix(in srgb, var(--mc) 10%, transparent) 1px, transparent 1.4px) 0 0 / 16px 16px,
		#FFFFFF;
}

.adb-ac-ill svg,
.adb-lab-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.adb-ac-ill svg {
	max-width: 620px;
	margin: 0 auto;
}

.adb-ac-ill figcaption {
	margin-top: 10px;
	color: #475569;
	font-size: 0.86rem;
	line-height: 1.5;
	text-align: center;
}

/* SVG palette */
.adb-ac-ill .cI, .adb-lab-svg .cI { color: #0F2147; }
.adb-ac-ill .cA, .adb-lab-svg .cA { color: var(--mc); }
.adb-ac-ill .cB, .adb-lab-svg .cB { color: #0EA5E9; }
.adb-ac-ill .cR, .adb-lab-svg .cR { color: #DC2626; }
.adb-ac-ill .cG, .adb-lab-svg .cG { color: #16A34A; }
.adb-ac-ill .cM, .adb-lab-svg .cM { color: #94A3B8; }
.adb-ac-ill .cO, .adb-lab-svg .cO { color: #F59E0B; }
.adb-ac-ill .ln, .adb-lab-svg .ln { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.adb-ac-ill .hd, .adb-lab-svg .hd { fill: currentColor; stroke: none; }
.adb-ac-ill .sf, .adb-lab-svg .sf { fill: currentColor; stroke: none; opacity: 0.12; }
.adb-ac-ill .dsh, .adb-lab-svg .dsh { stroke-dasharray: 6 6; }
.adb-ac-ill .tx, .adb-lab-svg .tx { fill: #0F2147; font: 800 13px var(--errd-font-sans, sans-serif); }
.adb-ac-ill .tm, .adb-lab-svg .tm { fill: #475569; font: 600 11.5px var(--errd-font-sans, sans-serif); }
.adb-ac-ill .tx.cA, .adb-ac-ill .tm.cA, .adb-lab-svg .tx.cA { fill: var(--mc); }
.adb-ac-ill .tx.cR, .adb-ac-ill .tm.cR, .adb-lab-svg .tm.cR { fill: #DC2626; }
.adb-ac-ill .tx.cB, .adb-lab-svg .tm.cB { fill: #0284C7; }
.adb-ac-ill .tx.cG { fill: #15803D; }
.adb-ac-ill .tm.cW { fill: #FFFFFF; }
.adb-ac-ill .big { font: 900 30px var(--errd-font-sans, sans-serif); }
.adb-ac-ill .big.cB { fill: #0284C7; }
.adb-ac-ill .big.cR { fill: #DC2626; }
.adb-ac-ill .pl, .adb-lab-svg .pl { fill: #FFFFFF; stroke: #0F2147; stroke-width: 2; stroke-linejoin: round; }
.adb-ac-ill .pl2, .adb-lab-svg .pl2 { fill: var(--mc); stroke: #0F2147; stroke-width: 1.6; stroke-linejoin: round; }
.adb-ac-ill .win, .adb-lab-svg .win { fill: #BAE6FD; stroke: #0F2147; stroke-width: 1.4; }
.adb-ac-ill .foil, .adb-lab-svg .foil { fill: color-mix(in srgb, var(--mc) 22%, #FFFFFF); stroke: #0F2147; stroke-width: 2.2; stroke-linejoin: round; }
.adb-ac-ill .foil2 { fill: var(--mc); stroke: #0F2147; stroke-width: 2; stroke-linejoin: round; }
.adb-ac-ill .cg { fill: #FFFFFF; stroke: #0F2147; stroke-width: 2.5; }
.adb-ac-ill .iso { fill: none; stroke: #94A3B8; stroke-width: 1.6; stroke-dasharray: 2 4; }
.adb-ac-ill .cloud, .adb-lab-svg .cloud { fill: #F1F5F9; stroke: #64748B; stroke-width: 1.8; stroke-linejoin: round; }
.adb-ac-ill .cb { fill: #CBD5E1; stroke: #334155; stroke-width: 1.8; stroke-linejoin: round; }
.adb-ac-ill .st { fill: #E2E8F0; stroke: #64748B; stroke-width: 1.4; }
.adb-ac-ill .cold { fill: #BFDBFE; stroke: #2563EB; stroke-width: 2; }
.adb-ac-ill .warmsl { fill: #FECACA; stroke: #DC2626; stroke-width: 2; }
.adb-ac-ill .sea { fill: #0EA5E9; }
.adb-ac-ill .land, .adb-lab-svg .land { fill: #A16207; }
.adb-ac-ill .sun { fill: #FBBF24; }
.adb-ac-ill .moon { fill: #CBD5E1; }

/* Interactive lab */
.adb-ac-lab,
.adb-ac-decode {
	margin: 24px 0;
	padding: 18px 20px 20px;
	border-radius: 20px;
	background: linear-gradient(160deg, color-mix(in srgb, var(--mc) 8%, #FFFFFF), #F8FAFC);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 30%, #E3E8F0);
}

.adb-ac-lab-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--mc);
	color: #FFFFFF;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.adb-ac-lab h5 {
	margin: 10px 0 12px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.08rem;
	font-weight: 900;
}

.adb-lab-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: center;
}

.adb-lab-svg {
	margin-bottom: 8px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #E2E8F0;
}

.adb-lab-r {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #334155;
}

.adb-lab-r b {
	color: var(--mc);
	font-size: 1.05rem;
	font-weight: 900;
}

.adb-lab-r small {
	color: #64748B;
	font-weight: 700;
}

.adb-lab-r input[type="range"] {
	width: 100%;
	accent-color: var(--mc);
	min-height: 28px;
}

.adb-lab-r input[type="text"] {
	max-width: 200px;
	padding: 10px 12px;
	border: 1.5px solid #CBD5E1;
	border-radius: 12px;
	font: 800 1.1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 1px;
}

.adb-lab-big {
	margin: 12px 0 4px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.35;
}

.adb-lab-big.is-ok { color: #15803D; }
.adb-lab-big.is-warn { color: #B45309; }
.adb-lab-big.is-bad { color: #DC2626; }

.adb-lab-note {
	margin: 0;
	color: #475569;
	font-size: 0.86rem;
	line-height: 1.55;
}

.adb-lab-meter span {
	display: block;
	margin-bottom: 6px;
	color: #334155;
	font-size: 0.8rem;
	font-weight: 800;
}

.adb-lab-meter i {
	position: relative;
	display: block;
	height: 16px;
	border-radius: 99px;
	background: #E2E8F0;
}

.adb-lab-meter em {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #16A34A, #4ADE80);
	transition: width 0.25s ease;
}

.adb-lab-meter em.is-bad { background: linear-gradient(90deg, #DC2626, #F87171); }

.adb-lab-meter u {
	position: absolute;
	left: 50%;
	top: -5px;
	bottom: -5px;
	width: 3px;
	border-radius: 2px;
	background: #0F2147;
}

.adb-lab-meter u::after {
	content: 'Peso';
	position: absolute;
	top: -20px;
	left: 6px;
	color: #0F2147;
	font-size: 0.7rem;
	font-weight: 800;
	text-decoration: none;
}

.adb-lab-g {
	margin: 0;
	color: var(--mc);
	font-size: 1rem;
	font-weight: 800;
}

.adb-lab-g b {
	font-size: 2.6rem;
	font-weight: 900;
	line-height: 1;
}

.adb-lab-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0 10px;
}

.adb-lab-stats div {
	padding: 12px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #E2E8F0;
}

.adb-lab-stats span {
	display: block;
	color: #64748B;
	font-size: 0.74rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.adb-lab-stats b {
	display: block;
	margin-top: 4px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.02rem;
	font-weight: 900;
}

.adb-lab-cat {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 16px 0 10px;
	padding: 14px 16px;
	border-radius: 16px;
	color: #FFFFFF;
	transition: background 0.3s ease;
}

.adb-lab-cat b {
	font-size: 1.7rem;
	font-weight: 900;
	letter-spacing: 1px;
}

.adb-lab-cat span {
	font-weight: 800;
}

.adb-lab-cat.is-vfr { background: #16A34A; }
.adb-lab-cat.is-mvfr { background: #2563EB; }
.adb-lab-cat.is-ifr { background: #DC2626; }
.adb-lab-cat.is-lifr { background: #A21CAF; }

.adb-lab-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

/* Code decoder (METAR, TAF, PIREP…) */
.adb-ac-code {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 12px;
	padding: 14px;
	border-radius: 14px;
	background: #0B1730;
}

.adb-ac-tok {
	--tc: #38BDF8;
	padding: 6px 9px;
	border: 1.5px solid color-mix(in srgb, var(--tc) 55%, transparent);
	border-radius: 9px;
	background: color-mix(in srgb, var(--tc) 14%, transparent);
	color: var(--tc);
	font: 800 0.98rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.adb-lab-presets .adb-ac-tok {
	background: #0B1730;
}

.adb-ac-tok:hover {
	transform: translateY(-2px);
}

.adb-ac-tok.is-on {
	background: var(--tc);
	color: #0B1730;
}

.adb-ac-tok:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 2px;
}

.c0 { --tc: #38BDF8; }
.c1 { --tc: #FBBF24; }
.c2 { --tc: #4ADE80; }
.c3 { --tc: #F472B6; }
.c4 { --tc: #A78BFA; }
.c5 { --tc: #FB923C; }

.adb-ac-tok-say {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	align-items: start;
	min-height: 86px;
	padding: 14px 16px;
	border-left: 5px solid var(--tc);
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 6px 18px rgba(7, 26, 66, 0.07);
}

.adb-ac-tok-say code {
	padding: 6px 10px;
	border-radius: 9px;
	background: #0B1730;
	color: var(--tc);
	font: 900 1.05rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.adb-ac-tok-say strong {
	display: block;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1rem;
}

.adb-ac-tok-say p {
	margin: 2px 0 0;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.55;
}

.adb-ac-tok-say .adb-link {
	grid-column: 2;
	justify-self: start;
}

.adb-ac-tok-all {
	margin-top: 12px;
}

.adb-ac-tok-all summary {
	color: color-mix(in srgb, var(--mc) 85%, #0F2147);
	font-weight: 800;
	cursor: pointer;
}

.adb-ac-tok-all dl {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
}

.adb-ac-tok-all dl > div {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 10px;
	padding: 8px 10px;
	border-left: 4px solid var(--tc);
	border-radius: 10px;
	background: #FFFFFF;
}

.adb-ac-tok-all dt {
	font: 800 0.9rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #0F2147;
	overflow-wrap: anywhere;
}

.adb-ac-tok-all dd {
	margin: 0;
	color: #334155;
	font-size: 0.88rem;
	line-height: 1.5;
}

/* Side-by-side comparison */
.adb-ac-cmp {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0;
}

.adb-ac-cmp > section {
	flex: 1 1 200px;
}

.adb-ac-cmp section {
	padding: 14px 16px;
	border-top: 5px solid #0EA5E9;
	border-radius: 16px;
	background: #F8FAFC;
	box-shadow: inset 0 0 0 1px #E2E8F0;
}

.adb-ac-cmp section.c1 { border-top-color: #F59E0B; }
.adb-ac-cmp section.c2 { border-top-color: #16A34A; }
.adb-ac-cmp section.c3 { border-top-color: #DB2777; }

.adb-ac-cmp h5 {
	margin: 0 0 8px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1rem;
	font-weight: 900;
}

.adb-ac-cmp ul {
	margin: 0;
	padding-left: 18px;
	color: #334155;
	font-size: 0.9rem;
	line-height: 1.55;
}

/* Numbered procedure */
.adb-ac-steps {
	counter-reset: st;
	display: grid;
	gap: 10px;
	margin: 18px 0;
	padding: 0;
	list-style: none;
}

.adb-ac-steps li {
	counter-increment: st;
	position: relative;
	padding: 12px 14px 12px 56px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #E2E8F0;
	color: #1E293B;
	font-size: 0.94rem;
	line-height: 1.5;
}

.adb-ac-steps li::before {
	content: counter(st);
	position: absolute;
	left: 12px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	border-radius: 50%;
	background: var(--mc);
	color: #FFFFFF;
	font-weight: 900;
}

@media (max-width: 640px) {
	.adb-lab-grid {
		grid-template-columns: 1fr;
	}

	.adb-lab-stats {
		grid-template-columns: 1fr;
	}

	.adb-ac-ill,
	.adb-ac-lab,
	.adb-ac-decode {
		padding: 14px 12px;
	}

	.adb-ac-tok-all dl > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.adb-ac-tok-say {
		grid-template-columns: 1fr;
	}

	.adb-ac-tok-say .adb-link {
		grid-column: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-ac-tok,
	.adb-lab-meter em,
	.adb-lab-cat {
		transition: none;
	}
}


/* Alas de Bronce · Academia: illustrations use the full width on phones, with larger labels */
@media (max-width: 640px) {
	.adb-ac-lesson .adb-ac-ill {
		margin-left: -14px;
		margin-right: -14px;
		padding: 10px 6px 12px;
		border-radius: 14px;
	}

	.adb-ac-ill .tx { font-size: 15px; }
	.adb-ac-ill .tm { font-size: 13.5px; }
}
@media (max-width: 480px) {
	.adb.adb-panel {
		padding-left: 10px;
		padding-right: 10px;
	}

	.adb-ac-lesson {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* Alas de Bronce · Solicitud: document uploads */
.adb-fields .is-half {
	grid-column: span 2;
}

.adb-docs-hint,
.adb-docs-minor {
	margin: 0 0 14px;
	color: #475569;
	font-size: 0.88rem;
	line-height: 1.5;
}

.adb-docs-minor {
	margin: 0;
	padding: 12px 14px;
	border-left: 4px solid #F59E0B;
	border-radius: 10px;
	background: #FFFBEB;
	color: #78350F;
}

.adb-fields > label.adb-file {
	gap: 8px;
}

.adb-file input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1.5px dashed #CBD5E1;
	border-radius: 12px;
	background: #F8FAFC;
	color: #334155;
	font-size: 0.85rem;
	cursor: pointer;
}

.adb-file input[type="file"]:hover,
.adb-file input[type="file"]:focus-visible {
	border-color: var(--errd-blue-accent, #1E6BEB);
	background: #EFF6FF;
	outline: none;
}

.adb-file input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 8px 14px;
	border: 0;
	border-radius: 9px;
	background: #0F2147;
	color: #FFFFFF;
	font-weight: 700;
	cursor: pointer;
}

.adb-file small {
	color: #64748B;
	font-size: 0.76rem;
	font-weight: 600;
}

.adb-file.is-invalid input[type="file"] {
	border-color: #DC2626;
	background: #FEF2F2;
}

@media (max-width: 600px) {
	.adb-fields .is-half {
		grid-column: 1 / -1;
	}
}

/* Alas de Bronce · Academia: lab option buttons and heading chain */
.adb-lab-label {
	margin: 14px 0 0;
	color: #334155;
	font-size: 0.86rem;
	font-weight: 800;
}

.adb-lab-pick {
	padding: 8px 12px;
	border: 1.5px solid color-mix(in srgb, var(--mc) 35%, #CBD5E1);
	border-radius: 10px;
	background: #FFFFFF;
	color: #0F2147;
	font-size: 0.86rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.adb-lab-pick:hover {
	background: color-mix(in srgb, var(--mc) 10%, #FFFFFF);
}

.adb-lab-pick.is-on {
	border-color: var(--mc);
	background: var(--mc);
	color: #FFFFFF;
}

.adb-lab-pick:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--mc) 45%, transparent);
	outline-offset: 2px;
}

.adb-lab-chain {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 10px;
}

.adb-lab-chain span {
	display: grid;
	min-width: 112px;
	padding: 10px 12px;
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 30%, #E2E8F0);
	text-align: center;
}

.adb-lab-chain span:last-child {
	background: var(--mc);
	color: #FFFFFF;
}

.adb-lab-chain b {
	font-size: 1.35rem;
	font-weight: 900;
}

.adb-lab-chain em {
	font-size: 0.74rem;
	font-style: normal;
	font-weight: 700;
	opacity: 0.85;
}

.adb-lab-chain i {
	color: var(--mc);
	font-style: normal;
	font-weight: 900;
}

/* Alas de Bronce · Biblioteca POH */
.adb-poh {
	--mc: #1E40AF;
}

.adb-poh-planes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	margin-bottom: 18px;
}

.adb-poh-plane {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border: 1.5px solid #E2E8F0;
	border-radius: 16px;
	background: #FFFFFF;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.adb-poh-plane:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--mc) 40%, #E2E8F0);
}

.adb-poh-plane.is-on {
	border-color: var(--mc);
	background: color-mix(in srgb, var(--mc) 6%, #FFFFFF);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--mc) 18%, transparent);
}

.adb-poh-plane strong {
	color: var(--errd-navy-deep, #071A42);
	font-size: 1rem;
}

.adb-poh-plane em {
	color: #64748B;
	font-size: 0.78rem;
	font-style: normal;
	line-height: 1.35;
}

.adb-poh-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 12px;
	padding: 16px 18px;
	border-radius: 18px;
	background: linear-gradient(135deg, #0F2147, #1E3A8A);
	color: #FFFFFF;
}

.adb-poh-head h3 {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.35rem;
	font-weight: 900;
}

.adb-poh-head p {
	margin: 2px 0 0;
	color: #BFDBFE;
	font-size: 0.86rem;
}

.adb-poh-nopdf {
	max-width: 360px;
	color: #DBEAFE;
	font-size: 0.82rem;
	line-height: 1.45;
}

.adb-poh-note,
.adb-poh-warn {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-left: 4px solid #F59E0B;
	border-radius: 10px;
	background: #FFFBEB;
	color: #78350F;
	font-size: 0.88rem;
	line-height: 1.5;
}

.adb-poh-tabs {
	margin-bottom: 16px;
}

.adb-poh-intro {
	margin: 0 0 14px;
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.55;
}

.adb-poh-secs {
	display: grid;
	gap: 8px;
}

.adb-poh-sec {
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	background: #FFFFFF;
}

.adb-poh-sec summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
}

.adb-poh-sec summary::-webkit-details-marker {
	display: none;
}

.adb-poh-sec summary b {
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	height: 40px;
	border-radius: 12px;
	background: var(--mc);
	color: #FFFFFF;
	font-size: 1.1rem;
	font-weight: 900;
}

.adb-poh-sec summary span {
	display: grid;
	gap: 2px;
}

.adb-poh-sec summary strong {
	color: var(--errd-navy-deep, #071A42);
}

.adb-poh-sec summary em {
	color: #64748B;
	font-size: 0.84rem;
	font-style: normal;
}

.adb-poh-sec[open] summary {
	border-bottom: 1px solid #EEF2F7;
}

.adb-poh-sec ul {
	margin: 0;
	padding: 12px 18px 14px 72px;
	color: #334155;
	font-size: 0.9rem;
	line-height: 1.6;
}

.adb-poh-tasks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.adb-poh-tasks button {
	padding: 8px 12px;
	border: 1.5px solid #E2E8F0;
	border-radius: 99px;
	background: #FFFFFF;
	color: #0F2147;
	font-size: 0.84rem;
	font-weight: 700;
	cursor: pointer;
}

.adb-poh-tasks button:hover {
	border-color: var(--mc);
}

.adb-poh-tasks button.is-on {
	border-color: var(--mc);
	background: var(--mc);
	color: #FFFFFF;
}

.adb-poh-answer {
	padding: 16px 18px;
	border-radius: 16px;
	background: #F8FAFC;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 25%, #E2E8F0);
}

.adb-poh-answer h4 {
	margin: 8px 0 4px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.1rem;
}

.adb-poh-answer p {
	margin: 4px 0 0;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.55;
}

.adb-poh-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 99px;
	background: var(--mc);
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.adb-poh-plane-note {
	padding: 10px 12px;
	border-radius: 10px;
	background: #EFF6FF;
	color: #1E3A8A;
	font-weight: 700;
}

.adb-poh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.adb-poh-grid section {
	padding: 16px;
	border: 1px solid #E2E8F0;
	border-radius: 16px;
	background: #FFFFFF;
}

.adb-poh-grid h4,
.adb-poh-h {
	margin: 0 0 10px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1rem;
	font-weight: 900;
}

.adb-poh-h {
	margin-top: 18px;
}

.adb-poh-grid dl {
	display: grid;
	gap: 6px;
	margin: 0;
}

.adb-poh-grid dl > div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 6px;
	border-bottom: 1px dashed #E2E8F0;
	font-size: 0.88rem;
}

.adb-poh-grid dt {
	color: #475569;
}

.adb-poh-grid dd {
	margin: 0;
	color: #0F2147;
	font-weight: 800;
	text-align: right;
}

.adb-poh-grid ul {
	margin: 0;
	padding-left: 18px;
	color: #334155;
	font-size: 0.88rem;
	line-height: 1.55;
}

.adb-poh-where {
	margin: 10px 0 0;
	color: var(--mc);
	font-size: 0.8rem;
	font-weight: 800;
}

.adb-poh-q {
	margin: 0 0 12px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.08rem;
	line-height: 1.45;
}

.adb-poh .adb-poh-answer[data-qfb] {
	margin-top: 12px;
}

.adb-poh-answer .adb-btn {
	margin-top: 12px;
}

.adb-poh-result {
	padding: 26px;
	border-radius: 18px;
	background: #F8FAFC;
	text-align: center;
}

.adb-poh-result strong {
	display: block;
	color: var(--mc);
	font-size: 2.4rem;
	font-weight: 900;
}

@media (max-width: 600px) {
	.adb-poh-sec ul {
		padding-left: 22px;
	}

	.adb-poh-head {
		padding: 14px;
	}
}

.adb-ac-lab .adb-lab-svg {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}


/* Alas de Bronce · Sobre la Academia */
.adb-about {
	margin: 0 0 24px;
	border: 1px solid #E7D6C4;
	border-radius: 22px;
	background: linear-gradient(160deg, #FFFBF5 0%, #FFFFFF 60%);
	box-shadow: 0 8px 24px rgba(7, 26, 66, 0.05);
}

.adb-about > summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}

.adb-about > summary::-webkit-details-marker {
	display: none;
}

.adb-about > summary::after {
	content: '';
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2.5px solid #A8692E;
	border-bottom: 2.5px solid #A8692E;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.adb-about[open] > summary::after {
	transform: rotate(-135deg);
}

.adb-about-ico {
	display: grid;
	flex: 0 0 44px;
	place-items: center;
	height: 44px;
	border-radius: 14px;
	background: linear-gradient(135deg, #E7B37A, #A8692E);
	color: #FFFFFF;
}

.adb-about > summary strong {
	display: block;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.12rem;
	font-weight: 900;
}

.adb-about > summary em {
	color: #64748B;
	font-size: 0.86rem;
	font-style: normal;
}

.adb-about-body {
	padding: 4px 20px 22px;
}

.adb-about-body h4 {
	margin: 18px 0 10px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1rem;
	font-weight: 900;
}

.adb-about-lead {
	margin: 0 0 16px;
	color: #334155;
	font-size: 0.98rem;
	line-height: 1.65;
}

.adb-about-lead strong {
	color: #8A5520;
}

.adb-about-facts {
	display: grid;
	grid-template-columns: 2fr 1.2fr 1fr;
	gap: 10px;
}

/* Institutional credits: two cards with the same weight */
.adb-credits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 10px;
}

.adb-credit {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #EEE3D6;
	border-left: 4px solid #C98A4B;
	min-width: 0;
}

.adb-credit span {
	color: #A8692E;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.adb-credit strong {
	color: #0F2147;
	font-size: 1.15rem;
	line-height: 1.3;
}

.adb-credit em {
	color: #5B6478;
	font-size: 0.84rem;
	font-style: normal;
	line-height: 1.45;
}

.adb-credits-note {
	grid-column: 1 / -1;
	margin: 2px 4px 0;
	color: #5B6478;
	font-size: 0.84rem;
	line-height: 1.5;
}

@media (max-width: 640px) {
	.adb-credits {
		grid-template-columns: 1fr;
	}
}

.adb-about-facts > div {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #EEE3D6;
}

.adb-about-facts span {
	color: #A8692E;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.adb-about-facts strong {
	color: #0F2147;
	font-size: 0.92rem;
	line-height: 1.45;
}

.adb-about-facts .adb-about-num {
	font-size: 2rem;
	line-height: 1;
}

.adb-about-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.adb-about-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-about-list li {
	position: relative;
	padding-left: 28px;
	color: #334155;
	font-size: 0.92rem;
	line-height: 1.5;
}

.adb-about-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #DCFCE7;
	color: #15803D;
	font-size: 0.72rem;
	font-weight: 900;
}

.adb-about-totals {
	margin: 0 0 10px;
	color: #475569;
	font-size: 0.86rem;
}

.adb-about-totals b {
	color: #0F2147;
	font-size: 1rem;
}

.adb-about-mats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-about-mats li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0 10px;
	padding: 8px 10px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--mc) 7%, #FFFFFF);
}

.adb-about-mats li span {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--mc);
	box-shadow: 0 2px 6px color-mix(in srgb, var(--mc) 25%, transparent);
}

.adb-about-mats strong {
	color: #0F2147;
	font-size: 0.86rem;
	line-height: 1.25;
}

.adb-about-mats em {
	color: #64748B;
	font-size: 0.74rem;
	font-style: normal;
}

.adb-about-tools {
	margin: 12px 0 0;
	color: #475569;
	font-size: 0.86rem;
	line-height: 1.55;
}

.adb-about-steps {
	counter-reset: ab;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.adb-about-steps li {
	counter-increment: ab;
	display: grid;
	align-content: start;
	gap: 4px;
	padding: 44px 12px 14px;
	position: relative;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px #E2E8F0;
}

.adb-about-steps li::before {
	content: counter(ab);
	position: absolute;
	left: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #0F2147;
	color: #FFFFFF;
	font-size: 0.8rem;
	font-weight: 900;
}

.adb-about-steps li:last-child::before {
	background: #A8692E;
}

.adb-about-steps strong {
	color: #0F2147;
	font-size: 0.92rem;
}

.adb-about-steps span {
	color: #475569;
	font-size: 0.82rem;
	line-height: 1.45;
}

@media (max-width: 900px) {
	.adb-about-facts {
		grid-template-columns: 1fr 1fr;
	}

	.adb-about-facts > div:first-child {
		grid-column: 1 / -1;
	}

	.adb-about-cols {
		grid-template-columns: 1fr;
	}

	.adb-about-steps {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.adb-about > summary,
	.adb-about-body {
		padding-left: 14px;
		padding-right: 14px;
	}

	.adb-about-mats,
	.adb-about-steps {
		grid-template-columns: 1fr;
	}
}

/* Registration form: fields stay inside their card */
.adb-ac-form,
.adb-ac-form label,
.adb-ac-row > label {
	min-width: 0;
}

.adb-ac-form input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}



/* Alas de Bronce · Sobre la Academia: interactive class hours */
.adb-hours {
	margin: 22px 0 8px;
	padding: 20px;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(231, 179, 122, 0.22), transparent 55%),
		linear-gradient(160deg, #0F2147 0%, #071A42 100%);
	color: #E2E8F0;
}

.adb-hours-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.adb-hours-head h4 {
	margin: 0 0 4px;
	color: #FFFFFF;
	font-size: 1.2rem;
	font-weight: 900;
}

.adb-hours-head p {
	margin: 0;
	color: #CBD5E1;
	font-size: 0.92rem;
	line-height: 1.5;
}

.adb-hours-head p b {
	color: #E7B37A;
}

.adb-hours-total {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: linear-gradient(135deg, #E7B37A, #A8692E);
	box-shadow: 0 0 0 6px rgba(231, 179, 122, 0.18), 0 12px 28px rgba(0, 0, 0, 0.35);
	color: #1A0F05;
	text-align: center;
}

.adb-hours-total b {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
}

.adb-hours-total span {
	margin-top: -18px;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.adb-hours-grid {
	display: grid;
	grid-template-columns: 230px minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.adb-hours-donut {
	display: block;
	width: 100%;
	max-width: 230px;
	margin: 0 auto;
}

.adb-hours-seg {
	cursor: pointer;
	transition: stroke-width 0.25s ease, opacity 0.25s ease;
}

.adb-hours-donut:hover .adb-hours-seg:not(:hover):not(.is-on) {
	opacity: 0.55;
}

.adb-hours-big {
	fill: #FFFFFF;
	font: 900 38px var(--errd-font-sans, sans-serif);
}

.adb-hours-unit {
	fill: #CBD5E1;
	font: 700 11.5px var(--errd-font-sans, sans-serif);
}

.adb-hours-list {
	display: grid;
	gap: 4px;
}

.adb-hours-item {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) 70px 42px;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #E2E8F0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.adb-hours-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.adb-hours-item.is-on {
	border-color: color-mix(in srgb, var(--mc) 70%, #FFFFFF);
	background: color-mix(in srgb, var(--mc) 22%, transparent);
}

.adb-hours-item:focus-visible {
	outline: 2px solid #E7B37A;
	outline-offset: 2px;
}

.adb-hours-dot {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	background: var(--mc);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.adb-hours-name {
	overflow: hidden;
	font-size: 0.86rem;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.adb-hours-bar {
	height: 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.adb-hours-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--mc);
}

.adb-hours-item b {
	color: #FFFFFF;
	font-size: 0.88rem;
	text-align: right;
}

.adb-hours-detail {
	padding: 16px;
	border-radius: 18px;
	background: #FFFFFF;
	color: #334155;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	animation: adb-hours-in 0.3s ease;
}

.adb-hours-detail.is-empty {
	background: rgba(255, 255, 255, 0.06);
	color: #CBD5E1;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.adb-hours-detail.is-empty strong {
	color: #E7B37A;
}

.adb-hours-detail.is-empty p {
	margin: 6px 0 0;
	font-size: 0.88rem;
	line-height: 1.5;
}

.adb-hours-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 99px;
	background: var(--mc);
	color: #FFFFFF;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.adb-hours-detail h5 {
	margin: 10px 0 2px;
	color: var(--errd-navy-deep, #071A42);
	font-size: 1.08rem;
	font-weight: 900;
}

.adb-hours-h {
	margin: 0 0 12px;
	color: #475569;
	font-size: 0.9rem;
}

.adb-hours-h b {
	color: var(--mc);
	font-size: 1.8rem;
	font-weight: 900;
}

.adb-hours-split {
	display: grid;
	gap: 7px;
}

.adb-hours-split > div {
	display: grid;
	grid-template-columns: 76px 1fr 44px;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
}

.adb-hours-split span {
	color: #475569;
	font-weight: 700;
}

.adb-hours-split i {
	height: 9px;
	border-radius: 99px;
	background: #EEF2F7;
	overflow: hidden;
}

.adb-hours-split em {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--mc);
}

.adb-hours-split b {
	color: #0F2147;
	text-align: right;
}

.adb-hours-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.adb-hours-facts li {
	padding: 4px 10px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--mc) 10%, #FFFFFF);
	color: #334155;
	font-size: 0.8rem;
}

.adb-hours-facts b {
	color: #0F2147;
}

.adb-hours-note {
	margin: 12px 0 0;
	font-size: 0.86rem;
	line-height: 1.5;
}

.adb-hours-pace {
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px dashed #E2E8F0;
	color: #475569;
	font-size: 0.86rem;
}

.adb-hours-pace b {
	color: #A8692E;
}

.adb-hours-plan {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	align-items: center;
	gap: 10px 22px;
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.adb-hours-plan label {
	display: grid;
	gap: 6px;
	color: #E2E8F0;
	font-size: 0.88rem;
	font-weight: 700;
}

.adb-hours-plan label b {
	color: #E7B37A;
}

.adb-hours-plan input[type="range"] {
	width: 100%;
	min-height: 28px;
	accent-color: #E7B37A;
}

.adb-hours-plan p {
	margin: 0;
	color: #CBD5E1;
	font-size: 0.9rem;
	line-height: 1.5;
}

.adb-hours-plan p b {
	color: #FFFFFF;
}

.adb-hours-foot {
	margin: 14px 0 0;
	color: #94A3B8;
	font-size: 0.8rem;
	line-height: 1.55;
}

@keyframes adb-hours-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
	.adb-hours-grid {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.adb-hours-detail {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.adb-hours {
		padding: 16px 12px;
	}

	.adb-hours-head {
		align-items: flex-start;
	}

	.adb-hours-total {
		width: 76px;
		height: 76px;
	}

	.adb-hours-total b {
		font-size: 1.6rem;
	}

	.adb-hours-grid,
	.adb-hours-plan {
		grid-template-columns: 1fr;
	}

	.adb-hours-donut {
		max-width: 200px;
	}

	.adb-hours-item {
		grid-template-columns: 12px minmax(0, 1fr) 48px 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-hours-detail,
	.adb-hours-seg {
		animation: none;
		transition: none;
	}
}
.adb-hours-name {
	display: -webkit-box;
	white-space: normal;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}


/* COMANDANTE: voice and microphone (inc/dominic-voz.php) */
.errd-dominic-form:has(.errd-dominic-mic) {
	padding-left: 6px;
}

.errd-dominic-mic {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #EEF2F8;
	color: #0B1F45;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.errd-dominic-mic:hover {
	background: #DCE4F0;
	transform: scale(1.06);
}

.errd-dominic-mic:focus-visible {
	outline: 3px solid rgba(11, 31, 69, 0.25);
	outline-offset: 2px;
}

.errd-dominic-mic.is-on {
	background: #C8102E;
	color: #FFFFFF;
	animation: errd-mic-pulse 1.4s ease-out infinite;
}

@keyframes errd-mic-pulse {
	0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); }
	100% { box-shadow: 0 0 0 14px rgba(200, 16, 46, 0); }
}

.errd-dominic-icon[data-dominic-voice] .is-off,
.errd-dominic-icon[data-dominic-voice].is-muted .is-on {
	display: none;
}

.errd-dominic-icon[data-dominic-voice].is-muted .is-off {
	display: block;
}

.errd-dominic-icon[data-dominic-voice].is-muted {
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.55);
}

.errd-dominic-status {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	margin: 0 12px 8px;
	padding: 8px 10px 8px 12px;
	border-radius: 14px;
	background: linear-gradient(135deg, #0B1F45 0%, #17396F 100%);
	color: #FFFFFF;
	font-size: 0.84rem;
	font-weight: 700;
}

.errd-dominic-status[hidden] {
	display: none;
}

.errd-dominic-status > span:nth-child(2) {
	flex: 1;
}

.errd-dominic-status button {
	padding: 5px 10px;
	border: 0;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.16);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.76rem;
	cursor: pointer;
}

.errd-dominic-status button:hover {
	background: rgba(255, 255, 255, 0.28);
}

.errd-dominic-status.is-listen {
	background: linear-gradient(135deg, #9F0D25 0%, #C8102E 100%);
}

.errd-dominic-status.is-note {
	background: #FEF3C7;
	color: #78350F;
}

.errd-dominic-status.is-note .errd-dominic-wave,
.errd-dominic-status.is-note button {
	display: none;
}

.errd-dominic-wave {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	height: 18px;
}

.errd-dominic-wave i {
	width: 3px;
	height: 6px;
	border-radius: 2px;
	background: #E7B37A;
	animation: errd-wave 0.9s ease-in-out infinite;
}

.errd-dominic-status.is-listen .errd-dominic-wave i {
	background: #FFFFFF;
}

.errd-dominic-status.is-think .errd-dominic-wave i {
	animation-duration: 1.6s;
	opacity: 0.7;
}

.errd-dominic-wave i:nth-child(2) { animation-delay: 0.12s; }
.errd-dominic-wave i:nth-child(3) { animation-delay: 0.24s; }
.errd-dominic-wave i:nth-child(4) { animation-delay: 0.36s; }
.errd-dominic-wave i:nth-child(5) { animation-delay: 0.48s; }

@keyframes errd-wave {
	0%, 100% { height: 5px; }
	50% { height: 18px; }
}

.errd-dominic-play {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 4px 10px 4px 8px;
	border: 1px solid #D5DEEA;
	border-radius: 99px;
	background: #FFFFFF;
	color: #0B1F45;
	font-size: 0.76rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.errd-dominic-play:hover {
	border-color: #0B1F45;
}

.errd-dominic-msg.is-speaking .errd-dominic-play {
	border-color: #A8692E;
	background: #FBF3EA;
	color: #8A5520;
}

.errd-dominic-msg.is-speaking .errd-dominic-play span::after {
	content: ' · detener';
}

.errd-dominic-msg.is-speaking .errd-dominic-msg-avatar {
	border-radius: 50%;
	animation: errd-talk 1.2s ease-in-out infinite;
}

@keyframes errd-talk {
	0%, 100% { box-shadow: 0 0 0 0 rgba(231, 179, 122, 0.7); }
	50% { box-shadow: 0 0 0 5px rgba(231, 179, 122, 0); }
}

.errd-dominic.is-talking .errd-dominic-head .errd-dominic-avatar {
	animation: errd-talk 1.2s ease-in-out infinite;
	border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
	.errd-dominic-mic.is-on,
	.errd-dominic-wave i,
	.errd-dominic-msg.is-speaking .errd-dominic-msg-avatar,
	.errd-dominic.is-talking .errd-dominic-head .errd-dominic-avatar {
		animation: none;
	}
}

/* Sobre Nosotros: definition of an Explorador del Rey (above the emblem points) */
.errd-explorer-def {
	position: relative;
	max-width: 860px;
	margin: 0 auto 34px;
	padding: 30px 34px 26px;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(217, 119, 6, 0.18), transparent 55%),
		linear-gradient(140deg, var(--errd-navy-deep, #071A42) 0%, #12306A 100%);
	color: #FFFFFF;
	text-align: center;
	box-shadow: 0 18px 40px rgba(7, 26, 66, 0.18);
}

.errd-explorer-def::before {
	content: '\201C';
	position: absolute;
	left: 22px;
	top: -6px;
	color: rgba(253, 230, 138, 0.35);
	font: 900 7rem/1 Georgia, serif;
	pointer-events: none;
}

.errd-explorer-def-tag {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 14px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.12);
	color: #FDE68A;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.errd-explorer-def blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.errd-explorer-def blockquote p {
	margin: 0;
	color: #FFFFFF;
	font-size: clamp(1.08rem, 2.2vw, 1.3rem);
	font-weight: 600;
	font-style: italic;
	line-height: 1.65;
}

.errd-explorer-def-traits {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.errd-explorer-def-traits li {
	padding: 6px 12px;
	border: 1px solid rgba(253, 230, 138, 0.4);
	border-radius: 99px;
	color: #FDE68A;
	font-size: 0.8rem;
	font-weight: 700;
}

@media (max-width: 600px) {
	.errd-explorer-def {
		padding: 26px 18px 22px;
	}
}

/* Sobre Nosotros · Emblema interactivo */
.errd-emblem-x {
	position: relative;
	padding: 22px 22px 18px;
	border-radius: var(--errd-radius-md, 18px);
	background:
		radial-gradient(circle at 50% 38%, rgba(255, 223, 28, 0.16), transparent 55%),
		radial-gradient(ellipse at 0% 100%, rgba(224, 58, 62, 0.14), transparent 50%),
		linear-gradient(160deg, #0B1F45 0%, #072358 55%, #063B82 100%);
	color: #FFFFFF;
	box-shadow: var(--errd-shadow-card, 0 18px 40px rgba(7, 26, 66, 0.22));
	overflow: hidden;
}

.errd-emblem-x-head {
	text-align: center;
}

.errd-emblem-x-tag {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.12);
	color: #FDE68A;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1.4px;
}

.errd-emblem-x-head h2 {
	margin: 10px 0 4px;
	color: #FFFFFF;
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	font-weight: 900;
}

.errd-emblem-x-head p {
	margin: 0 auto;
	max-width: 420px;
	color: #CBD5E1;
	font-size: 0.9rem;
	line-height: 1.5;
}

.errd-emblem-x-stage {
	display: grid;
	gap: 14px;
	margin-top: 10px;
}

.errd-emblem-x-art {
	position: relative;
	width: min(100%, 400px);
	margin: 0 auto;
}

.emb-svg {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.45));
}

.emb-svg path {
	transition: fill 0.7s ease, stroke 0.7s ease;
}

.emb-ring circle {
	fill: none;
	stroke: none;
}

.emb-pt {
	cursor: pointer;
	outline: none;
	transform-box: view-box;
	transform-origin: 133px 139.4px;
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease, filter 0.35s ease;
}

.emb-pt path {
	stroke-linejoin: round;
}

/* Larger touch target without changing the drawing */
.emb-pt path:first-child {
	paint-order: stroke;
}

.emb-pt:hover {
	transform: translate(calc(var(--dx) * 2.5px), calc(var(--dy) * 2.5px));
}

.emb-pt:focus-visible {
	filter: url(#embGlow) drop-shadow(0 0 2px #FFFFFF);
}

.emb-pt.is-on {
	transform: translate(calc(var(--dx) * 6px), calc(var(--dy) * 6px)) scale(1.05);
	filter: url(#embGlow);
}

.has-sel .emb-pt:not(.is-on),
.f-gold .emb-pt:not(.emb-pt--gold),
.f-red .emb-pt:not(.emb-pt--red),
.f-blue .emb-pt:not(.emb-pt--blue) {
	opacity: 0.4;
}

.f-gold .emb-pt--gold,
.f-red .emb-pt--red,
.f-blue .emb-pt--blue {
	filter: url(#embGlow);
}

/* Discover mode: line art until each point is found */
.is-discover .emb-badge {
	fill: #F8FAFC;
	stroke: #0F2147;
	stroke-width: 1.4;
}

.is-discover .emb-disc {
	stroke: #0F2147;
	stroke-width: 0.8;
}

.is-discover .emb-sun {
	fill: #FFFFFF;
	stroke: #0F2147;
	stroke-width: 0.6;
	stroke-dasharray: 2 2;
}

.is-discover .emb-letters,
.is-discover .emb-reg {
	fill: #0F2147;
}

.is-discover .emb-pt:not(.is-found) path {
	fill: #FFFFFF;
	stroke: #0F2147;
	stroke-width: 0.8;
}

.is-discover.is-in .emb-pt:not(.is-found) path {
	animation: emb-hint 3.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * 0.2s);
}

.is-discover .emb-pt--gold:not(.is-found) { --pc: #D97706; }
.is-discover .emb-pt--red:not(.is-found) { --pc: #E03A3E; }
.is-discover .emb-pt--blue:not(.is-found) { --pc: #00529B; }

@keyframes emb-hint {
	0%, 70%, 100% { stroke: #0F2147; stroke-width: 0.8; }
	80% { stroke: var(--pc); stroke-width: 2; }
}

/* Entrance: points open from the centre */
.errd-emblem-x:not(.is-in) .emb-pt {
	opacity: 0;
	transform: scale(0.2) rotate(-60deg);
}

.errd-emblem-x.is-in .emb-pt {
	transition-delay: calc(var(--i) * 45ms), 0s, 0s;
}

.errd-emblem-x.is-in .emb-pt:hover,
.errd-emblem-x.is-in .emb-pt.is-on {
	transition-delay: 0s;
}

/* Completion burst */
.errd-emblem-x-burst {
	position: absolute;
	inset: 6%;
	z-index: 0;
	border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, rgba(255, 223, 28, 0.55) 0 6deg, transparent 6deg 22.5deg);
	opacity: 0;
	transform: scale(0.6);
	pointer-events: none;
}

.is-burst .errd-emblem-x-burst {
	animation: emb-burst 1.8s ease-out;
}

@keyframes emb-burst {
	0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
	25% { opacity: 1; }
	100% { opacity: 0; transform: scale(1.35) rotate(40deg); }
}

/* Meaning card */
.errd-emblem-x-card {
	--gc: #E7B37A;
	position: relative;
	padding: 16px 18px 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	text-align: center;
}

.errd-emblem-x-card::before {
	content: '';
	position: absolute;
	left: 18px;
	right: 18px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--gc);
}

.errd-emblem-x-card.is-gold { --gc: #FFDF1C; }
.errd-emblem-x-card.is-red { --gc: #F87171; }
.errd-emblem-x-card.is-blue { --gc: #60A5FA; }
.errd-emblem-x-card.is-done { --gc: #E7B37A; }

.errd-emblem-x-card.is-swap > * {
	animation: emb-swap 0.45s ease;
}

@keyframes emb-swap {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.errd-emblem-x-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	background: color-mix(in srgb, var(--gc) 22%, transparent);
	color: var(--gc);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.errd-emblem-x-card h3 {
	margin: 8px 0 2px;
	color: #FFFFFF;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.2;
}

.errd-emblem-x-card [data-emblem-group] {
	margin: 0 0 6px;
	color: var(--gc);
	font-size: 0.84rem;
	font-weight: 700;
}

.errd-emblem-x-desc {
	margin: 0 auto;
	max-width: 380px;
	color: #E2E8F0;
	font-size: 0.98rem;
	line-height: 1.5;
}

.errd-emblem-x-chip {
	margin: 3px;
	padding: 4px 10px;
	border: 1px solid color-mix(in srgb, var(--gc) 55%, transparent);
	border-radius: 99px;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}

.errd-emblem-x-chip:hover {
	background: color-mix(in srgb, var(--gc) 25%, transparent);
}

.errd-emblem-x-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 10px;
	color: #94A3B8;
	font-size: 0.78rem;
	font-weight: 700;
}

.errd-emblem-x-nav button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #FFFFFF;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.errd-emblem-x-nav button:hover {
	background: rgba(255, 255, 255, 0.24);
}

.errd-emblem-x-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 14px;
}

.errd-emblem-x-filters,
.errd-emblem-x-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.errd-emblem-x-bar button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.errd-emblem-x-bar button:hover {
	background: rgba(255, 255, 255, 0.16);
}

.errd-emblem-x-bar button[aria-pressed="true"] {
	border-color: #FDE68A;
	background: rgba(253, 230, 138, 0.18);
}

.errd-emblem-x-bar i {
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

.errd-emblem-x-bar i.is-gold { background: #FFDF1C; }
.errd-emblem-x-bar i.is-red { background: #E03A3E; }
.errd-emblem-x-bar i.is-blue { background: #3B82F6; }

.errd-emblem-x-tour {
	border-color: transparent !important;
	background: linear-gradient(135deg, #C8102E, #E03A3E) !important;
}

.errd-emblem-x-progress {
	height: 4px;
	margin-top: 14px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.errd-emblem-x-progress i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #FFDF1C, #E03A3E, #3B82F6);
	transition: width 0.6s ease;
}

@media (max-width: 600px) {
	.errd-emblem-x {
		padding: 18px 14px 14px;
	}

	.errd-emblem-x-bar {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emb-pt,
	.emb-svg path,
	.errd-emblem-x-progress i {
		transition: none;
	}

	.is-discover.is-in .emb-pt:not(.is-found) path,
	.is-burst .errd-emblem-x-burst,
	.errd-emblem-x-card.is-swap > * {
		animation: none;
	}
}
/* Complete emblem: always in full colour; a tapped point only lifts and glows */
.is-complete.has-sel .emb-pt:not(.is-on) {
	opacity: 1;
}

.is-complete .emb-svg {
	animation: emb-complete 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-complete:not(.is-burst) .emb-svg {
	animation: none;
}

@keyframes emb-complete {
	0% { transform: scale(0.94); }
	55% { transform: scale(1.04); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.is-complete .emb-svg {
		animation: none;
	}
}

/* Sobre Nosotros · intro: both columns share the height; the motto closes the left card */
.errd-about-intro {
	align-items: stretch;
}

.errd-about-intro-card {
	display: flex;
	flex-direction: column;
}

.errd-about-motto {
	position: relative;
	display: grid;
	align-content: end;
	gap: 4px;
	min-height: 170px;
	margin-top: auto;
	padding: 22px 22px 18px;
	border-radius: 16px;
	background-color: #0B1F45;
	background-position: center 35%;
	background-size: cover;
	color: #FFFFFF;
	overflow: hidden;
	isolation: isolate;
}

.errd-about-intro-card > div:nth-last-child(2) {
	margin-bottom: 20px;
}

.errd-about-motto::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(7, 26, 66, 0.96) 0%, rgba(7, 35, 88, 0.86) 50%, rgba(6, 59, 130, 0.55) 100%);
}

.errd-about-motto::after {
	content: '';
	position: absolute;
	left: 22px;
	top: 0;
	width: 54px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(90deg, var(--errd-red-inst, #C8102E), #FFDF1C);
}

.errd-about-motto-tag {
	color: #FDE68A;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 1.6px;
}

.errd-about-motto strong {
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	font-weight: 900;
	line-height: 1.15;
}

.errd-about-motto p {
	margin: 4px 0 0;
	max-width: 440px;
	color: #CBD5E1;
	font-size: 0.88rem;
	font-style: italic;
	line-height: 1.5;
}

.errd-about-motto cite {
	color: #FDE68A;
	font-style: normal;
	font-weight: 800;
	white-space: nowrap;
}
/* The photo is mirrored: the scouts show on the right, its printed slogan stays under the dark side */
.errd-about-motto-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-position: left 30%;
	background-size: cover;
	transform: scaleX(-1);
}

.errd-about-motto::before {
	background: linear-gradient(90deg, rgba(7, 26, 66, 0.98) 0%, rgba(7, 30, 75, 0.93) 48%, rgba(7, 35, 88, 0.45) 78%, rgba(6, 59, 130, 0.15) 100%);
}
.errd-about-motto p {
	font-style: normal;
}


/* Emblema · institutional presentation (overrides the earlier discover styles) */
.errd-emblem-x:not(.is-in) .emb-pt {
	opacity: 0;
	transform: scale(0.94);
}

.errd-emblem-x.is-in .emb-pt {
	transition-delay: calc(var(--i) * 25ms), calc(var(--i) * 25ms), 0s;
}

.emb-pt {
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, filter 0.35s ease;
}

.emb-pt:hover {
	transform: translate(calc(var(--dx) * 1.5px), calc(var(--dy) * 1.5px));
}

.emb-pt.is-on {
	transform: translate(calc(var(--dx) * 3.5px), calc(var(--dy) * 3.5px)) scale(1.03);
}

.has-sel .emb-pt:not(.is-on),
.f-gold .emb-pt:not(.emb-pt--gold),
.f-red .emb-pt:not(.emb-pt--red),
.f-blue .emb-pt:not(.emb-pt--blue) {
	opacity: 0.45;
}

.errd-emblem-x-tour {
	border-color: rgba(253, 230, 138, 0.55) !important;
	background: rgba(253, 230, 138, 0.12) !important;
	color: #FDE68A !important;
}

.errd-emblem-x-tour:hover {
	background: rgba(253, 230, 138, 0.22) !important;
}

.errd-emblem-x-card.is-swap > * {
	animation-duration: 0.35s;
}
/* With a point selected the emblem keeps its presence: the others fade only slightly */
.has-sel .emb-pt:not(.is-on) {
	opacity: 0.72;
}

/* Academy: privacy note, profile completion, rating prompt and the 5-star rating dialog */
.adb-ac-privacy {
	margin: -2px 0 4px;
	color: #5B6478;
	font-size: 0.8rem;
	line-height: 1.45;
}

.adb-ac-form select {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.adb-ac-profile {
	display: grid;
	gap: 12px;
	margin-bottom: 16px;
	box-shadow: inset 0 0 0 1px #E7B37A;
}

.adb-ac-profile h3 {
	margin: 0;
}

.adb-ac-profile p {
	margin: 4px 0 0;
}

.adb-ac-profile label {
	display: grid;
	gap: 6px;
	min-width: 0;
	font-weight: 700;
}

.adb-ac-profile input,
.adb-ac-profile select {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.adb-ac-profile .adb-btn {
	justify-self: start;
}

.adb-ac-rate-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-bottom: 16px;
	background: linear-gradient(90deg, #FFF6E5, #FFFFFF);
}

.adb-ac-rate-cta > span {
	color: #E0A100;
	font-size: 1.6rem;
	line-height: 1;
}

.adb-ac-rate-cta p {
	flex: 1 1 220px;
	margin: 0;
}

.adb-rate {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(15, 33, 71, 0.55);
	animation: adbRateIn 0.2s ease-out;
}

@keyframes adbRateIn {
	from { opacity: 0; }
}

.adb-rate-card {
	--mc: #A8692E;
	display: grid;
	justify-items: center;
	gap: 8px;
	width: min(460px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 24px 22px 20px;
	border-radius: 22px;
	background: #FFFFFF;
	box-shadow: 0 24px 60px rgba(15, 33, 71, 0.3);
	text-align: center;
}

.adb-rate-ico {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: color-mix(in srgb, var(--mc) 14%, #FFFFFF);
	color: var(--mc);
}

.adb-rate-card h3 {
	margin: 4px 0 0;
	color: #0F2147;
	font-size: 1.2rem;
	line-height: 1.3;
}

.adb-rate-card > p {
	margin: 0;
	color: #5B6478;
}

.adb-rate-stars {
	display: flex;
	gap: 4px;
	margin-top: 6px;
}

.adb-rate-stars button {
	padding: 4px;
	border: 0;
	border-radius: 10px;
	background: none;
	cursor: pointer;
	transition: transform 0.15s;
}

.adb-rate-stars button:hover,
.adb-rate-stars button:focus-visible {
	transform: scale(1.12);
	outline: 2px solid #E7B37A;
}

.adb-rate-stars path {
	fill: #E8E1D6;
	stroke: #D7CCBC;
	stroke-width: 0.8;
	stroke-linejoin: round;
	transition: fill 0.15s;
}

.adb-rate-stars button.is-on path {
	fill: #F2B01E;
	stroke: #D39100;
}

.adb-rate-say {
	min-height: 1.4em;
	color: #8A5520;
}

.adb-rate-why {
	display: grid;
	gap: 6px;
	width: 100%;
	color: #0F2147;
	font-weight: 700;
	text-align: left;
}

.adb-rate-why textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #E5DCCF;
	border-radius: 12px;
	font: inherit;
	font-weight: 400;
	resize: vertical;
}

.adb-rate-card .adb-form-msg {
	width: 100%;
	margin: 0;
	text-align: left;
}

.adb-rate-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}
/* Alas de Bronce hero: who is signed in and «Cerrar sesión» */
.adb-hero-me {
	margin: 16px 0 14px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 1rem;
}

.adb-hero-me strong {
	color: #FFFFFF;
}

.adb-hero-me a {
	color: #E7B37A;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.adb-hero-me a:hover,
.adb-hero-me a:focus-visible {
	text-decoration: underline;
}
/* ============ Biblioteca POH: shelf of manuals and book viewer (assets/js/adb-poh-libro.js) ============ */
.adb-poh-shelf {
	margin-bottom: 26px;
	padding: 22px;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 100% 0%, rgba(231, 179, 122, 0.2), transparent 55%),
		linear-gradient(135deg, #0D204D, #1A2050);
	color: #E6EDF6;
}

.adb-shelf-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 18px;
	margin-bottom: 18px;
}

.adb-shelf-head h3 {
	margin: 0;
	color: #FFFFFF;
	font-size: 1.3rem;
}

.adb-shelf-head p {
	margin: 4px 0 0;
	color: #AEB9D3;
	max-width: 640px;
}

.adb-shelf-head p b {
	color: #F4D19A;
}

.adb-shelf-head > span {
	padding: 5px 14px;
	border: 1px solid rgba(231, 179, 122, 0.45);
	border-radius: 999px;
	color: #F4D19A;
	font-size: 0.8rem;
	font-weight: 700;
}

.adb-shelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adb-shelf li {
	margin: 0;
}

.adb-shelf-book {
	display: grid;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-shelf-cover {
	position: relative;
	display: block;
	margin-bottom: 8px;
	border-radius: 4px 10px 10px 4px;
	background: #FFFFFF;
	box-shadow: -6px 0 0 #0A1636 inset, 0 14px 26px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	transform-origin: left center;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
	aspect-ratio: 0.74;
}

.adb-shelf-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.adb-shelf-cover i {
	position: absolute;
	inset: 0 auto 0 0;
	width: 12px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.1));
}

.adb-shelf-book:hover .adb-shelf-cover,
.adb-shelf-book:focus-visible .adb-shelf-cover {
	transform: perspective(700px) rotateY(-16deg) translateX(4px);
	box-shadow: -6px 0 0 #0A1636 inset, 16px 18px 30px rgba(0, 0, 0, 0.45);
}

.adb-shelf-book:focus-visible {
	outline: 2px solid #E7B37A;
	outline-offset: 6px;
	border-radius: 8px;
}

.adb-shelf-book strong {
	color: #FFFFFF;
	font-size: 0.95rem;
	line-height: 1.3;
}

.adb-shelf-book em {
	color: #AEB9D3;
	font-size: 0.76rem;
	font-style: normal;
}

.adb-shelf-book small {
	color: #8D9AB0;
	font-size: 0.74rem;
}

.adb-shelf-open {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: #E7B37A;
	font-size: 0.82rem;
	font-weight: 800;
}

.adb-shelf-note {
	margin: 18px 0 0;
	color: #AEB9D3;
	font-size: 0.8rem;
}

/* Viewer */
html.adb-book-open,
html.adb-book-open body {
	overflow: hidden;
}

.adb-book {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	grid-template-rows: auto 1fr auto;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(231, 179, 122, 0.12), transparent 60%),
		linear-gradient(160deg, #0A1636, #141A42);
	color: #E6EDF6;
	animation: adbBookIn 0.25s ease-out;
}

@keyframes adbBookIn {
	from { opacity: 0; }
}

.adb-book-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 12px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 16, 40, 0.75);
}

.adb-book-title {
	display: grid;
	min-width: 0;
}

.adb-book-title strong {
	color: #FFFFFF;
	font-size: 1.05rem;
}

.adb-book-title span {
	color: #AEB9D3;
	font-size: 0.78rem;
}

.adb-book-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.adb-book-tools button,
.adb-book-tools a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: #E6EDF6;
	cursor: pointer;
}

.adb-book-tools button:hover,
.adb-book-tools a:hover,
.adb-book-tools button:focus-visible,
.adb-book-tools a:focus-visible {
	border-color: #E7B37A;
	color: #F4D19A;
	outline: none;
}

.adb-book-tools .adb-book-x {
	background: rgba(229, 50, 45, 0.18);
	border-color: rgba(229, 50, 45, 0.45);
}

.adb-book-sec select,
.adb-book-go input {
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	font: inherit;
	font-size: 0.88rem;
}

.adb-book-sec select {
	max-width: 260px;
	padding: 0 10px;
}

.adb-book-sec option {
	color: #0F2147;
}

.adb-book-go {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #AEB9D3;
	font-size: 0.82rem;
}

.adb-book-go input {
	width: 70px;
	padding: 0 8px;
	text-align: center;
}

.adb-book-go em {
	font-style: normal;
}

.adb-book-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 12px;
	overflow: auto;
}

.adb-book-load {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 420px;
	text-align: center;
}

.adb-book-load i {
	display: block;
	width: 240px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.adb-book-load b {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #C98A4B, #F4D19A);
	transition: width 0.2s;
}

.adb-book-msg {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #AEB9D3;
}

.adb-book-msg strong {
	color: #FFFFFF;
	font-size: 1.1rem;
}

.adb-book-spread {
	position: relative;
	display: grid;
	grid-template-columns: var(--pw) var(--pw);
	height: var(--ph);
	perspective: 2600px;
	filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5));
}

.adb-book-spread.is-single {
	grid-template-columns: var(--pw);
	overflow: hidden;
}

.adb-book-spread.is-zoom {
	margin: auto;
}

.adb-book-page {
	position: relative;
	width: var(--pw);
	height: var(--ph);
	background: #FFFFFF;
	overflow: hidden;
}

.adb-book-page canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.adb-book-page:not(.is-ready):not(.is-blank)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, #F2EEE8 30%, #FBF9F6 50%, #F2EEE8 70%) 0 0 / 300% 100%;
	animation: adbBookShimmer 1.2s linear infinite;
}

@keyframes adbBookShimmer {
	to { background-position: -300% 0; }
}

.adb-book-page.is-blank {
	background: transparent;
}

.adb-book-page.is-left {
	grid-column: 1;
	border-radius: 6px 0 0 6px;
	box-shadow: inset -22px 0 30px -18px rgba(0, 0, 0, 0.35);
}

.adb-book-page.is-right {
	grid-column: 2;
	border-radius: 0 6px 6px 0;
	box-shadow: inset 22px 0 30px -18px rgba(0, 0, 0, 0.3);
}

.adb-book-spread.is-single .adb-book-page {
	grid-column: 1;
	grid-row: 1;
	border-radius: 6px;
	box-shadow: none;
	transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s;
}

.adb-book-page.is-under {
	grid-row: 1;
	z-index: 0;
}

.adb-book-spread > .adb-book-page:not(.is-under) {
	grid-row: 1;
	z-index: 1;
}

.adb-book-page.is-slide-in { transform: translateX(105%); }
.adb-book-page.is-slide-in.from-left { transform: translateX(-105%); }
.adb-book-page.is-slide-out { transform: translateX(-105%); opacity: 0; }
.adb-book-page.is-slide-out-right { transform: translateX(105%); opacity: 0; }

.adb-book-num {
	position: absolute;
	bottom: 6px;
	z-index: 2;
	padding: 1px 8px;
	border-radius: 999px;
	background: rgba(15, 33, 71, 0.6);
	color: #FFFFFF;
	font-size: 0.68rem;
	font-weight: 700;
}

.adb-book-page.is-left .adb-book-num { left: 8px; }
.adb-book-page.is-right .adb-book-num { right: 8px; }

/* The turning leaf */
.adb-book-leaf {
	position: absolute;
	top: 0;
	z-index: 3;
	width: var(--pw);
	height: var(--ph);
	transform-style: preserve-3d;
	transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.25, 1);
}

.adb-book-leaf.go-left {
	left: var(--pw);
	transform-origin: left center;
}

.adb-book-leaf.go-right {
	left: 0;
	transform-origin: right center;
}

.adb-book-leaf.go-left.is-turning { transform: rotateY(-180deg); }
.adb-book-leaf.go-right.is-turning { transform: rotateY(180deg); }

.adb-book-leaf .adb-book-page {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
}

.adb-book-leaf .is-back {
	transform: rotateY(180deg);
}

.adb-book-leaf.go-left .is-front { border-radius: 0 6px 6px 0; box-shadow: inset 22px 0 30px -18px rgba(0, 0, 0, 0.3); }
.adb-book-leaf.go-left .is-back { border-radius: 6px 0 0 6px; box-shadow: inset -22px 0 30px -18px rgba(0, 0, 0, 0.35); }
.adb-book-leaf.go-right .is-front { border-radius: 6px 0 0 6px; }
.adb-book-leaf.go-right .is-back { border-radius: 0 6px 6px 0; }

.adb-book-leaf.go-left .is-front .adb-book-num { right: 8px; left: auto; }
.adb-book-leaf.go-left .is-back .adb-book-num { left: 8px; right: auto; }
.adb-book-leaf.go-right .is-front .adb-book-num { left: 8px; right: auto; }
.adb-book-leaf.go-right .is-back .adb-book-num { right: 8px; left: auto; }

.adb-book-foot {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 10px 18px 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(8, 16, 40, 0.75);
}

.adb-book-nav {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(231, 179, 122, 0.5);
	border-radius: 50%;
	background: rgba(231, 179, 122, 0.12);
	color: #F4D19A;
	cursor: pointer;
}

.adb-book-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.adb-book-scrub {
	display: grid;
	gap: 4px;
	text-align: center;
}

.adb-book-scrub input {
	width: 100%;
	accent-color: #E7B37A;
}

.adb-book-scrub span {
	color: #AEB9D3;
	font-size: 0.82rem;
}

@media (max-width: 860px) {
	.adb-book-bar {
		padding: 10px 12px;
	}

	.adb-book-sec select {
		max-width: 150px;
	}

	.adb-book-go em,
	.adb-book-go span {
		display: none;
	}

	.adb-book-tools button,
	.adb-book-tools a {
		width: 36px;
		height: 36px;
	}

	.adb-book-foot {
		padding: 8px 12px 12px;
	}
}

@media (max-width: 520px) {
	.adb-poh-shelf {
		padding: 16px;
	}

	.adb-shelf {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.adb-book-tools {
		width: 100%;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-book-leaf,
	.adb-shelf-cover,
	.adb-book-spread.is-single .adb-book-page {
		transition: none;
	}
}
/* ============ Carta aeronáutica interactiva (assets/js/adb-carta.js) ============ */
.adb-carta {
	--cy: #22D3EE;
	--gold: #FDE68A;
	--glass: rgba(9, 20, 48, 0.78);
	--line: rgba(148, 197, 255, 0.18);
	position: relative;
	height: clamp(560px, 80vh, 920px);
	border: 1px solid rgba(34, 211, 238, 0.25);
	border-radius: 24px;
	background: #0B1533;
	box-shadow: 0 30px 60px rgba(9, 20, 48, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	color: #E6EDF6;
	overflow: hidden;
	isolation: isolate;
}

.adb-carta:fullscreen {
	height: 100vh;
	border-radius: 0;
}

.adb-carta-map {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #0B1533;
}

.adb-carta .adb-carta-dark {
	filter: brightness(0.92) sepia(0.35) hue-rotate(185deg) saturate(1.6);
}

/* Around the FAA chart: the ocean map toned to the chart's pale blue, no black while tiles load */
.adb-carta.base-vfr .adb-carta-map {
	background: #D6E6F1;
}

.adb-carta .adb-carta-ocean {
	filter: saturate(0.75) brightness(1.04);
}

.adb-carta .leaflet-container {
	font-family: var(--errd-font-sans, inherit);
	background: #0B1533;
}

/* Vignette and a faint grid: the look of a cockpit display */
.adb-carta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 400;
	pointer-events: none;
	background:
		radial-gradient(ellipse at center, transparent 55%, rgba(5, 10, 26, 0.55) 100%),
		linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
		linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px) 0 0 / 46px 46px;
}

.adb-carta.is-measuring .leaflet-container {
	cursor: crosshair;
}

/* Floating glass panels */
.adb-carta-top,
.adb-carta-layers,
.adb-carta-drawer,
.adb-carta-tools,
.adb-carta-hud,
.adb-carta-warn,
.adb-carta-legend {
	position: absolute;
	z-index: 800;
}

.adb-carta-top {
	top: 14px;
	left: 14px;
	right: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}

.adb-carta-top > * {
	pointer-events: auto;
}

.adb-carta-brand,
.adb-carta-search,
.adb-carta-bases,
.adb-carta-layers,
.adb-carta-drawer,
.adb-carta-tools,
.adb-carta-legend {
	border: 1px solid var(--line);
	background: var(--glass);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.adb-carta-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px 8px 8px;
	border-radius: 16px;
}

.adb-carta-brand > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(135deg, #C98A4B, #8A5520);
	color: #FFFFFF;
	box-shadow: 0 0 18px rgba(231, 179, 122, 0.45);
}

.adb-carta-brand strong {
	display: block;
	color: #FFFFFF;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

.adb-carta-brand em {
	display: block;
	color: #9FB3D1;
	font-size: 0.74rem;
	font-style: normal;
}

.adb-carta-brand em a {
	color: var(--gold);
	font-weight: 700;
}

.adb-carta-search {
	position: relative;
	display: flex;
	flex: 1 1 260px;
	align-items: center;
	gap: 8px;
	max-width: 420px;
	padding: 0 14px;
	border-radius: 16px;
	color: #9FB3D1;
}

.adb-carta-search input {
	flex: 1;
	min-width: 0;
	height: 46px;
	border: 0;
	background: none;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.9rem;
	outline: none;
}

.adb-carta-search input::placeholder {
	color: #7E92B3;
}

.adb-carta-search:focus-within {
	border-color: rgba(34, 211, 238, 0.6);
	box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18), 0 14px 34px rgba(0, 0, 0, 0.35);
}

.adb-carta-search ul {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(9, 20, 48, 0.96);
	list-style: none;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.adb-carta-search li {
	margin: 0;
}

.adb-carta-search li button {
	display: grid;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: #FFFFFF;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.adb-carta-search li button:hover,
.adb-carta-search li button:focus-visible {
	background: rgba(34, 211, 238, 0.12);
	outline: none;
}

.adb-carta-search li em {
	color: #9FB3D1;
	font-size: 0.75rem;
	font-style: normal;
}

.adb-carta-search li.none {
	padding: 10px;
	color: #9FB3D1;
}

.adb-carta-bases {
	display: flex;
	gap: 3px;
	margin-left: auto;
	padding: 4px;
	border-radius: 14px;
}

.adb-carta-bases button,
.adb-carta-tools button {
	border: 1px solid transparent;
	background: none;
	color: #C9D6EC;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.adb-carta-bases button {
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 0.8rem;
}

.adb-carta-bases button[aria-pressed="true"] {
	border-color: rgba(253, 230, 138, 0.5);
	background: rgba(253, 230, 138, 0.14);
	color: var(--gold);
}

/* Layers */
.adb-carta-layers {
	top: 80px;
	left: 14px;
	width: 290px;
	max-height: calc(100% - 150px);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.adb-carta-layers-t {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	color: #FFFFFF;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.adb-carta-layers-t::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}

.adb-carta-layers.is-closed .adb-carta-layers-t::after {
	transform: rotate(-45deg);
}

.adb-carta-layers.is-closed .adb-carta-layers-b {
	display: none;
}

.adb-carta-layers-b {
	padding: 4px 10px 12px;
	overflow-y: auto;
}

.adb-carta-lh {
	margin: 12px 4px 6px;
	color: var(--cy);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.adb-carta-lay {
	display: grid;
	grid-template-columns: 16px 34px 1fr auto;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 6px;
	border-radius: 10px;
	cursor: pointer;
}

.adb-carta-lay:hover {
	background: rgba(255, 255, 255, 0.05);
}

.adb-carta-lay input {
	accent-color: #22D3EE;
}

.adb-carta-lay .sw {
	display: flex;
	gap: 2px;
}

.adb-carta-lay .sw i {
	flex: 1;
	height: 14px;
	border: 1.5px solid var(--c);
	border-radius: 3px;
	background: color-mix(in srgb, var(--c) 28%, transparent);
}

.adb-carta-lay .sw i.pt {
	flex: 0 0 14px;
	border: 0;
	border-radius: 50%;
}

.adb-carta-lay .sw .pt-airports { background: #E0F2FE; box-shadow: 0 0 8px #60A5FA; }
.adb-carta-lay .sw .pt-navaids { background: #22D3EE; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); border-radius: 0; }
.adb-carta-lay .sw .pt-points { background: #A78BFA; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }
.adb-carta-lay .sw .pt-obstacles { background: #FB923C; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; }

.adb-carta-lay .tx strong {
	display: block;
	color: #FFFFFF;
	font-size: 0.82rem;
}

.adb-carta-lay .tx em {
	display: block;
	color: #8EA3C4;
	font-size: 0.7rem;
	font-style: normal;
	line-height: 1.3;
}

.adb-carta-lay > b {
	color: #C9D6EC;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.adb-carta-alt {
	padding: 0 4px;
}

.adb-carta-alt input {
	width: 100%;
	accent-color: #FDE68A;
}

.adb-carta-alt span {
	color: var(--gold);
	font-size: 0.78rem;
	font-weight: 700;
}

/* Detail drawer */
.adb-carta-drawer {
	top: 80px;
	right: 14px;
	bottom: 58px;
	width: min(390px, calc(100% - 28px));
	padding: 18px;
	border-radius: 20px;
	overflow-y: auto;
	animation: adbCartaIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adbCartaIn {
	from { opacity: 0; transform: translateX(24px); }
}

.adb-carta-x {
	position: sticky;
	top: 0;
	float: right;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: -4px -4px 0 8px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	cursor: pointer;
}

.adb-carta-card-h h3 {
	margin: 8px 0 4px;
	color: #FFFFFF;
	font-size: 1.15rem;
	line-height: 1.3;
}

.adb-carta-card-h p {
	margin: 0;
	color: #9FB3D1;
	font-size: 0.8rem;
}

.adb-carta-chip {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid rgba(34, 211, 238, 0.45);
	border-radius: 999px;
	color: var(--cy);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.adb-carta-drawer section {
	margin-top: 16px;
}

.adb-carta-drawer h4 {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adb-carta-muted {
	margin: 10px 0 0;
	color: #8EA3C4;
	font-size: 0.78rem;
	line-height: 1.5;
}

.adb-carta-t {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
}

.adb-carta-t th {
	padding: 6px 6px;
	border-bottom: 1px solid var(--line);
	color: var(--cy);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
}

.adb-carta-t td {
	padding: 7px 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	color: #DCE6F5;
}

.adb-carta-t td b {
	color: #FFFFFF;
	font-variant-numeric: tabular-nums;
}

.adb-carta-metar {
	display: grid;
	grid-template-columns: 86px 1fr;
	gap: 12px;
}

.adb-carta-metar dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	margin: 0;
	font-size: 0.8rem;
}

.adb-carta-metar dt {
	color: #8EA3C4;
}

.adb-carta-metar dd {
	margin: 0;
	color: #FFFFFF;
	font-weight: 700;
}

.adb-carta-metar code,
.adb-carta-metar details {
	grid-column: 1 / -1;
}

.adb-carta-metar code {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.3);
	color: #A7F3D0;
	font-size: 0.74rem;
	line-height: 1.5;
	white-space: normal;
	word-break: break-word;
}

.adb-carta-metar summary {
	color: var(--cy);
	font-size: 0.78rem;
	cursor: pointer;
}

.adb-carta-cat {
	--c: #94A3B8;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 2px;
	border: 1px solid var(--c);
	border-radius: 14px;
	background: color-mix(in srgb, var(--c) 16%, transparent);
	box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent);
}

.adb-carta-cat b {
	color: var(--c);
	font-size: 1.1rem;
	letter-spacing: 0.04em;
}

.adb-carta-cat span {
	color: #C9D6EC;
	font-size: 0.7rem;
}

.adb-carta-cat.is-vfr { --c: #34D399; }
.adb-carta-cat.is-mvfr { --c: #60A5FA; }
.adb-carta-cat.is-ifr { --c: #F87171; }
.adb-carta-cat.is-lifr { --c: #E879F9; }

.adb-carta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.adb-carta-actions .adb-btn {
	font-size: 0.82rem;
}

.adb-carta-drawer .adb-btn:not(.adb-btn--primary) {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
}

/* Airspaces above a point */
.adb-carta-stack {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.adb-carta-stack li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
	border-left: 4px solid var(--c);
	border-radius: 12px;
	background: color-mix(in srgb, var(--c) 10%, transparent);
}

.adb-carta-stack strong {
	display: block;
	color: #FFFFFF;
	font-size: 0.85rem;
}

.adb-carta-stack em,
.adb-carta-stack small {
	display: block;
	color: #A9BAD6;
	font-size: 0.72rem;
	font-style: normal;
}

.adb-carta-stack span {
	display: grid;
	align-content: center;
	gap: 2px;
	text-align: right;
	white-space: nowrap;
}

.adb-carta-stack span b {
	color: #FFFFFF;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.adb-carta-stack span b + b {
	padding-top: 2px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	color: #C9D6EC;
}

.adb-carta-prof {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 6px;
	margin-top: 14px;
}

.adb-carta-prof-y {
	position: relative;
}

.adb-carta-prof-y span {
	position: absolute;
	right: 0;
	transform: translateY(50%);
	color: #8EA3C4;
	font-size: 0.64rem;
	white-space: nowrap;
}

.adb-carta-prof-c {
	position: relative;
	border-left: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: repeating-linear-gradient(to top, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 25%);
}

.adb-carta-prof-c i {
	position: absolute;
	border: 1.5px solid var(--c);
	border-radius: 6px;
	background: color-mix(in srgb, var(--c) 22%, transparent);
	box-shadow: 0 0 14px color-mix(in srgb, var(--c) 30%, transparent);
	overflow: hidden;
	animation: adbCartaRise 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	transform-origin: bottom;
}

@keyframes adbCartaRise {
	from { transform: scaleY(0); }
}

.adb-carta-prof-c b {
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%) rotate(180deg);
	color: #FFFFFF;
	font-size: 0.62rem;
	writing-mode: vertical-rl;
	white-space: nowrap;
}

/* Route */
.adb-carta-sum {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 14px;
}

.adb-carta-sum div {
	display: grid;
	gap: 2px;
	padding: 10px;
	border: 1px solid rgba(253, 230, 138, 0.3);
	border-radius: 12px;
	background: rgba(253, 230, 138, 0.08);
}

.adb-carta-sum span {
	color: #A9BAD6;
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.adb-carta-sum b {
	color: var(--gold);
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.adb-carta-calc {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.adb-carta-calc label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #A9BAD6;
	font-size: 0.78rem;
}

.adb-carta-calc input {
	width: 70px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	font: inherit;
}

.adb-carta-leg span {
	display: inline-block;
	padding: 3px 9px;
	border: 1px solid rgba(253, 230, 138, 0.6);
	border-radius: 999px;
	background: rgba(9, 20, 48, 0.88);
	color: var(--gold);
	font-size: 0.7rem;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.adb-carta-route {
	filter: drop-shadow(0 0 6px rgba(253, 230, 138, 0.75));
	animation: adbCartaDash 1.2s linear infinite;
}

@keyframes adbCartaDash {
	to { stroke-dashoffset: -34; }
}

/* Tools, HUD, disclaimer and legend */
.adb-carta-tools {
	right: 64px;
	bottom: 14px;
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 16px;
}

.adb-carta-tools button {
	display: grid;
	justify-items: center;
	gap: 2px;
	min-width: 62px;
	padding: 7px 8px;
	border-radius: 12px;
	font-size: 0.66rem;
}

.adb-carta-tools button:hover,
.adb-carta-tools button:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
	outline: none;
}

.adb-carta-tools button[aria-pressed="true"] {
	border-color: rgba(253, 230, 138, 0.55);
	background: rgba(253, 230, 138, 0.14);
	color: var(--gold);
}

.adb-carta .leaflet-bottom.leaflet-right {
	right: 4px;
	bottom: 4px;
}

.adb-carta .leaflet-control-zoom {
	border: 1px solid var(--line) !important;
	border-radius: 14px !important;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35) !important;
}

.adb-carta .leaflet-control-zoom a {
	width: 40px !important;
	height: 40px !important;
	border-bottom-color: var(--line) !important;
	background: var(--glass) !important;
	color: #FFFFFF !important;
	line-height: 40px !important;
	backdrop-filter: blur(14px);
}

.adb-carta .leaflet-control-attribution {
	margin: 0 !important;
	border-radius: 8px 0 0 0;
	background: rgba(9, 20, 48, 0.75) !important;
	color: #8EA3C4 !important;
	font-size: 9px !important;
}

.adb-carta .leaflet-control-attribution a {
	color: #C9D6EC !important;
}

.adb-carta-hud {
	left: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--glass);
	backdrop-filter: blur(14px);
	color: #C9D6EC;
	font-size: 0.74rem;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.adb-carta-hud [data-c-coord] {
	min-width: 190px;
	color: var(--cy);
	font-weight: 700;
}

.adb-carta-hud i {
	display: inline-block;
	height: 6px;
	margin-right: 6px;
	border: 2px solid #FFFFFF;
	border-top: 0;
	vertical-align: middle;
}

.adb-carta-warn {
	top: 76px;
	left: 50%;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid rgba(251, 191, 36, 0.45);
	border-radius: 999px;
	background: rgba(60, 40, 0, 0.7);
	color: #FDE68A;
	font-size: 0.7rem;
	font-weight: 700;
	transform: translateX(-50%);
	white-space: nowrap;
	pointer-events: none;
}

.adb-carta-legend {
	right: 14px;
	bottom: 76px;
	width: 300px;
	max-height: 60%;
	padding: 14px 16px;
	border-radius: 18px;
	overflow-y: auto;
}

.adb-carta-legend h4 {
	margin: 0 0 8px;
	color: var(--gold);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adb-carta-legend h4 + ul + h4 {
	margin-top: 14px;
}

.adb-carta-legend ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
}

.adb-carta-legend li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.adb-carta-legend li i {
	flex: 0 0 26px;
	height: 14px;
	border: 2px dashed var(--c);
	border-radius: 3px;
	background: color-mix(in srgb, var(--c) 20%, transparent);
}

.adb-carta-legend li i.is-hatch {
	background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 55%, transparent) 0 3px, transparent 3px 7px);
}

.adb-carta-legend .cats {
	grid-template-columns: repeat(4, auto);
	justify-content: start;
	gap: 6px 14px;
}

.adb-carta-legend i.c {
	flex: 0 0 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
}

.adb-carta-legend i.vfr { background: #34D399; }
.adb-carta-legend i.mvfr { background: #60A5FA; }
.adb-carta-legend i.ifr { background: #F87171; }
.adb-carta-legend i.lifr { background: #E879F9; }

.adb-carta-legend p {
	margin: 10px 0 0;
	color: #8EA3C4;
	font-size: 0.7rem;
	line-height: 1.5;
}

/* Airspaces drawn by Leaflet */
.adb-carta path.ac {
	transition: fill-opacity 0.2s, stroke-width 0.2s;
}

.adb-carta path.ac-hatch.ac-restringida { fill: url(#acHatch-restringida); }
.adb-carta path.ac-hatch.ac-prohibida { fill: url(#acHatch-prohibida); }
.adb-carta path.ac-hatch.ac-peligrosa { fill: url(#acHatch-peligrosa); }
.adb-carta path.ac-hatch.ac-protegida { fill: url(#acHatch-protegida); }

.adb-carta path.ac-ctr,
.adb-carta path.ac-prohibida {
	filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.55));
}

.adb-carta path.ac-fir {
	filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.6));
}

/* Symbols */
.adb-carta-ap,
.adb-carta-nav,
.adb-carta-rp,
.adb-carta-ob {
	--c: #E0F2FE;
	position: relative;
}

.adb-carta-ap svg,
.adb-carta-nav svg,
.adb-carta-rp svg,
.adb-carta-ob svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.adb-carta-ap .ring {
	fill: rgba(11, 21, 51, 0.85);
	stroke: var(--c);
	stroke-width: 2.4;
}

.adb-carta-ap .ring.mil {
	stroke-dasharray: 3 2;
}

.adb-carta-ap .rwy {
	fill: var(--c);
}

.adb-carta-ap .tick {
	stroke: var(--c);
	stroke-width: 2.2;
	stroke-linecap: round;
}

.adb-carta-ap text {
	fill: var(--c);
	font-size: 13px;
	font-weight: 900;
}

.adb-carta-ap {
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 70%, transparent));
}

.adb-carta-ap.cat-vfr { --c: #34D399; }
.adb-carta-ap.cat-mvfr { --c: #60A5FA; }
.adb-carta-ap.cat-ifr { --c: #F87171; }
.adb-carta-ap.cat-lifr { --c: #E879F9; }

.adb-carta-ap.cat-vfr::before,
.adb-carta-ap.cat-mvfr::before,
.adb-carta-ap.cat-ifr::before,
.adb-carta-ap.cat-lifr::before {
	content: "";
	position: absolute;
	inset: -4px;
	border: 2px solid var(--c);
	border-radius: 50%;
	opacity: 0;
	animation: adbCartaPing 2.6s ease-out infinite;
}

@keyframes adbCartaPing {
	0% { opacity: 0.7; transform: scale(0.8); }
	100% { opacity: 0; transform: scale(1.8); }
}

.adb-carta .lbl {
	position: absolute;
	top: 50%;
	left: calc(100% + 4px);
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(9, 20, 48, 0.8);
	color: #FFFFFF;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	white-space: nowrap;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.2s;
	pointer-events: none;
}

.adb-carta.is-labels .adb-carta-ap .lbl,
.adb-carta.is-labels .adb-carta-nav .lbl,
.adb-carta-ap.is-big .lbl,
.adb-carta-rp .lbl {
	opacity: 1;
}

.adb-carta-rp .lbl {
	color: #DDD6FE;
	font-size: 0.6rem;
}

.adb-carta-nav svg path,
.adb-carta-nav svg rect {
	fill: rgba(11, 21, 51, 0.8);
	stroke: #22D3EE;
	stroke-width: 2;
}

.adb-carta-nav svg .frame {
	fill: none;
	stroke-width: 1.2;
}

.adb-carta-nav svg .c {
	fill: #22D3EE;
}

.adb-carta-nav.is-ndb svg circle {
	fill: #F0ABFC;
}

.adb-carta-nav.is-ndb svg .dots {
	fill: none;
	stroke: #F0ABFC;
	stroke-width: 1.6;
	stroke-dasharray: 1 3;
}

.adb-carta-nav .lbl {
	color: #A5F3FC;
}

.adb-carta-rp svg path {
	fill: none;
	stroke: #A78BFA;
	stroke-width: 2;
}

.adb-carta-rp.is-c svg path {
	fill: #A78BFA;
}

.adb-carta-ob svg path {
	fill: none;
	stroke: #FB923C;
	stroke-width: 1.8;
}

.adb-carta-ob svg circle {
	fill: #FB923C;
}

.adb-carta-tip,
.adb-carta-wp {
	padding: 6px 10px !important;
	border: 1px solid var(--line) !important;
	border-radius: 10px !important;
	background: rgba(9, 20, 48, 0.94) !important;
	color: #E6EDF6 !important;
	font-family: var(--errd-font-sans, inherit) !important;
	font-size: 0.76rem !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4) !important;
}

.adb-carta-tip::before,
.adb-carta-wp::before {
	display: none;
}

.adb-carta-wp {
	padding: 2px 8px !important;
	color: var(--gold) !important;
	font-weight: 800;
}

.adb-carta-popup .leaflet-popup-content-wrapper,
.adb-carta-popup .leaflet-popup-tip {
	border: 1px solid var(--line);
	background: rgba(9, 20, 48, 0.96);
	color: #E6EDF6;
}

.adb-carta-pop strong {
	display: block;
	margin-top: 6px;
	color: #FFFFFF;
}

.adb-carta-pop p {
	margin: 4px 0 2px !important;
	color: var(--cy);
	font-weight: 700;
}

.adb-carta-pop small {
	color: #8EA3C4;
}

.adb-carta-fail {
	padding: 40px;
	color: #C9D6EC;
	text-align: center;
}

.adb-carta.is-basic .adb-carta-layers-b .adb-carta-lay:not(:has([data-c-layer="airports"])) {
	opacity: 0.45;
}

/* Runway in use, estimated from the METAR wind */
.adb-carta-rwy {
	display: grid;
	gap: 2px;
	padding: 12px 14px;
	border: 1px solid rgba(52, 211, 153, 0.4);
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(52, 211, 153, 0.04));
}

.adb-carta-rwy span {
	color: #8EA3C4;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adb-carta-rwy b {
	color: #FFFFFF;
	font-size: 1.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.1;
}

.adb-carta-rwy em {
	color: #6EE7B7;
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
}

.adb-carta-rwy.is-calm {
	border-color: rgba(148, 163, 184, 0.4);
	background: rgba(148, 163, 184, 0.08);
}

.adb-carta-rwy.is-calm b {
	font-size: 1.15rem;
}

.adb-carta-rwy.is-calm em {
	color: #C9D6EC;
}

.adb-carta-t.is-rwy {
	margin-top: 10px;
}

.adb-carta-t.is-rwy th {
	color: #8EA3C4;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.adb-carta-t.is-rwy tr.is-on td {
	background: rgba(52, 211, 153, 0.1);
}

.adb-carta-t.is-rwy .is-head {
	color: #6EE7B7;
	font-weight: 700;
}

.adb-carta-t.is-rwy .is-tail {
	color: #FCA5A5;
	font-weight: 700;
}

/* Airport views: in-map bases and external maps */
.adb-carta-views {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.adb-carta-views button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--cy);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.adb-carta-views button:hover,
.adb-carta-views button:focus-visible {
	border-color: rgba(253, 230, 138, 0.55);
	background: rgba(253, 230, 138, 0.1);
	outline: none;
}

.adb-carta-views svg {
	flex: 0 0 auto;
}

.adb-carta-views span {
	display: grid;
	min-width: 0;
}

.adb-carta-views strong {
	color: #FFFFFF;
	font-size: 0.82rem;
}

.adb-carta-views em {
	color: #8EA3C4;
	font-size: 0.68rem;
	font-style: normal;
	line-height: 1.3;
}

.adb-carta-ext {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 10px 0 0;
	color: #8EA3C4;
	font-size: 0.74rem;
}

.adb-carta-ext a {
	color: var(--gold);
	font-weight: 700;
	text-decoration: none;
}

.adb-carta-ext a:hover {
	text-decoration: underline;
}

/* Validity of the FAA VFR chart: green, amber 15 days before, red once expired */
.adb-carta-vig {
	--vc: #34D399;
	position: absolute;
	z-index: 800;
	top: 80px;
	right: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 300px;
	padding: 11px 16px 11px 12px;
	border: 1px solid color-mix(in srgb, var(--vc) 45%, transparent);
	border-left: 4px solid var(--vc);
	border-radius: 16px;
	background: var(--glass);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	color: #C9D6EC;
	line-height: 1.3;
}

.adb-carta-vig.is-soon { --vc: #FBBF24; }
.adb-carta-vig.is-expired { --vc: #F87171; }

.adb-carta-drawer:not([hidden]) ~ .adb-carta-vig {
	display: none; /* The detail drawer takes the same side */
}

.adb-carta-vig-ico {
	display: grid;
	flex: 0 0 38px;
	height: 38px;
	place-items: center;
	border-radius: 12px;
	background: color-mix(in srgb, var(--vc) 16%, transparent);
	color: var(--vc);
}

.adb-carta-vig small,
.adb-carta-vig strong,
.adb-carta-vig em {
	display: block;
}

.adb-carta-vig small {
	color: #8EA3C4;
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.adb-carta-vig strong {
	margin: 2px 0;
	color: #FFFFFF;
	font-size: 0.9rem;
}

.adb-carta-vig em {
	font-size: 0.72rem;
	font-style: normal;
}

.adb-carta-vig b {
	color: var(--vc);
}

.adb-carta-vig.is-soon .adb-carta-vig-ico,
.adb-carta-vig.is-expired .adb-carta-vig-ico {
	animation: adbCartaVig 1.8s ease-in-out infinite;
}

@keyframes adbCartaVig {
	50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--vc) 22%, transparent); }
}

@media (min-width: 901px) and (max-width: 1320px) {
	.adb-carta-vig {
		top: 126px; /* Below the centred «study only» notice, which reaches this side */
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-carta-vig-ico {
		animation: none !important;
	}
}

@media (max-width: 900px) {
	.adb-carta {
		height: clamp(560px, 82vh, 820px);
		border-radius: 18px;
	}

	.adb-carta-bases {
		margin-left: 0;
	}

	.adb-carta-layers {
		top: auto;
		bottom: 72px;
		width: min(290px, calc(100% - 28px));
		max-height: 55%;
	}

	.adb-carta-layers:not(.is-closed) {
		z-index: 820;
	}

	.adb-carta-drawer {
		top: auto;
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-height: 62%;
		z-index: 830;
		animation-name: adbCartaUp;
	}

	@keyframes adbCartaUp {
		from { opacity: 0; transform: translateY(30px); }
	}

	.adb-carta-warn {
		top: auto;
		bottom: 64px;
		left: 14px;
		right: 14px;
		justify-content: center;
		transform: none;
		white-space: normal;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.adb-carta-top {
		top: 10px;
		left: 10px;
		right: 10px;
		gap: 8px;
	}

	.adb-carta-brand {
		flex: 1 1 0;
		min-width: 0;
		padding: 6px 10px 6px 6px;
	}

	.adb-carta-brand > span {
		width: 32px;
		height: 32px;
	}

	.adb-carta-brand > div {
		display: none; /* The panel title already names the chart; the status is in the layer panel */
	}

	.adb-carta-brand {
		flex: 0 0 auto;
	}

	.adb-carta-bases {
		flex: 1 1 0;
	}

	.adb-carta-bases button {
		flex: 1;
	}

	.adb-carta-brand em {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.adb-carta-search {
		flex: 1 1 100%;
		order: 3;
		max-width: none;
	}

	.adb-carta-search input {
		height: 40px;
	}

	.adb-carta-bases button {
		padding: 7px 8px;
		font-size: 0.72rem;
	}

	.adb-carta-tools {
		left: 10px;
		right: 60px;
		bottom: 10px;
		justify-content: space-between;
	}

	.adb-carta-tools button {
		min-width: 0;
		flex: 1;
	}

	.adb-carta-hud {
		top: auto;
		bottom: 118px;
		left: 10px;
		padding: 4px 10px;
		font-size: 0.66rem;
	}

	.adb-carta-hud [data-c-coord] {
		display: none;
	}

	.adb-carta-hud [data-c-zoom] {
		display: none;
	}

	.adb-carta-layers {
		left: 10px;
		bottom: 64px;
	}

	.adb-carta-layers.is-closed {
		width: auto;
	}

	.adb-carta-warn {
		display: none;
	}

	.adb-carta-vig {
		top: 118px;
		right: 10px;
		gap: 8px;
		max-width: calc(100% - 20px);
		padding: 7px 12px 7px 8px;
		border-radius: 12px;
	}

	.adb-carta-vig-ico {
		flex-basis: 30px;
		height: 30px;
		border-radius: 9px;
	}

	.adb-carta-vig small {
		font-size: 0.58rem;
	}

	.adb-carta-vig strong {
		font-size: 0.78rem;
	}

	.adb-carta-vig em {
		font-size: 0.66rem;
	}

	.adb-carta-legend {
		left: 10px;
		right: 10px;
		width: auto;
		bottom: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adb-carta-route,
	.adb-carta-ap::before,
	.adb-carta-prof-c i {
		animation: none;
	}
}
.adb-carta-aip {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 6px;
	padding: 9px 10px;
	border: 1px solid rgba(253, 230, 138, 0.35);
	border-radius: 12px;
	background: rgba(253, 230, 138, 0.08);
	color: #FDE68A;
	text-decoration: none;
}

.adb-carta-aip:hover,
.adb-carta-aip:focus-visible {
	border-color: rgba(253, 230, 138, 0.7);
}

.adb-carta-aip strong {
	display: block;
	color: #FFFFFF;
	font-size: 0.8rem;
}

.adb-carta-aip em {
	display: block;
	color: #C9D6EC;
	font-size: 0.7rem;
	font-style: normal;
	line-height: 1.35;
}
/* Parent organization: Concilio de las Asambleas de Dios (Sobre Nosotros card + footer line) */
.errd-concilio {
	--cc-ink: #0F172A;
	--cc-text: #475569;
	--cc-muted: #64748B;
	--cc-line: #E2E8F0;
	--cc-soft: #F8FAFC;
	--cc-crimson: #E11D48;
	position: relative;
	margin-bottom: 30px;
	background: #FFFFFF;
	border: 1px solid var(--cc-line);
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.45);
	overflow: hidden;
}
.errd-concilio::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 10px;
	background: linear-gradient(180deg, #F43F5E, var(--cc-crimson) 50%, #BE123C);
}
.errd-concilio-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 32px 40px 8px;
}
.errd-concilio-top .errd-section-tag { margin: 0; color: var(--cc-muted); }
.errd-concilio-tools {
	display: flex;
	gap: 6px;
	padding: 4px;
	background: #F1F5F9;
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 999px;
}
.errd-concilio-tools button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cc-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.errd-concilio-tools button:hover,
.errd-concilio-tools button:focus-visible { background: #FFFFFF; color: var(--cc-ink); }
.errd-concilio-tools svg { width: 16px; height: 16px; }
.errd-concilio-main {
	display: flex;
	gap: 36px;
	align-items: flex-start;
	padding: 16px 40px 36px;
}
.errd-concilio-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
}
.errd-concilio-mark {
	display: grid;
	place-items: center;
	width: 160px;
	height: 160px;
	padding: 12px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1px solid var(--cc-line);
	box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
	color: var(--errd-navy-deep);
	transition: transform 0.3s ease;
}
.errd-concilio-mark:hover { transform: scale(1.05); }
.errd-concilio-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.errd-concilio-mark svg { width: 64px; height: 64px; }
.errd-concilio-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #047857;
	font-size: 0.75rem;
	font-weight: 600;
}
.errd-concilio-badge svg { width: 14px; height: 14px; }
.errd-concilio-body { flex: 1; min-width: 0; }
.errd-concilio-body h2 {
	margin: 0 0 16px;
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--cc-ink);
}
.errd-concilio-body h2 span {
	background: linear-gradient(90deg, var(--cc-ink), #1E293B 45%, #E11D48);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.errd-concilio-body > p {
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cc-text);
}
.errd-concilio-body > p strong { font-weight: 600; color: var(--cc-ink); }
.errd-concilio-body > p .is-line {
	text-decoration: underline;
	text-decoration-color: rgba(225, 29, 72, 0.5);
	text-underline-offset: 4px;
}
.errd-concilio-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--cc-line);
}
.errd-concilio-tabs button {
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--cc-text);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.errd-concilio-tabs button:hover { background: #F1F5F9; }
.errd-concilio-tabs button[aria-selected="true"] {
	background: var(--cc-ink);
	color: #FFFFFF;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}
.errd-concilio-panel {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 64px;
	margin-top: 12px;
	padding: 12px;
	border-radius: 12px;
	background: var(--cc-soft);
	border: 1px solid rgba(226, 232, 240, 0.6);
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--cc-text);
	animation: errd-cc-in 0.25s ease;
}
.errd-concilio-panel[hidden] { display: none; }
.errd-concilio-panel svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--cc-crimson); }
@keyframes errd-cc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.errd-concilio-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 20px;
}
.errd-concilio-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 14px 24px;
	border-radius: 16px;
	background: var(--cc-ink);
	color: #FFFFFF;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.errd-concilio-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.errd-concilio-btn:hover,
.errd-concilio-btn:focus-visible { background: #1E293B; color: #FFFFFF; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); }
.errd-concilio-btn:hover svg { transform: translate(2px, -2px); }
.errd-concilio-btn:focus-visible,
.errd-concilio-tools button:focus-visible,
.errd-concilio-tabs button:focus-visible { outline: 3px solid var(--errd-blue-accent); outline-offset: 2px; }
.errd-concilio-stats { display: flex; align-items: center; gap: 16px; margin: 0; text-align: center; }
.errd-concilio-stats > div + div { padding-left: 16px; border-left: 1px solid var(--cc-line); }
.errd-concilio-stats dt { font-size: 0.75rem; font-weight: 500; color: #94A3B8; }
.errd-concilio-stats dd { margin: 0; font-size: 0.875rem; font-weight: 800; color: var(--cc-ink); }
.errd-concilio-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 40px;
	background: rgba(248, 250, 252, 0.8);
	border-top: 1px solid #F1F5F9;
	font-size: 0.75rem;
	color: var(--cc-muted);
}
.errd-concilio-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.errd-concilio-foot svg { width: 14px; height: 14px; }
.errd-concilio-links { display: inline-flex; gap: 16px; }
.errd-concilio-links a { color: inherit; text-decoration: none; }
.errd-concilio-links a:hover { color: var(--cc-ink); text-decoration: underline; }
.errd-concilio-toast {
	position: absolute;
	right: 24px;
	bottom: 60px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--cc-ink);
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 600;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}
.errd-concilio-toast.is-on { opacity: 1; transform: none; }
.errd-footer-concilio { margin-top: 6px; }
.errd-footer-concilio a {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.errd-footer-concilio a:hover { color: #FFFFFF; }
@media (max-width: 860px) {
	.errd-concilio-main { flex-direction: column; align-items: stretch; gap: 28px; }
	.errd-concilio-side { align-self: center; }
}
@media (max-width: 640px) {
	.errd-concilio-top { padding: 24px 20px 4px 28px; }
	.errd-concilio-top .errd-section-tag { font-size: 0.6875rem; letter-spacing: 1.2px; gap: 8px; }
	.errd-concilio-main { padding: 12px 20px 28px 28px; }
	.errd-concilio-foot { padding: 14px 20px 14px 28px; }
	.errd-concilio-mark { width: 144px; height: 144px; }
	.errd-concilio-body h2 { font-size: 1.5rem; }
	.errd-concilio-body > p { font-size: 0.9375rem; }
	.errd-concilio-actions { flex-direction: column; align-items: stretch; }
	.errd-concilio-btn { width: 100%; }
	.errd-concilio-stats { justify-content: space-around; padding-top: 12px; border-top: 1px solid #F1F5F9; }
}
@media (prefers-reduced-motion: reduce) {
	.errd-concilio-mark, .errd-concilio-btn svg, .errd-concilio-toast { transition: none; }
	.errd-concilio-panel { animation: none; }
}
/* Insignias de Alas de Bronce (8): dos recorridos de 4 en orden de avance, con número de paso y una línea que se
 * enciende entre insignias seguidas ya obtenidas. En el teléfono, dos columnas sin línea. */
.adb-ac-track { max-width: 760px; margin: 0 auto; }
.adb-ac-track + .adb-ac-track { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.adb-ac-track h4 { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin: 0 0 16px; color: #E7B37A; font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.adb-ac-track h4 span { color: #94A3B8; font-weight: 600; letter-spacing: 0.5px; text-transform: none; }
.adb-ac-trophy .adb-ac-track .adb-ac-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.adb-ac-trophy .adb-ac-track .adb-ac-badges > li { position: relative; width: auto; }
.adb-ac-track .adb-ac-badges > li:not(:last-child)::after { content: ""; position: absolute; top: 56px; left: calc(50% + 64px); width: calc(100% - 116px); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.adb-ac-track .adb-ac-badges > li.is-link::after { background: linear-gradient(90deg, #A8692E, #E7B37A); box-shadow: 0 0 10px rgba(231, 179, 122, 0.45); }
.adb-ac-step { position: absolute; top: -8px; left: -8px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0E1A30; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14); color: #CBD5E1; font-size: 0.72rem; font-weight: 800; }
.adb-ac-badges li.is-on .adb-ac-step { background: linear-gradient(135deg, #E7B37A, #A8692E); box-shadow: none; color: #1A0F05; }
@media (max-width: 600px) {
	.adb-ac-trophy .adb-ac-track .adb-ac-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adb-ac-track .adb-ac-badges > li::after { display: none; }
}
