/* =====================================================================
   Rostros del Carmelo — Estilos
   ===================================================================== */

/* --- Variables -------------------------------------------------------- */
:root {
	--rc-brown:      #5C3317;
	--rc-brown-dk:   #3D1F0B;
	--rc-gold:       #C9A84C;
	--rc-gold-lt:    #E8D090;
	--rc-cream:      #FAF6EF;
	--rc-parchment:  #F0E8D5;
	--rc-text:       #2A1A0E;
	--rc-text-muted: #7A5A42;
	--rc-border:     rgba(92, 51, 23, 0.14);
	--rc-shadow:     0 4px 24px rgba(44, 24, 8, 0.08);
	--rc-radius:     6px;
	--rc-max:        1200px;
	--rc-narrow:     800px;
	--f-head:        'Playfair Display', Georgia, serif;
	--f-body:        'Lora', Georgia, serif;
	--f-ui:          -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Containers -------------------------------------------------------- */
.rc-container {
	max-width: var(--rc-max);
	margin: 0 auto;
	padding: 0 24px;
}

.rc-container-narrow {
	max-width: var(--rc-narrow);
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Ornamento --------------------------------------------------------- */
.rc-ornamento {
	color: var(--rc-gold);
	letter-spacing: 10px;
	font-size: 14px;
	margin-bottom: 12px;
}

/* =====================================================================
   ARCHIVO — Hero
   ===================================================================== */

.rc-wrap { background: var(--rc-cream); }

.rc-hero {
	position: relative;
	background: linear-gradient(150deg, var(--rc-brown-dk) 0%, var(--rc-brown) 55%, #7A4A28 100%);
	padding: 80px 24px 96px;
	text-align: center;
	overflow: hidden;
}

/* subtle cross-hatch texture */
.rc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.rc-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 700px;
	margin: 0 auto;
}

.rc-hero__titulo {
	font-family: var(--f-head);
	font-size: clamp(2rem, 5vw, 3.6rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.rc-hero__subtitulo {
	font-family: var(--f-head);
	font-size: clamp(1rem, 2.5vw, 1.4rem);
	font-style: italic;
	color: var(--rc-gold-lt);
	margin: 0 0 28px;
	letter-spacing: 0.04em;
}

.rc-hero__intro {
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.78);
	margin: 0;
}

/* =====================================================================
   ARCHIVO — Category Nav
   ===================================================================== */

.rc-cat-nav {
	background: #fff;
	border-bottom: 1px solid var(--rc-border);
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 2px 8px rgba(44, 24, 8, 0.06);
}

.rc-cat-nav__inner {
	max-width: var(--rc-max);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rc-cat-nav__inner::-webkit-scrollbar { display: none; }

.rc-cat-nav__item {
	font-family: var(--f-ui);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--rc-text-muted);
	text-decoration: none;
	padding: 16px 18px;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.rc-cat-nav__item:hover,
.rc-cat-nav__item.is-active {
	color: var(--rc-brown);
	border-bottom-color: var(--rc-gold);
}

/* =====================================================================
   ARCHIVO — Main
   ===================================================================== */

.rc-archive-main {
	padding: 64px 0 80px;
	background: var(--rc-cream);
	min-height: 400px;
}

.rc-archive-header {
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--rc-border);
}

.rc-archive-header__title {
	font-family: var(--f-head);
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--rc-brown-dk);
	margin: 0 0 8px;
}

.rc-archive-header__desc {
	font-family: var(--f-body);
	font-size: 1rem;
	color: var(--rc-text-muted);
	margin: 0;
}

/* =====================================================================
   Grid
   ===================================================================== */

.rc-grid {
	display: grid;
	gap: 28px;
}

.rc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rc-cols-1 { grid-template-columns: 1fr; }

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

@media (max-width: 600px) {
	.rc-cols-3,
	.rc-cols-2 { grid-template-columns: 1fr; }
}

/* =====================================================================
   Cards
   ===================================================================== */

.rc-card {
	background: #fff;
	border-radius: var(--rc-radius);
	overflow: hidden;
	box-shadow: var(--rc-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rc-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 40px rgba(44, 24, 8, 0.14);
}

.rc-card__img-link { display: block; overflow: hidden; }

.rc-card__img {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rc-parchment);
}

.rc-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.rc-card:hover .rc-card__img img { transform: scale(1.05); }

.rc-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--rc-brown);
	color: #fff;
	font-family: var(--f-ui);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2px;
}

.rc-card__body {
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.rc-card__title {
	font-family: var(--f-head);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rc-text);
	margin: 0 0 10px;
}

.rc-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.rc-card__title a:hover { color: var(--rc-brown); }

.rc-card__resumen {
	font-family: var(--f-body);
	font-size: 0.9rem;
	line-height: 1.65;
	color: var(--rc-text-muted);
	margin: 0 0 16px;
	flex: 1;
}

.rc-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--rc-border);
	margin-top: auto;
}

.rc-card__meta {
	font-family: var(--f-ui);
	font-size: 0.76rem;
	color: var(--rc-text-muted);
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.rc-sep { opacity: 0.35; }

.rc-card__link {
	font-family: var(--f-ui);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--rc-brown);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.rc-card__link:hover { color: var(--rc-gold); }

/* Small card variant */
.rc-card--sm .rc-card__title { font-size: 1rem; }
.rc-card--sm .rc-card__body  { padding: 18px; }

/* =====================================================================
   SINGLE — Hero
   ===================================================================== */

.rc-single-wrap { background: var(--rc-cream); }

.rc-single-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	background: var(--rc-brown-dk);
	overflow: hidden;
}

.rc-single-hero__bg {
	position: absolute;
	inset: 0;
}

.rc-single-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.rc-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(44, 24, 8, 0.1) 0%,
		rgba(44, 24, 8, 0.45) 35%,
		rgba(44, 24, 8, 0.9) 100%
	);
}

.rc-single-hero__content {
	position: relative;
	z-index: 2;
	max-width: 860px;
	margin: 0 auto;
	width: 100%;
	padding: 60px 24px 56px;
}

.rc-single__cat {
	display: inline-block;
	font-family: var(--f-ui);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rc-gold);
	border: 1px solid var(--rc-gold);
	padding: 4px 12px;
	border-radius: 2px;
	text-decoration: none;
	margin-bottom: 20px;
	transition: background 0.2s, color 0.2s;
}

.rc-single__cat:hover {
	background: var(--rc-gold);
	color: var(--rc-brown-dk);
}

.rc-single__titulo {
	font-family: var(--f-head);
	font-size: clamp(1.8rem, 4.5vw, 3.2rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 14px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.rc-single__subtitulo {
	font-family: var(--f-head);
	font-size: clamp(1rem, 2vw, 1.3rem);
	font-style: italic;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 24px;
}

.rc-single__meta {
	font-family: var(--f-ui);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.6);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* =====================================================================
   SINGLE — Body
   ===================================================================== */

.rc-single-body { padding: 60px 0; }

.rc-breadcrumb {
	font-family: var(--f-ui);
	font-size: 0.8rem;
	color: var(--rc-text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.rc-breadcrumb a { color: var(--rc-brown); text-decoration: none; }
.rc-breadcrumb a:hover { text-decoration: underline; }

/* Article typography */
.rc-single__content {
	font-family: var(--f-body);
	font-size: 1.1rem;
	line-height: 1.9;
	color: var(--rc-text);
}

.rc-single__content h2 {
	font-family: var(--f-head);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--rc-brown-dk);
	margin: 2.5em 0 0.7em;
	line-height: 1.2;
}

.rc-single__content h3 {
	font-family: var(--f-head);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--rc-brown);
	margin: 2em 0 0.6em;
}

.rc-single__content p { margin: 0 0 1.5em; }

.rc-single__content blockquote {
	margin: 2em 0;
	padding: 20px 28px;
	border-left: 4px solid var(--rc-gold);
	background: var(--rc-parchment);
	border-radius: 0 4px 4px 0;
	font-style: italic;
	font-size: 1.12em;
	color: var(--rc-brown-dk);
}

.rc-single__content blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 0.85em;
	font-style: normal;
	color: var(--rc-text-muted);
}

.rc-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1.5em 0;
}

.rc-single__content figcaption {
	font-family: var(--f-ui);
	font-size: 0.82rem;
	color: var(--rc-text-muted);
	text-align: center;
	margin-top: -1em;
	margin-bottom: 1.5em;
}

.rc-single__content a {
	color: var(--rc-brown);
	text-decoration-color: var(--rc-gold);
}

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

.rc-single__content ul,
.rc-single__content ol {
	padding-left: 1.6em;
	margin: 0 0 1.5em;
}

.rc-single__content li { margin-bottom: 0.5em; }

/* =====================================================================
   SINGLE — Share Buttons
   ===================================================================== */

.rc-share {
	margin: 48px 0;
	padding: 28px 32px;
	background: var(--rc-parchment);
	border-radius: var(--rc-radius);
	border: 1px solid var(--rc-border);
}

.rc-share__label {
	font-family: var(--f-ui);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rc-text-muted);
	margin: 0 0 14px;
}

.rc-share__btns {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.rc-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: var(--f-ui);
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.2s, opacity 0.2s;
}

.rc-share-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.rc-share-btn:hover { transform: translateY(-2px); opacity: 0.88; }

.rc-share-btn--wa   { background: #25D366; color: #fff; }
.rc-share-btn--fb   { background: #1877F2; color: #fff; }
.rc-share-btn--tw   { background: #0f0f0f; color: #fff; }
.rc-share-btn--copy { background: var(--rc-brown); color: #fff; }
.rc-share-btn--copy.is-copied { background: #2a7a45; }

/* =====================================================================
   SINGLE — Prev / Next Navigation
   ===================================================================== */

.rc-nav-posts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 48px 0;
	padding-top: 32px;
	border-top: 1px solid var(--rc-border);
}

.rc-nav-posts__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--rc-border);
	border-radius: var(--rc-radius);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.rc-nav-posts__item:hover {
	border-color: var(--rc-gold);
	box-shadow: 0 4px 16px rgba(44, 24, 8, 0.08);
}

.rc-nav-posts__item--next { text-align: right; }

.rc-nav-posts__label {
	font-family: var(--f-ui);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rc-gold);
}

.rc-nav-posts__titulo {
	font-family: var(--f-head);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--rc-brown-dk);
	line-height: 1.3;
}

@media (max-width: 540px) {
	.rc-nav-posts                         { grid-template-columns: 1fr; }
	.rc-nav-posts__item--next             { text-align: left; }
}

/* =====================================================================
   SINGLE — Related Articles
   ===================================================================== */

.rc-relacionados {
	background: #fff;
	padding: 64px 0;
	border-top: 1px solid var(--rc-border);
}

.rc-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.rc-section-title {
	font-family: var(--f-head);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--rc-brown-dk);
	margin: 8px 0 0;
}

/* =====================================================================
   SINGLE — Back link
   ===================================================================== */

.rc-back {
	background: var(--rc-parchment);
	padding: 22px 24px;
	text-align: center;
	border-top: 1px solid var(--rc-border);
}

.rc-back a {
	font-family: var(--f-ui);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--rc-brown);
	text-decoration: none;
	letter-spacing: 0.02em;
}

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

/* =====================================================================
   Misc
   ===================================================================== */

.rc-empty {
	text-align: center;
	padding: 80px 24px;
	color: var(--rc-text-muted);
	font-family: var(--f-body);
	font-style: italic;
}

/* Pagination */
.rc-pagination {
	margin-top: 52px;
	display: flex;
	justify-content: center;
}

.rc-pagination .page-numbers {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.rc-pagination .page-numbers li a,
.rc-pagination .page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 4px;
	font-family: var(--f-ui);
	font-size: 0.875rem;
	text-decoration: none;
	color: var(--rc-brown);
	border: 1px solid var(--rc-border);
	background: #fff;
	transition: all 0.2s;
}

.rc-pagination .page-numbers li .current,
.rc-pagination .page-numbers li a:hover {
	background: var(--rc-brown);
	color: #fff;
	border-color: var(--rc-brown);
}

/* =====================================================================
   SHORTCODE — Toolbar (filtro + buscador)
   ===================================================================== */

.rc-toolbar {
	background: #fff;
	border-bottom: 1px solid var(--rc-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 200;
	box-shadow: 0 2px 8px rgba(44, 24, 8, 0.06);
	gap: 16px;
	padding-right: 24px;
}

/* cuando está dentro del toolbar, el nav no necesita su propia sombra */
.rc-toolbar .rc-cat-nav--inline {
	position: static;
	box-shadow: none;
	border-bottom: none;
	flex: 1;
}

/* ── Buscador ─────────────────────────────────────────────────────── */

.rc-search {
	flex-shrink: 0;
	width: 300px;
	padding: 10px 0;
}

.rc-search__input {
	width: 100%;
	padding: 9px 16px;
	border: 1px solid var(--rc-border);
	border-radius: 20px;
	font-family: var(--f-ui);
	font-size: 0.84rem;
	color: var(--rc-text);
	background: var(--rc-cream) !important;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.rc-search__input:focus {
	border-color: var(--rc-gold);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.rc-search__input::placeholder { color: var(--rc-text-muted); }

.rc-search__input::-webkit-search-cancel-button { display: none; }

/* ── Grid wrapper + estado de carga ──────────────────────────────── */

.rc-grid-wrap {
	min-height: 200px;
	transition: opacity 0.2s;
}

.rc-grid-wrap.is-loading {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 640px) {
	.rc-toolbar {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
		gap: 0;
	}
	.rc-search {
		width: 100%;
		padding: 10px 16px 14px;
		border-top: 1px solid var(--rc-border);
	}
}

/* =====================================================================
   SINGLE — Ocultar author box de Salient
   ===================================================================== */

.rc-carmelo-single #author-bio,
.rc-carmelo-single .author-section,
.rc-carmelo-single .nectar-author-box,
.rc-carmelo-single .post-author,
.rc-carmelo-single .about-author {
	display: none !important;
}

/* =====================================================================
   SHORTCODE — Breakout full-width dentro de una página WP
   ===================================================================== */

/*
 * Cuando el shortcode vive dentro del contenido de una página,
 * el wrapper rompe los límites del contenedor del tema para que
 * el hero y el filtro se vean a ancho completo.
 */
.rc-shortcode-wrap {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	max-width: 100vw;
	overflow-x: hidden;
}

/* El hero usa h2 dentro del shortcode (no h1 de página) */
.rc-shortcode-wrap .rc-hero__titulo {
	font-size: clamp(2rem, 5vw, 3.6rem);
}

/* El filtro dentro del shortcode no es sticky por defecto
   para no interferir con la barra del tema */
.rc-cat-nav--inline {
	position: relative;
	top: auto;
}
