/* ============================================
   CRÓNICAS DEL ESPEJO — CSS GLOBAL v1.0
   Tokens de identidad visual + componentes base
   ============================================ */
/* ============================================
   HERO SECTION - Estilos épicos
   ============================================ */
#hero-section {
	background-color: #0d0905 !important;
	background-image: none !important;
}

#hero-section * {
	background-image: none !important;
}

#hero-h1 {
	color: #ffffff !important;
}

/* Eyebrow */
#hero-section .elementor-widget-heading:first-child h3,
#hero-section .elementor-widget-heading:first-child h6 {
	color: #c9a227 !important;
	letter-spacing: .15em !important;
	font-size: 13px !important;
	text-transform: uppercase !important;
}

/* Subtitulo */
#hero-section .elementor-widget-text-editor p,
#hero-section .elementor-widget-heading:last-of-type h3 {
	color: #e8e0d0 !important;
	font-size: 18px !important;
}

/* --- TOKENS --- */
:root {
}

/* --- BASE --- */
body {
	background: var(--dark-0) !important;
	color: #e9dcc0 !important;
	font-size: 16px;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .font-epic {
	font-family: 'Cinzel', Georgia, serif !important;
}

body, p, li, a, span, input, button, textarea, select {
	font-family: 'Raleway', 'Lato', sans-serif;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--gold);
}

/* --- BOTONES --- */
.cde-btn-primary,
.elementor-button.cde-btn-primary {
	background: var(--gold) !important;
	color: var(--dark-0) !important;
	border: 1px solid var(--gold) !important;
	border-radius: 999px !important;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	padding: 14px 28px !important;
	box-shadow: var(--shadow-gold);
	transition: opacity .2s;
}

.cde-btn-primary:hover {
	opacity: .85;
}

.cde-btn-secondary,
.elementor-button.cde-btn-secondary {
	background: transparent !important;
	color: var(--gold) !important;
	border: 1px solid var(--gold) !important;
	border-radius: 999px !important;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 700;
	padding: 14px 28px !important;
	transition: background .2s, color .2s;
}

.cde-btn-secondary:hover {
	background: var(--gold) !important;
	color: var(--dark-0) !important;
}

/* --- ANNOUNCEMENT BAR --- */
.cde-announcement {
	background: var(--gold);
	color: var(--dark-0);
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 48px 10px 16px;
	position: relative;
	z-index: 99999;
	width: 100%;
	box-sizing: border-box;
}

.cde-announcement a {
	color: var(--dark-0) !important;
	text-decoration: none;
	font-weight: 700;
}

.cde-announcement__close {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	opacity: .7;
	transition: opacity .2s;
}

.cde-announcement__close:hover {
	opacity: 1;
}

/* --- HEADER STICKY --- */
.site-header,
header.wp-block-template-part {
	position: sticky !important;
	top: 0 !important;
	z-index: 9998 !important;
	background: rgba(8,6,4,.96) !important;
	border-bottom: 1px solid var(--gold-dim) !important;
	transition: box-shadow .3s;
}

.site-header.scrolled {
	box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* Nav links */
.wp-block-navigation a,
.main-navigation a {
	color: var(--text-muted) !important;
	transition: color .2s;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item a,
.main-navigation a:hover {
	color: var(--gold) !important;
}

/* Logo max height */
.wp-block-site-logo img,
.custom-logo {
	max-height: 48px;
	width: auto;
}

/* --- BADGE --- */
.cde-badge {
	display: inline-block;
	border: 1px solid var(--border-gold-bright);
	color: var(--gold-pale);
	background: rgba(201,162,39,.08);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .09em;
	margin-bottom: 20px;
	font-family: 'Raleway', sans-serif;
}

/* --- HERO --- */
.cde-hero {
	background: radial-gradient(circle at 72% 28%, rgba(201,162,39,.09), transparent 30%), linear-gradient(180deg, var(--dark-1) 0%, var(--dark-0) 100%) !important;
	padding: 84px 0 56px !important;
	position: relative;
	overflow: hidden;
}

.cde-hero::before {
	content: '';
	position: absolute;
	pointer-events: none;
	background-image: linear-gradient(rgba(201,162,39,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201,162,39,.04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 80%);
}

.cde-hero-title {
	font-size: clamp(32px, 5vw, 56px) !important;
	line-height: 1.1 !important;
	color: var(--gold-pale) !important;
	margin-bottom: 12px !important;
	font-family: 'Cinzel', Georgia, serif !important;
}

.cde-hero-subtitle {
	font-style: italic;
	color: var(--gold-muted) !important;
	margin-bottom: 18px !important;
	font-size: 20px;
}

.cde-hero-copy {
	color: #d8c7a3 !important;
	max-width: 540px;
	margin-bottom: 28px !important;
	font-size: 17px;
	line-height: 1.75;
}

.cde-proof-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 22px;
	list-style: none;
	padding: 0;
}

.cde-proof-item {
	color: var(--gold-pale);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cde-proof-item::before {
	content: '✦';
	color: var(--gold);
	font-size: 10px;
}

/* Book card (columna derecha del hero) */
.cde-book-card {
	background: linear-gradient(160deg, var(--dark-3), var(--dark-4));
	border: 1px solid var(--border-gold);
	border-radius: 20px;
	padding: 24px;
	box-shadow: var(--shadow-gold);
	text-align: center;
	transition: border-color .3s;
}

.cde-book-card:hover {
	border-color: var(--border-gold-bright);
}

.cde-book-card img {
	border-radius: 8px;
	max-width: 100%;
	box-shadow: 0 8px 32px rgba(0,0,0,.6);
	margin-bottom: 16px;
}

.cde-book-price {
	font-family: 'Cinzel', serif;
	color: var(--gold);
	font-size: 28px;
	font-weight: 700;
	margin: 10px 0 16px;
}

/* --- TRUST BAR --- */
.cde-trustbar {
	background: var(--dark-0) !important;
	border-top: 1px solid var(--gold-dim);
	border-bottom: 1px solid var(--gold-dim);
	padding: 24px 0 !important;
}

.cde-trust-number {
	color: var(--gold);
	font-family: 'Cinzel', Georgia, serif;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1;
	display: block;
	font-weight: 700;
}

.cde-trust-label {
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .09em;
	font-size: 11px;
	margin-top: 6px;
	display: block;
}

/* --- STICKY BOTTOM BAR --- */
.cde-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9997;
	background: rgba(8,6,4,.97);
	border-top: 1px solid var(--gold-dim);
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transform: translateY(100%);
	transition: transform .35s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}

.cde-sticky-bar.visible {
	transform: translateY(0);
}

.cde-sticky-bar__text {
	color: #e9dcc0;
}

.cde-sticky-bar__subtitle {
	font-size: 12px;
	color: var(--text-muted);
}

.cde-sticky-bar__title {
	font-family: 'Cinzel', serif;
	color: var(--gold-pale);
	font-size: 15px;
}

.cde-sticky-bar__close {
	cursor: pointer;
	color: var(--text-muted);
	font-size: 20px;
	padding: 4px 8px;
	flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
	.cde-announcement {
		font-size: 11px;
		padding-right: 40px;
	}
	
	.cde-hero {
		padding: 48px 0 32px !important;
	}
	
	.cde-hero-subtitle {
		font-size: 16px;
	}
	
	.cde-proof-list {
		flex-direction: column;
		gap: 8px;
	}
	
	.cde-sticky-bar {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
		padding: 10px 16px;
	}
}

/* ============================================
   SECCIÓN F: SEARCHWP — Estilos de búsqueda
   Fondo oscuro + títulos dorados coherentes con CDE
   ============================================ */
/* Panel de resultados de búsqueda en vivo */
.searchwp-live-search-results {
	background-color: #0d0d0d !important;
	border: 1px solid #c9a84c !important;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.6);
	color: #f0e6c8;
}

/* Cada resultado individual */
.searchwp-live-search-result {
	border-bottom: 1px solid rgba(201,168,76,0.2) !important;
	padding: 12px 16px !important;
	transition: background .2s ease;
}

.searchwp-live-search-result:hover {
	background-color: rgba(201,168,76,0.08) !important;
}

/* Título del resultado */
.searchwp-live-search-result a,
.searchwp-live-search-result .title {
	color: #c9a84c !important;
	font-family: 'Cinzel', serif;
	font-size: 15px;
	text-decoration: none;
}

.searchwp-live-search-result a:hover {
	color: #e8d4a0 !important;
	text-decoration: underline;
}

/* Descripción/extracto del resultado */
.searchwp-live-search-result .excerpt,
.searchwp-live-search-result p {
	color: #b0a090 !important;
	font-size: 13px;
	margin: 4px 0 0;
}

/* Imagen del resultado */
.searchwp-live-search-result img {
	border-radius: 3px;
	border: 1px solid rgba(201,168,76,0.3);
}

/* Mensaje sin resultados */
.searchwp-live-search-no-results {
	background-color: #0d0d0d;
	color: #b0a090;
	padding: 16px;
	text-align: center;
	font-style: italic;
}

/* ============================================
   SECCIÓN G: ACCESIBILIDAD WCAG 2.1 AA
   Skip-to-content + focus visible + ARIA mejoras
   ============================================ */
/* Skip to content link (oculto visualmente, accesible por teclado) */
.skip-link,
a.skip-to-content {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: -999;
}

.skip-link:focus,
a.skip-to-content:focus {
	position: fixed;
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	padding: 12px 24px;
	background: #c9a84c;
	color: #0d0d0d;
	font-weight: bold;
	font-size: 16px;
	z-index: 99999;
	text-decoration: none;
	border-radius: 0 0 4px 0;
	overflow: visible;
}

/* Focus visible mejorado para navegación por teclado */
:focus-visible {
	outline: 3px solid #c9a84c !important;
	outline-offset: 2px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #c9a84c !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 4px rgba(201,168,76,0.25);
}

/* Asegurar contraste mínimo en textos secundarios */
.entry-meta,
.post-date,
.category-label {
	color: #b0a090 !important;
/* ratio &gt; 4.5:1 sobre fondo #0d0d0d */
}

/* Menú móvil accesible */
@media (max-width: 768px) {
	nav[aria-label],
		  .nav-menu {
		position: relative;
	}
	
	.menu-toggle[aria-expanded] {
		display: inline-flex;
		align-items: center;
	}
}

/* Títulos de página: la estructura se resuelve mediante plantillas, sin ocultación global. */
.page-id-26 main#wp--skip-link--target {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* === HERO: FONDO OSCURO COHERENTE === */
.page-id-26 .wp-site-blocks &gt; .wp-block-group {
	background-color: #0d0905 !important;
}

/* Hero: texto 'O EMPIEZA GRATIS' - mejorar separador */
.e-con-inner .elementor-divider-separator {
	border-color: rgba(201, 162, 39, 0.3) !important;
}

/* Hero: color eyebrow dorado */
.e-con.e-parent &gt; .e-con-inner &gt; .elementor-widget-heading:first-child h3 {
	color: #c9a227 !important;
}

/* === HERO FONDO: forzar oscuro en contenedor principal === */
.page-id-26 main#wp--skip-link--target {
	background-color: #0d0905 !important;
}

.page-id-26 .wp-site-blocks {
	background-color: #0d0905 !important;
}

.page-id-26 body {
	background-color: #0d0905 !important;
}

/* Eliminar border-radius del bloque blanco del hero */
.page-id-26 .elementor {
	background-color: transparent !important;
}

/* === HERO ID: fondo oscuro con maxima especificidad === */
#hero-section {
	background-color: #0d0905 !important;
	background: #0d0905 !important;
}

#hero-section &gt; .e-con-inner {
	background-color: #0d0905 !important;
}

/* Separador dorado sutil en el hero */
#hero-section .elementor-divider-separator {
	border-color: rgba(201, 162, 39, 0.35) !important;
}

/* Forzar fondo oscuro en TODOS los hijos del hero */
#hero-section,
#hero-section * {
}

/* Forzar via selector directo al .elementor wrapper */
.elementor-26 {
	background-color: #0d0905 !important;
}

/* === HERO: ELIMINAR IMAGEN WIREFRAME DE FONDO (template Elementor) === */
#hero-section .elementor-motion-effects-layer {
	background-image: none !important;
	background-color: #0d0905 !important;
}

#hero-section .elementor-background-overlay {
	background-color: transparent !important;
	opacity: 0 !important;
}

/* Eliminar cualquier imagen de fondo del contenedor hero */
[id="hero-section"] {
	background-image: none !important;
}

/* Forzar fondo oscuro en todo el hero */
.elementor-section:first-child,
.elementor-section:first-child .elementor-container,
.elementor-section:first-child .elementor-column,
.elementor-section:first-child .elementor-widget-wrap,
.elementor-section:first-child .e-con,
.e-con.e-parent:first-of-type {
	background-color: #0d0905 !important;
	background-image: none !important;
}

/* Override fondo hero-section */
#hero-section,
#hero-section .e-con,
#hero-section .e-con-inner,
#hero-section &gt; .e-con {
	background-color: #0d0905 !important;
	background-image: none !important;
}

/* Background override con maxima especificidad */
#hero-section.elementor-section,
#hero-section.e-con,
.elementor-section#hero-section,
.e-con#hero-section {
	background-color: #0d0905 !important;
	background-image: none !important;
}

/* Targeting por data-id del contenedor hero si tiene CSS inline */
[id="hero-section"] {
	background-color: #0d0905 !important;
	background-image: none !important;
}

[id="hero-section"] &gt; .e-con-inner,
[id="hero-section"] &gt; .elementor-container {
	background-color: #0d0905 !important;
	background-image: none !important;
}

/* === PDE AJUSTES AUTORIZADOS 2026-08-31 === */
@media (max-width: 767px) {
	header.wp-block-template-part .has-small-font-size.wp-block-group {
		padding: 10px 16px !important;
	}
	
	header.wp-block-template-part .has-small-font-size.wp-block-group p.wp-block-paragraph {
		font-size: 14px !important;
		line-height: 1.2 !important;
		text-align: center;
		white-space: nowrap;
	}
	
	.page-id-26 #hero-section h1.elementor-heading-title {
		font-size: 37px !important;
		line-height: 1.1 !important;
	}
	
	.page-id-590 main table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Contacto: contraste con la plantilla sin título automático */
body.page-id-54,
body.page-id-54 .wp-site-blocks {
	background-color: #0d0905 !important;
}

/* Cookies: contraste de la tabla y del contenido legal */
body.page-id-590,
body.page-id-590 .wp-site-blocks {
	background-color: #0d0905 !important;
}