/* =========================================================================
   Relatos Sexys — estilos del tema hijo (zona de contenido)
   Cabecera, pie y menú se diseñan en Divi 5 (Theme Builder). Este CSS cubre
   listados, relato, sidebar, formulario, banners y paginación.

   Identidad: crimson #C41E4A sobre neutros cálidos; plum #1E1A26 como oscuro.
   Tipografía: hereda la de Divi. Recomendado en Divi → Ajustes del tema:
     Encabezados: Sora (600/700) · Cuerpo: Manrope (400/600)
     Lectura de relatos: Lora (variable --rs-font-reading), más cómoda en textos largos.
   ========================================================================= */

:root {
	--rs-primary: #C41E4A;
	--rs-primary-dark: #8A1038;
	--rs-primary-soft: #FBE9EE;
	--rs-plum: #1E1A26;
	--rs-text: #1E1A26;
	--rs-text-2: #4A4553;
	--rs-muted: #66606F;
	--rs-border: #E9E4EC;
	--rs-surface: #FFFFFF;
	--rs-surface-2: #F7F4F8;
	--rs-max-width: 1120px;
	--rs-gutter: 24px;
	--rs-col-gap: 56px;
	--rs-radius: 14px;
	--rs-radius-sm: 8px;
	--rs-shadow: 0 1px 2px rgba(30, 26, 38, .06), 0 8px 24px -12px rgba(30, 26, 38, .18);
	--rs-font-reading: Georgia, "Times New Roman", serif;
	--rs-font-size-relato: 1.1875rem;
	--rs-line-height-relato: 1.8;
	/* Alturas reservadas para publicidad (evitan saltos de maquetación / CLS).
	   Pon aquí el alto del formato que uses en cada zona; 0 = sin reserva. */
	--rs-ad-h-before_content: 0px;
	--rs-ad-h-in_content: 0px;
	--rs-ad-h-after_content: 0px;
	--rs-ad-h-sidebar_top: 0px;
	--rs-ad-h-sidebar_bottom: 0px;
}

/* ---- Layout ---- */
.rs-container {
	width: 100%;
	max-width: var(--rs-max-width);
	margin: 0 auto;
	padding: 36px var(--rs-gutter) 64px;
	box-sizing: border-box;
}
.rs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: var(--rs-col-gap);
	align-items: start;
}
.rs-main, .rs-sidebar { min-width: 0; }
.rs-layout--full .rs-main { max-width: none; }
.rs-home .rs-intro { font-size: 1.05rem; line-height: 1.7; color: var(--rs-text-2); margin: 24px 0 8px; max-width: 72ch; }
.rs-sidebar { position: sticky; top: 24px; }
@media (max-width: 1024px) {
	.rs-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
}
@media (max-width: 900px) {
	.rs-layout { grid-template-columns: minmax(0, 1fr); }
	.rs-sidebar { position: static; }
}
@media (max-width: 767px) {
	.rs-container { padding: 20px 16px 48px; }
}

/* ---- Tipografía base de la zona de contenido ---- */
.rs-main, .rs-sidebar { color: var(--rs-text); }
.rs-main a, .rs-sidebar a { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.rs-main h1, .rs-main h2, .rs-main h3, .rs-sidebar h2 { letter-spacing: -.01em; }

/* ---- Migas ---- */
.rs-breadcrumbs { font-size: .8125rem; color: var(--rs-muted); margin: 0 0 18px; }
.rs-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.rs-breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #B9B3C1; }
.rs-breadcrumbs a { color: var(--rs-muted); text-decoration: none; }
.rs-breadcrumbs a:hover { color: var(--rs-primary); }

/* ---- Cabeceras de listado ---- */
.rs-list__title,
.rs-archive__title {
	font-size: clamp(1.6rem, 2.6vw, 2.125rem);
	line-height: 1.2;
	margin: 0 0 12px;
	color: var(--rs-text);
	font-weight: 700;
}
.rs-archive__header { margin-bottom: 8px; }
.rs-archive__page { font-weight: 500; color: var(--rs-muted); font-size: .6em; white-space: nowrap; }
.rs-archive__desc { color: var(--rs-text-2); font-size: 1.05rem; line-height: 1.65; margin: 0 0 12px; max-width: 70ch; }
.rs-archive__count {
	display: inline-block; color: var(--rs-primary-dark); background: var(--rs-primary-soft);
	font-size: .8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin: 0 0 8px;
}
.rs-archive__foot { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rs-border); color: var(--rs-text-2); line-height: 1.7; max-width: 72ch; }
.rs-archive__foot h2 { font-size: 1.35rem; margin: 1.4em 0 .5em; color: var(--rs-text); }

/* ---- Tarjetas de relato ---- */
.rs-list--archive, .rs-list--latest { display: flex; flex-direction: column; gap: 16px; }
.rs-card {
	background: var(--rs-surface);
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	padding: 22px 24px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.rs-card:hover { box-shadow: var(--rs-shadow); border-color: #E1D8E4; }
.rs-card__cat { margin: 0 0 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rs-card__cat a { color: var(--rs-primary); text-decoration: none; }
.rs-card__title { font-size: 1.375rem; line-height: 1.3; margin: 0 0 8px; font-weight: 700; }
.rs-card__title a { color: var(--rs-text); text-decoration: none; }
.rs-card__title a:hover { color: var(--rs-primary); }
.rs-card__meta { color: var(--rs-muted); font-size: .8125rem; margin: 0 0 12px; }
.rs-card__excerpt { margin: 0 0 14px; line-height: 1.65; color: var(--rs-text-2); }
.rs-card__more { margin: 0; }
.rs-more { color: var(--rs-primary); font-weight: 700; text-decoration: none; }
.rs-more:hover { color: var(--rs-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.rs-list__all { margin: 8px 0 0; }

/* ---- Relato ---- */
.rs-relato__header { margin-bottom: 28px; }
.rs-relato__cat { margin: 0 0 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.rs-relato__cat a { color: var(--rs-primary); text-decoration: none; }
.rs-relato__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; color: var(--rs-text); font-weight: 800; letter-spacing: -.02em; }
.rs-relato__meta { color: var(--rs-muted); font-size: .875rem; margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--rs-border); }
.rs-relato__meta strong { color: var(--rs-text-2); }
.rs-relato__content {
	font-family: var(--rs-font-reading);
	font-size: var(--rs-font-size-relato);
	line-height: var(--rs-line-height-relato);
	color: var(--rs-text);
	max-width: 72ch;
	overflow-wrap: anywhere;
	hyphens: auto;
}
.rs-relato__content p { margin: 0 0 1.35em; }
.rs-relato__content p:first-of-type::first-letter { font-size: 3.1em; line-height: .85; float: left; padding: 6px 10px 0 0; color: var(--rs-primary); font-weight: 700; font-family: inherit; }
.rs-relato__footer { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rs-border); }
@media (max-width: 767px) {
	.rs-card { padding: 18px 18px; }
	.rs-card__title { font-size: 1.2rem; }
	:root { --rs-font-size-relato: 1.0625rem; --rs-line-height-relato: 1.75; }
}

/* ---- Anterior / siguiente ---- */
.rs-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.rs-prevnext__item {
	display: block; padding: 14px 16px; border: 1px solid var(--rs-border); border-radius: var(--rs-radius-sm);
	text-decoration: none; color: var(--rs-text); background: var(--rs-surface);
}
.rs-prevnext__item:hover { border-color: var(--rs-primary); }
.rs-prevnext__item span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rs-muted); margin-bottom: 4px; }
.rs-prevnext__item strong { display: block; font-size: .95rem; line-height: 1.35; }
.rs-prevnext__item--next { text-align: right; }
@media (max-width: 600px) { .rs-prevnext { grid-template-columns: 1fr; } .rs-prevnext__item--next { text-align: left; } }

/* ---- Relacionados ---- */
.rs-related { margin-top: 28px; }
.rs-related__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.rs-related__list li { padding: 10px 0; border-bottom: 1px solid var(--rs-border); }
.rs-related__list a { color: var(--rs-text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.rs-related__list a:hover { color: var(--rs-primary); }
.rs-related__meta { display: block; color: var(--rs-muted); font-size: .75rem; margin-top: 2px; }
@media (max-width: 600px) { .rs-related__list { grid-template-columns: 1fr; } }

/* ---- Sidebar ---- */
.rs-block { margin: 0 0 24px; background: var(--rs-surface); border: 1px solid var(--rs-border); border-radius: var(--rs-radius); padding: 18px 20px 20px; }
.rs-block__title,
.rs-widget__title {
	font-size: .8125rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--rs-primary);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--rs-primary-soft);
	font-weight: 700;
}
.rs-widget { margin: 0 0 24px; }
.rs-mini-list { list-style: none; margin: 0; padding: 0; }
.rs-mini-list li { padding: 10px 0; border-bottom: 1px solid var(--rs-border); }
.rs-mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rs-mini-list a { text-decoration: none; color: var(--rs-text); display: block; line-height: 1.35; }
.rs-mini-list a:hover strong { color: var(--rs-primary); }
.rs-mini-list__cat { display: block; font-size: .6875rem; color: var(--rs-primary); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 2px; }
.rs-mini-list__meta { display: block; font-size: .75rem; color: var(--rs-muted); margin-top: 4px; }

.rs-cats__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-cats__list a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px; border: 1px solid var(--rs-border); border-radius: 999px;
	background: var(--rs-surface-2); color: var(--rs-text); text-decoration: none; font-size: .875rem; font-weight: 600;
}
.rs-cats__list a:hover { border-color: var(--rs-primary); color: var(--rs-primary); background: var(--rs-primary-soft); }
.rs-cats__count { font-size: .75rem; color: var(--rs-muted); font-weight: 500; }
.rs-main .rs-cats { border: 0; padding: 0; background: transparent; margin: 32px 0 0; }
.rs-main .rs-cats .rs-block__title { font-size: 1.25rem; text-transform: none; letter-spacing: -.01em; color: var(--rs-text); border: 0; padding: 0; margin-bottom: 14px; }

.rs-cta { text-align: center; padding: 24px 20px; background: linear-gradient(135deg, var(--rs-plum), #3A1230); border: 0; }
.rs-cta__sub { color: #D9D2DE; font-size: .875rem; margin: 12px 0 0; line-height: 1.5; }
.rs-button {
	display: inline-block; padding: 13px 24px; border-radius: 999px;
	background: var(--rs-primary); color: #fff !important; text-decoration: none !important; font-weight: 700;
	border: 0; cursor: pointer; line-height: 1.2; transition: background .2s, transform .15s;
}
.rs-button:hover { background: var(--rs-primary-dark); transform: translateY(-1px); }
.rs-button--ghost { background: transparent; color: var(--rs-primary) !important; border: 2px solid var(--rs-primary); }
.rs-button--ghost:hover { background: var(--rs-primary); color: #fff !important; }
.rs-button--cta { font-size: 1.05rem; width: 100%; text-align: center; box-sizing: border-box; }

/* ---- Publicidad ---- */
.rs-ad { text-align: center; margin: 20px 0; overflow: hidden; }
.rs-ad ins { display: inline-block; max-width: 100%; }
.rs-ad--before_content { min-height: var(--rs-ad-h-before_content); margin-top: 0; }
.rs-ad--in_content { min-height: var(--rs-ad-h-in_content); margin: 28px 0; }
.rs-ad--after_content { min-height: var(--rs-ad-h-after_content); }
.rs-ad--sidebar_top { min-height: var(--rs-ad-h-sidebar_top); margin-top: 0; }
.rs-ad--sidebar_bottom { min-height: var(--rs-ad-h-sidebar_bottom); }
.rs-ad--footer { margin: 0; }

/* ---- Paginación ---- */
.rs-pagination { margin: 28px 0 0; }
.rs-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rs-pagination .page-numbers {
	display: inline-block; min-width: 42px; padding: 9px 12px; text-align: center;
	border: 1px solid var(--rs-border); border-radius: 999px; color: var(--rs-text); text-decoration: none; box-sizing: border-box; font-weight: 600; font-size: .9rem;
	background: var(--rs-surface);
}
.rs-pagination a.page-numbers:hover { border-color: var(--rs-primary); color: var(--rs-primary); }
.rs-pagination .page-numbers.current { background: var(--rs-primary); border-color: var(--rs-primary); color: #fff; }
.rs-pagination .page-numbers.dots { border: 0; background: transparent; }
.rs-main .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rs-main .navigation.pagination .page-numbers { display: inline-block; min-width: 42px; padding: 9px 12px; border: 1px solid var(--rs-border); border-radius: 999px; text-decoration: none; color: var(--rs-text); font-weight: 600; }
.rs-main .navigation.pagination .page-numbers.current { background: var(--rs-primary); border-color: var(--rs-primary); color: #fff; }

/* ---- Formulario ---- */
.rs-form { max-width: 760px; }
.rs-form__row { margin: 0 0 18px; }
.rs-form__row label { display: block; font-weight: 700; margin-bottom: 6px; }
.rs-form__row label small { font-weight: 400; color: var(--rs-muted); }
.rs-form input[type="text"],
.rs-form select,
.rs-form textarea {
	width: 100%; box-sizing: border-box; padding: 13px 14px;
	border: 1px solid #D5CFD9; border-radius: var(--rs-radius-sm); font: inherit; background: #fff; color: var(--rs-text);
}
.rs-form textarea { min-height: 360px; resize: vertical; line-height: 1.6; }
.rs-form input:focus, .rs-form select:focus, .rs-form textarea:focus { outline: 2px solid var(--rs-primary); outline-offset: 1px; border-color: var(--rs-primary); }
.rs-form__check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.rs-form__check input { margin-top: 5px; flex: 0 0 auto; }
.rs-form__req { display: block; margin-top: 10px; color: var(--rs-muted); }
.rs-form__error, .rs-form__ok { padding: 14px 16px; border-radius: var(--rs-radius-sm); margin: 0 0 20px; }
.rs-form__error { background: #FDECEA; color: #7A1C15; border: 1px solid #F5C6C2; }
.rs-form__ok { background: #EDF7ED; color: #1E4620; border: 1px solid #C3E6C4; }
.rs-form__ok h2 { margin-top: 0; }
.rs-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- 404 ---- */
.rs-404 .search-form { margin: 16px 0 24px; }

/* ---- Utilidades ---- */
.rs-main img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
	.rs-card, .rs-button { transition: none; }
	.rs-button:hover { transform: none; }
}

/* ---- Cabecera de Divi (sin Theme Builder): logo, menú y botón "Envía tu relato" ---- */
#main-header { box-shadow: 0 1px 0 var(--rs-border); }
#main-header #logo { max-height: 44px; }
@media (max-width: 767px) { #main-header #logo { max-height: 34px; } }
#top-menu li a { font-weight: 600; letter-spacing: 0.01em; }
#top-menu li.rs-menu-cta > a { background: var(--rs-primary); color: #fff !important; border-radius: 999px; padding: 10px 18px !important; margin-top: -10px; }
#top-menu li.rs-menu-cta > a:hover { background: var(--rs-primary-dark); opacity: 1; }
#top-menu li.rs-menu-cats > ul.sub-menu { columns: 2; column-gap: 0; padding: 10px 0; width: 480px; }
#top-menu li.rs-menu-cats > ul.sub-menu li { break-inside: avoid; }
#top-menu .menu-item-has-children > a:first-child:after { top: 0; }
.et_mobile_menu li.rs-menu-cta > a { color: var(--rs-primary); font-weight: 700; }

/* ---- Pie de Divi: 3 columnas + menú legal ---- */
#main-footer { background: var(--rs-plum); }
#footer-widgets .footer-widget { font-size: 14px; line-height: 1.7; }
#footer-widgets .footer-widget h4.title { font-family: var(--rs-font-heading, inherit); font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
#footer-widgets .footer-widget img { max-width: 200px; height: auto; margin-bottom: 12px; }
#footer-widgets .rs-footer-links, #footer-widgets .rs-cats__list { list-style: none; margin: 0; padding: 0; }
#footer-widgets .rs-footer-links li { padding: 4px 0; }
#footer-widgets .footer-widget a { color: #fff; }
#footer-widgets .footer-widget a:hover { color: #FF6B8A; }
#footer-widgets .rs-cats { background: transparent; border: 0; padding: 0; margin: 0; box-shadow: none; }
#footer-widgets .rs-cats__list li { display: inline-block; }
#footer-widgets .rs-cats__list a { display: inline-block; margin: 0 6px 8px 0; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 13px; border: 0; }
#footer-widgets .rs-cats__list a:hover { background: var(--rs-primary); }
#footer-widgets .rs-cats__count { display: none; }
#et-footer-nav { background: #161219; }
#et-footer-nav .bottom-nav li a { color: #D9D2DE; font-size: 13px; }
#footer-bottom { background: #161219; }
#footer-info { color: #9E96A6; font-size: 12px; }
