/*
Theme Name: Casona Texao
Theme URI: https://github.com/patrickram99/casona-texao
Author: Casona Texao
Description: Tema del Centro Cultural Casona Texao (Arequipa, Perú). Migrado del sitio SvelteKit original conservando colores, tipografías y diseño.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casona-texao-theme
*/

/* ==========================================================================
   Tokens de marca (de frontend/src/app.css del sitio original)
   ========================================================================== */

@font-face {
	font-family: 'Skia';
	src: url('assets/fonts/skia.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-primary: #8B1A1A;
	--color-primary-light: #B5452A;
	--color-accent: #D4956A;
	--color-cream: #F5F0EB;
	--color-dark: #1A1A1A;
	--color-white: #FEFEFE;
	--font-skia: 'Skia', serif;
	--font-body: 'Montserrat', sans-serif;
	--radius: 0.75rem;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-dark);
	background-color: var(--color-cream);
	line-height: 1.6;
	font-size: 16px;
}

h1, h2, h3 { font-family: var(--font-skia); font-weight: 600; }

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

a { color: var(--color-primary); }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

.ct-container {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 640px) { .ct-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ct-container { padding: 0 2rem; } }

.ct-section { padding: 4rem 0; }
.ct-section-white { background: var(--color-white); }
.ct-section-cream { background: var(--color-cream); }

.ct-section-title {
	font-size: 1.875rem;
	color: var(--color-primary);
	margin: 0 0 3rem;
	text-align: center;
}

.ct-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2.5rem;
}
.ct-section-head .ct-section-title { margin: 0; text-align: left; }
.ct-section-link {
	color: var(--color-primary);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none;
	transition: color 0.15s;
}
.ct-section-link:hover { color: var(--color-primary-light); }

.ct-btn {
	display: inline-block;
	padding: 0.75rem 2rem;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.15s;
	border: 2px solid transparent;
	cursor: pointer;
}
.ct-btn-primary { background: var(--color-primary); color: #fff; }
.ct-btn-primary:hover { background: var(--color-primary-light); color: #fff; }
.ct-btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.ct-btn-outline:hover { background: var(--color-primary); color: #fff; }
.ct-btn-white { background: #fff; color: var(--color-primary); }
.ct-btn-white:hover { background: var(--color-cream); }

/* ==========================================================================
   Cabecera / navegación
   ========================================================================== */

.ct-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(245, 240, 235, 0.95);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-sm);
}

.ct-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 4rem;
}

.ct-logo img { height: 2.5rem; width: auto; display: block; }

.ct-nav { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .ct-nav { display: flex; } }

.ct-nav-list, .ct-nav ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ct-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(26, 26, 26, 0.7);
	transition: color 0.15s;
}
.ct-nav a:hover,
.ct-nav .current-menu-item > a,
.ct-nav .current_page_item > a { color: var(--color-primary); }

/* "Eventos" destacado en la navegación (lo principal del sitio). */
.ct-nav-eventos > a,
.ct-mobile-menu .ct-nav-eventos > a { color: var(--color-primary) !important; font-weight: 700; }

.ct-nav-cta {
	background: var(--color-primary);
	color: #fff !important;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: none !important;
	transition: background 0.15s;
}
.ct-nav-cta:hover { background: var(--color-primary-light); }

.ct-icon-btn {
	background: none;
	border: none;
	padding: 0.5rem;
	color: rgba(26, 26, 26, 0.6);
	cursor: pointer;
	transition: color 0.15s;
	line-height: 0;
}
.ct-icon-btn:hover { color: var(--color-primary); }

.ct-mobile-buttons { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .ct-mobile-buttons { display: none; } }

/* Búsqueda desplegable */
.ct-search-bar {
	display: none;
	border-top: 1px solid rgba(26, 26, 26, 0.1);
	background: var(--color-white);
}
.ct-search-bar.is-open { display: block; }
.ct-search-form {
	max-width: 48rem;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	gap: 0.75rem;
}
.ct-search-form input[type="search"] {
	flex: 1;
	padding: 0.65rem 1.25rem;
	background: var(--color-cream);
	border: none;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-family: var(--font-body);
	outline: none;
}
.ct-search-form input[type="search"]:focus { box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.3); }
.ct-search-form button[type="submit"] {
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 0.65rem 1.25rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	font-family: var(--font-body);
}
.ct-search-form button[type="submit"]:hover { background: var(--color-primary-light); }

/* Menú móvil */
.ct-mobile-menu {
	display: none;
	background: var(--color-cream);
	border-top: 1px solid rgba(26, 26, 26, 0.1);
	padding: 1rem;
}
.ct-mobile-menu.is-open { display: block; }
@media (min-width: 768px) { .ct-mobile-menu.is-open { display: none; } }
.ct-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.ct-mobile-menu li a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: rgba(26, 26, 26, 0.7);
}
.ct-mobile-menu .ct-nav-cta {
	display: block;
	text-align: center;
	margin-top: 1rem;
}

/* ==========================================================================
   Héroe estático y carrusel destacado
   ========================================================================== */

.ct-hero {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	color: #fff;
}
.ct-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.35));
}
.ct-hero-content { position: relative; z-index: 1; padding: 4rem 1rem; }
.ct-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 0.75rem; color: #fff; }
.ct-hero p { font-size: clamp(1rem, 2.5vw, 1.35rem); margin: 0 0 2rem; color: rgba(255, 255, 255, 0.85); }

/* Carrusel destacado (posts fijados) */
.ct-featured {
	position: relative;
	overflow: hidden;
	height: 70vh;
	min-height: 420px;
}
.ct-featured-track {
	display: flex;
	height: 100%;
	transition: transform 0.6s ease;
}
.ct-featured-slide {
	flex: 0 0 100%;
	position: relative;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
}
.ct-featured-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.25) 55%, rgba(26, 26, 26, 0.1) 100%);
}
.ct-featured-content {
	position: relative;
	z-index: 1;
	max-width: 80rem;
	margin: 0 auto;
	width: 100%;
	padding: 0 2rem 4rem;
	color: #fff;
}
.ct-featured-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}
.ct-featured-title {
	font-size: clamp(1.6rem, 4vw, 2.75rem);
	color: #fff;
	margin: 0 0 0.75rem;
	line-height: 1.15;
	max-width: 46rem;
}
.ct-featured-excerpt {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.8);
	max-width: 40rem;
	margin: 0 0 1.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ct-featured-dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 2;
}
.ct-featured-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s, transform 0.15s;
}
.ct-featured-dot.is-active { background: #fff; transform: scale(1.2); }

.ct-featured .ct-carousel-btn { z-index: 2; }

/* ==========================================================================
   Nuestros Espacios
   ========================================================================== */

.ct-espacios-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (min-width: 768px) { .ct-espacios-grid { grid-template-columns: repeat(5, 1fr); } }

.ct-espacio {
	text-align: center;
	padding: 1.5rem;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background 0.15s;
	display: block;
}
.ct-espacio:hover { background: var(--color-cream); }
.ct-espacio-icon { font-size: 2.25rem; margin-bottom: 0.75rem; }
.ct-espacio h3 {
	font-size: 1.125rem;
	color: var(--color-dark);
	margin: 0 0 0.25rem;
	transition: color 0.15s;
}
.ct-espacio:hover h3 { color: var(--color-primary); }
.ct-espacio p { font-size: 0.875rem; color: rgba(26, 26, 26, 0.6); margin: 0; }

/* ==========================================================================
   Carrusel horizontal (eventos)
   ========================================================================== */

.ct-carousel { position: relative; }
.ct-carousel-track {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 0.5rem;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.ct-carousel-track::-webkit-scrollbar { display: none; }

.ct-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-dark);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	transition: background 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 4px;
}
.ct-carousel-btn:hover { background: #fff; color: var(--color-primary); }
.ct-carousel-prev { left: -0.75rem; }
.ct-carousel-next { right: -0.75rem; }

/* Tarjeta de evento */
.ct-event-card {
	scroll-snap-align: start;
	flex: 0 0 18rem;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	transition: box-shadow 0.25s;
	display: block;
}
.ct-event-card:hover { box-shadow: var(--shadow-lg); }

.ct-card-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	position: relative;
	background: var(--color-cream);
}
.ct-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
	display: block;
}
.ct-event-card:hover .ct-card-media img,
.ct-article-card:hover .ct-card-media img { transform: scale(1.05); }
.ct-card-media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 3rem;
}
.ct-card-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: rgba(26, 26, 26, 0.7);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.6rem;
	border-radius: 9999px;
}

.ct-card-body { padding: 1rem; }
.ct-card-title {
	font-size: 1rem;
	color: var(--color-dark);
	line-height: 1.35;
	margin: 0 0 0.5rem;
	transition: color 0.15s;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ct-event-card:hover .ct-card-title,
.ct-article-card:hover .ct-card-title { color: var(--color-primary); }
.ct-card-excerpt {
	font-size: 0.75rem;
	color: rgba(26, 26, 26, 0.5);
	margin: 0 0 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ct-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.ct-card-date { font-size: 0.75rem; color: rgba(26, 26, 26, 0.4); }
.ct-card-time { color: var(--color-primary); font-weight: 500; }
.ct-card-more { font-size: 0.75rem; color: var(--color-primary); font-weight: 500; }

/* Tarjeta de artículo (blog) */
.ct-article-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 768px) { .ct-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ct-article-grid { grid-template-columns: repeat(3, 1fr); } }

.ct-article-card {
	display: block;
	background: var(--color-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	transition: box-shadow 0.25s, transform 0.25s;
}
.ct-article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ct-article-card .ct-card-body { padding: 1.25rem; }
.ct-article-card .ct-card-title { font-size: 1.125rem; }
.ct-card-category {
	display: inline-block;
	background: rgba(139, 26, 26, 0.1);
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	margin-bottom: 0.75rem;
}

/* ==========================================================================
   Galería
   ========================================================================== */

.ct-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}
@media (min-width: 768px) { .ct-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ct-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.ct-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 0.5rem;
	display: block;
	aspect-ratio: 1;
}
.ct-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
	display: block;
}
.ct-gallery-item:hover img { transform: scale(1.1); }
@media (min-width: 768px) {
	.ct-gallery-grid-featured .ct-gallery-item-large { grid-column: span 2; grid-row: span 2; }
}
.ct-gallery-caption {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 1rem;
	background: linear-gradient(to top, rgba(26, 26, 26, 0.6), transparent);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity 0.3s;
}
.ct-gallery-item:hover .ct-gallery-caption { opacity: 1; }

/* Lightbox mínimo */
.ct-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	cursor: zoom-out;
}
.ct-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 0.5rem;
	box-shadow: var(--shadow-lg);
}
.ct-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
}

/* ==========================================================================
   Misión / Visión / Valores + Reconocimientos
   ========================================================================== */

.ct-mvv-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) { .ct-mvv-grid { grid-template-columns: repeat(3, 1fr); } }

.ct-mvv-card {
	text-align: center;
	padding: 2rem;
	background: var(--color-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.ct-mvv-icon {
	width: 4rem;
	height: 4rem;
	background: rgba(139, 26, 26, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	color: var(--color-primary);
}
.ct-mvv-card h3 { font-size: 1.25rem; color: var(--color-primary); margin: 0 0 0.75rem; }
.ct-mvv-card p { color: rgba(26, 26, 26, 0.7); font-size: 0.875rem; line-height: 1.7; margin: 0; }

/* Sobre Casona Texao */
.ct-historia { max-width: 56rem; margin: 0 auto; }
.ct-historia blockquote {
	font-size: 1.125rem;
	font-style: italic;
	color: rgba(26, 26, 26, 0.7);
	border-left: 4px solid var(--color-accent);
	padding-left: 1.5rem;
	margin: 0 0 0.75rem;
	line-height: 1.75;
}
.ct-historia-cite {
	font-size: 0.75rem;
	color: rgba(26, 26, 26, 0.4);
	padding-left: 1.5rem;
	margin-bottom: 2.5rem;
	display: block;
}
.ct-historia p { color: rgba(26, 26, 26, 0.7); line-height: 1.75; }

/* Reconocimientos */
.ct-recon {
	background: var(--color-primary);
	color: #fff;
}
.ct-recon-grid {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	max-width: 64rem;
	margin: 0 auto;
}
@media (min-width: 768px) {
	.ct-recon-grid { flex-direction: row; align-items: center; gap: 4rem; }
}
.ct-recon-item { flex: 1; }
.ct-recon-label {
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 0.5rem;
}
.ct-recon-item h3 { font-size: 1.5rem; color: #fff; margin: 0 0 0.75rem; }
.ct-recon-item p { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; line-height: 1.7; margin: 0 0 1rem; }
.ct-recon-link { color: var(--color-accent); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.ct-recon-link:hover { color: #fff; }
.ct-recon-divider { width: 1px; height: 7rem; background: rgba(255, 255, 255, 0.2); display: none; }
@media (min-width: 768px) { .ct-recon-divider { display: block; } }
.ct-recon-cert { margin: 3rem auto 0; max-width: 28rem; }
.ct-recon-cert img { border-radius: 0.5rem; opacity: 0.9; width: 100%; height: auto; }

/* Aliados */
.ct-aliados-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	text-align: center;
}
@media (min-width: 768px) { .ct-aliados-grid { grid-template-columns: repeat(4, 1fr); } }
.ct-aliado {
	padding: 1.25rem;
	background: var(--color-white);
	border-radius: var(--radius);
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(26, 26, 26, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5rem;
}

/* Mapa */
.ct-map {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.ct-map iframe { display: block; }
.ct-map-address {
	text-align: center;
	color: rgba(26, 26, 26, 0.6);
	font-size: 0.875rem;
	margin-top: 1rem;
}

/* ==========================================================================
   Artículo individual / evento individual
   ========================================================================== */

.ct-single-hero {
	position: relative;
	height: 45vh;
	background-size: cover;
	background-position: center;
	background-color: var(--color-dark);
}
@media (min-width: 768px) { .ct-single-hero { height: 55vh; } }
.ct-single-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.3) 60%, rgba(26, 26, 26, 0.1));
}

.ct-single-wrap {
	max-width: 64rem;
	margin: -6rem auto 0;
	padding: 0 1.5rem 4rem;
	position: relative;
	z-index: 10;
}

.ct-breadcrumb { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1rem; }
.ct-breadcrumb a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.15s; }
.ct-breadcrumb a:hover { color: #fff; }
.ct-breadcrumb .sep { margin: 0 0.5rem; }

.ct-single-card {
	background: var(--color-white);
	border-radius: 1rem;
	box-shadow: var(--shadow-lg);
	padding: 2rem;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.ct-single-card { padding: 3rem; display: flex; gap: 3rem; }
}
.ct-single-main { flex: 1; min-width: 0; }
.ct-single-aside { display: none; }
@media (min-width: 768px) {
	.ct-single-aside { display: block; width: 12rem; flex-shrink: 0; padding-top: 0.5rem; }
}
.ct-single-aside-inner { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ct-aside-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(26, 26, 26, 0.4);
	margin: 0 0 0.25rem;
}
.ct-aside-value { font-size: 0.875rem; color: rgba(26, 26, 26, 0.8); font-weight: 500; margin: 0; }
.ct-aside-value a { color: var(--color-primary); text-decoration: none; }
.ct-aside-time { color: var(--color-primary); font-weight: 500; font-size: 0.875rem; margin: 0.1rem 0 0; }
.ct-aside-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.ct-aside-tag {
	font-size: 0.75rem;
	background: var(--color-cream);
	color: rgba(26, 26, 26, 0.6);
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	text-decoration: none;
}
.ct-aside-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #15803d;
	font-weight: 500;
	text-decoration: none;
}
.ct-aside-whatsapp:hover { color: #166534; }

.ct-single-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-accent);
	margin-bottom: 1rem;
	text-decoration: none;
}
.ct-single-title {
	font-size: 1.875rem;
	color: var(--color-dark);
	line-height: 1.2;
	margin: 0 0 1.5rem;
}
@media (min-width: 768px) { .ct-single-title { font-size: 2.25rem; } }
.ct-single-excerpt {
	color: rgba(26, 26, 26, 0.6);
	font-size: 1.125rem;
	line-height: 1.75;
	border-left: 4px solid var(--color-accent);
	padding-left: 1.25rem;
	font-style: italic;
	margin: 0 0 2rem;
}

/* Prosa (contenido de artículos) — de app.css original */
.prose { max-width: none; }
.prose h1 { font-size: 2.25rem; font-weight: 700; margin: 0 0 1rem; font-family: var(--font-skia); color: var(--color-primary); }
.prose h2 { font-size: 1.75rem; font-weight: 600; margin: 2rem 0 0.75rem; font-family: var(--font-skia); color: var(--color-primary); }
.prose h3 { font-size: 1.375rem; font-weight: 600; margin: 1.5rem 0 0.5rem; font-family: var(--font-skia); }
.prose p { margin: 0 0 1rem; line-height: 1.75; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.25rem; }
.prose blockquote { border-left: 4px solid var(--color-accent); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: #555; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose img { max-width: 100%; border-radius: 0.5rem; margin: 1rem 0; height: auto; }

/* Galería dentro del artículo/evento */
.ct-single-gallery { margin-top: 2.5rem; }
.ct-single-gallery h2 { font-size: 1.5rem; color: var(--color-primary); margin: 0 0 1.25rem; }

/* Detalles del evento (banda superior) */
.ct-event-details {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	background: var(--color-cream);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}
.ct-event-detail { min-width: 8rem; }

/* ==========================================================================
   Listados (blog, archivo, búsqueda)
   ========================================================================== */

.ct-page-header { padding: 3.5rem 0 2.5rem; text-align: center; }
.ct-page-header h1 { font-size: 2.25rem; color: var(--color-primary); margin: 0 0 0.5rem; }
.ct-page-header p { color: rgba(26, 26, 26, 0.6); margin: 0; }

.ct-cat-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.5rem 0 0;
}
.ct-cat-chip {
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
	background: var(--color-white);
	color: rgba(26, 26, 26, 0.7);
	text-decoration: none;
	border: 1px solid rgba(26, 26, 26, 0.1);
	transition: all 0.15s;
}
.ct-cat-chip:hover, .ct-cat-chip.is-active {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.ct-pagination { margin-top: 3rem; text-align: center; }
.ct-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0 0.2rem;
	border-radius: 9999px;
	background: var(--color-white);
	color: var(--color-dark);
	text-decoration: none;
	font-size: 0.875rem;
	transition: all 0.15s;
}
.ct-pagination .page-numbers.current,
.ct-pagination .page-numbers:hover { background: var(--color-primary); color: #fff; }

.ct-empty {
	text-align: center;
	color: rgba(26, 26, 26, 0.5);
	padding: 4rem 0;
}

/* ==========================================================================
   Páginas genéricas
   ========================================================================== */

.ct-page-content {
	max-width: 56rem;
	margin: 0 auto;
	background: var(--color-white);
	border-radius: 1rem;
	box-shadow: var(--shadow-sm);
	padding: 2rem;
}
@media (min-width: 768px) { .ct-page-content { padding: 3rem; } }

/* ==========================================================================
   Pie de página
   ========================================================================== */

.ct-footer {
	background: var(--color-dark);
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0;
}
.ct-footer-inner { padding: 3rem 0 1.5rem; }
.ct-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 768px) { .ct-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.ct-footer img.ct-footer-logo { height: 3rem; width: auto; margin-bottom: 1rem; }
.ct-footer p { font-size: 0.875rem; line-height: 1.7; }
.ct-footer h4 { font-family: var(--font-skia); color: #fff; font-size: 1.125rem; margin: 0 0 1rem; }
.ct-footer ul { list-style: none; margin: 0; padding: 0; }
.ct-footer li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.ct-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.15s; }
.ct-footer a:hover { color: var(--color-accent); }
.ct-footer-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-accent) !important;
}
.ct-footer-whatsapp:hover { color: #fff !important; }
.ct-footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.ct-footer-social a { line-height: 0; }
.ct-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	text-align: center;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.4);
}

/* Botón flotante de WhatsApp */
.ct-whatsapp-float {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 60;
	width: 3.5rem;
	height: 3.5rem;
	background: #25d366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	transition: transform 0.15s, box-shadow 0.15s;
}
.ct-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
