/* =============================================================================
   RELATOS — tema alineado a la página principal (fondo negro, rosa, serif)
   Ser o No Ser Swinger
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0f0c14;
  --bg-section: #16131c;
  --card: #1c1924;
  --card-2: #211d2b;
  --text: #f1e7ff;
  --muted: #c5b8d9;
  --muted-2: rgba(241, 231, 255, 0.45);
  --rose: #c0267a;
  --rose-soft: rgba(192, 38, 122, 0.15);
  --gold: #d4af77;
  --border: rgba(255, 255, 255, 0.1);
  --ok: #3d9a6a;
  --ok-soft: rgba(61, 154, 106, 0.18);
  --warn: #c45c4a;
  --warn-soft: rgba(196, 92, 74, 0.18);
  --font: 'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

*, body, html { padding: 0; margin: 0; box-sizing: border-box; }
html, nav { width: 100%; }
a { text-decoration: none; color: var(--text); cursor: pointer; }
a:hover { color: var(--rose); }
.checkbtn, a { cursor: pointer; }
body, html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { height: 100%; position: relative; }
body {
  line-height: 1.45;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  min-height: 100vh;
}
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- NAV (como shell principal) ---------- */
.navigation {
  height: 72px;
  display: block;
  position: fixed;
  width: 100%;
  background: rgba(15, 12, 20, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  top: 0;
  left: 0;
}
.nav-container {
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  padding: 0 1.25rem;
  height: 72px;
}
#check, .checkbtn, .logo_movil, nav ul.menu_responsive li.boton_cerrar { display: none; }
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
}
.nav-brand-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.nav-brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}
nav ul.menu_responsive {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}
nav ul.menu_responsive li {
  display: inline-block;
  margin: 0;
  padding: 0;
}
nav ul.menu_responsive li a {
  color: rgba(241, 231, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  display: block;
  padding: 0.45rem 0.7rem;
  transition: color .2s ease, background .2s ease;
}
nav ul.menu_responsive li a.active,
nav ul.menu_responsive li a:hover {
  color: var(--rose);
  background: var(--rose-soft);
}
.nav-session {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-session strong { color: var(--gold); }

/* ---------- HEADER LOGO ---------- */
.header_logo {
  padding: 1.75rem 1rem 1.5rem;
  width: 100%;
  border-bottom: 1px solid var(--border);
  display: block;
  margin: 72px 0 0;
  background: linear-gradient(180deg, #0a080f 0%, var(--bg) 100%);
}
.index_logo_block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.index_logo_block .brand-logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}
.index_logo_block .brand-logo img {
  height: 88px;
  width: auto;
  max-width: min(92vw, 280px);
  object-fit: contain;
  border-radius: 1rem;
  filter: drop-shadow(0 8px 24px rgba(192, 38, 122, 0.25));
}
.index_logo_block a.wordmark {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.05;
}
.index_logo_block a.wordmark:hover { color: var(--rose); }
.index_logo_block a.wordmark .accent { color: var(--rose); }
.index_logo p {
  text-align: center;
  font-size: 0.7rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- HOME PORTADA ---------- */
.home_hero {
  max-width: 920px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.home_hero_inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.45);
}
.home_badge {
  display: inline-block;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.home_title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.1;
  text-align: center;
}
.home_lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}
.home_lead p { margin: 0 0 0.85rem; }
.home_lead strong { color: var(--text); font-weight: 600; }
.home_cta_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.home_cta {
  display: block;
  padding: 1.25rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none !important;
  color: inherit !important;
}
.home_cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.5);
  border-color: rgba(192, 38, 122, 0.45);
}
.home_cta.primary {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(192,38,122,0.35) 0%, var(--card-2) 55%);
  box-shadow: inset 0 0 0 1px rgba(192, 38, 122, 0.35);
}
.home_cta.secondary {
  background: var(--bg-section);
}
.home_cta_kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}
.home_cta_title {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.home_cta_desc {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.home_cat_quick {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.home_cat_label {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0 0 0.65rem;
}
.home_cat_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.home_cat_links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.home_cat_links a:hover {
  color: #ffd6ec !important;
  border-color: var(--rose);
  background: var(--rose-soft);
}
.home_rules {
  max-width: 920px;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem 0.5rem;
}
.home_rules h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--text);
  margin: 0 0 0.85rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home_rules ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto;
}
.home_rules li { margin-bottom: 0.4rem; }
.home_rules strong { color: var(--text); }
.home_preview { border-top: none !important; margin-top: 0.5rem; }
.ver_mas_relatos {
  width: 100%;
  text-align: center;
  margin: 0.75rem 0 1.5rem;
}
.ver_mas_relatos a {
  background: var(--rose);
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  color: #fff !important;
  font-weight: 600;
  display: inline-block;
  border-radius: 1rem;
  transition: filter .15s;
}
.ver_mas_relatos a:hover { filter: brightness(1.08); color: #fff !important; }

.page_breadcrumb {
  max-width: 900px;
  margin: 1.15rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-2);
}
.page_breadcrumb a { color: var(--rose); font-weight: 600; }

/* Comentario libre bajo cada relato */
.inline_comments {
  margin-top: 0.9rem;
  background: rgba(0,0,0,0.25);
  border-left: 3px solid var(--rose);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
}
.inline_comments h4 {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}
.comment_privacy_note {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #e8a094;
  background: rgba(196, 92, 74, 0.12);
  border: 1px solid rgba(196, 92, 74, 0.28);
  border-radius: 0.55rem;
}
.comment_tipo_select {
  width: 100%;
  max-width: 220px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}
.comment_tipo_tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(212, 175, 119, 0.15);
  color: var(--gold);
  margin-left: 0.25rem;
  vertical-align: middle;
}
.inline_comment_form {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.5rem;
}
.inline_comment_form input,
.inline_comment_form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
}
.inline_comment_form textarea { min-height: 4.5rem; resize: vertical; }
.inline_comment_form button {
  justify-self: start;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.inline_comment_form button:hover { filter: brightness(1.08); }
.inline_comment_status { font-size: 0.75rem; color: var(--muted-2); min-height: 1em; }
.inline_comment_status.error { color: #e8a094; }
.inline_comment_status.ok { color: #7dcea0; }

@media (max-width: 700px) {
  .home_cta_row { grid-template-columns: 1fr; }
  .home_hero_inner { padding: 1.35rem 1rem; }
}

/* ---------- FORM ---------- */
.main_form_container { max-width: 800px; margin: 2rem auto; padding: 0 1.25rem; }
.form_card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}
.form_card h2 {
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 0.65rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.form_lead {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 auto 1.35rem;
  max-width: 36rem;
}
/* Secciones cronológicas del formulario */
.form_section {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
}
.form_section:last-of-type { margin-bottom: 1rem; }
.form_section_head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.form_section_num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.form_section_head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.form_section_head p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Anti-robots / verificación humana */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.human-check-box {
  border-color: rgba(192, 38, 122, 0.35);
  background: rgba(192, 38, 122, 0.08);
}
.human-check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.human-check-label {
  flex: 1 1 100%;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.human-check-input {
  width: auto !important;
  min-width: 5rem;
  max-width: 8rem;
  flex: 0 0 auto;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem !important;
}
.human-check-refresh {
  width: auto !important;
  margin: 0 !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.8rem !important;
}
.inline_comments .human-check-row,
.comment_form .human-check-row {
  margin-top: 0.35rem;
}
.inline_comments .human-check-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.form_group { margin-bottom: 1.15rem; }
.form_group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.form_group input[type="text"],
.form_group input[type="password"],
.form_group input[type="search"],
.form_group select,
.form_group textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.form_group textarea { resize: vertical; min-height: 11rem; line-height: 1.65; }
.form_group textarea.rl-body { min-height: 16rem; line-height: 1.75; }
.form_conditional {
  animation: rlCondIn 0.22s ease;
}
@keyframes rlCondIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
  outline: none;
  border-color: rgba(192, 38, 122, 0.55);
  box-shadow: 0 0 0 3px var(--rose-soft);
}
.form_row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form_row .form_group { flex: 1; min-width: 220px; }
.help_text { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.3rem; display: block; line-height: 1.4; }
.check_row { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.check_label {
  font-weight: 400 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  cursor: pointer;
  color: var(--text) !important;
}
.submit_btn {
  background-color: var(--rose);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 1rem;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
  transition: filter 0.15s;
  font-family: inherit;
}
.submit_btn:hover { filter: brightness(1.08); }
.submit_btn:disabled { opacity: 0.55; cursor: not-allowed; }
.cancel_btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.7rem;
  border-radius: 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
}
.cancel_btn:hover { border-color: var(--rose); color: var(--rose); }
.form_status { font-size: 0.875rem; min-height: 1.2em; margin: 0 0 0.75rem; text-align: center; }
.form_status.error { color: #e8a094; }
.form_status.ok { color: #7dcea0; }

/* ---------- FEED ---------- */
.relatos_feed {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
}
.feed_title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feed_sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.35rem;
  line-height: 1.5;
}
.cat_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.15rem;
}
.cat_tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.cat_tab:hover { border-color: var(--rose); color: #ffd6ec; }
.cat_tab.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.feed_toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  justify-content: center;
}
.search_input,
.filter_select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.search_input { min-width: min(100%, 260px); flex: 1; max-width: 320px; }
.badge_cat {
  background: var(--rose-soft);
  color: #ffb3d9;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
}
.badge_mod {
  background: rgba(212, 175, 119, 0.12);
  color: var(--gold);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.relato_item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem 1.3rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
  transition: transform .2s, border-color .2s;
}
.relato_item:hover {
  border-color: rgba(192, 38, 122, 0.28);
}
.relato_header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.relato_title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--serif);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a.relato_title:hover,
.relato_title:hover {
  color: var(--rose);
  border-bottom-color: rgba(192, 38, 122, 0.45);
}
.relato_signature {
  font-size: 0.85rem;
  color: var(--rose);
  font-weight: 600;
  background: var(--rose-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  white-space: nowrap;
}
.relato_meta_tags {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  background: rgba(0,0,0,0.22);
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
}

/* Ficha en primera persona (narrativa fluida) */
.fields_sequence,
.fields_narrative {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  word-wrap: break-word;
  font-style: italic;
}
.fields_narrative {
  color: #e8dff5;
  font-style: normal;
}
.relato_content {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.9rem;
  white-space: pre-wrap;
}
.relato_footer {
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge_resultado {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
}
.badge_exitosa { background: var(--ok-soft); color: #7dcea0; }
.badge_fallida { background: var(--warn-soft); color: #e8a094; }
.btn_edit_sm {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.btn_edit_sm:hover { filter: brightness(1.08); }
.link_more {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
}
.link_more:hover { color: var(--rose); }
.link_back {
  background: none;
  border: none;
  color: var(--rose);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
  font-family: inherit;
}
.empty_state {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  background: rgba(255,255,255,0.02);
}
.empty_state a { color: var(--rose); font-weight: 600; }

/* ---------- COMENTARIOS / DETALLE ---------- */
.comentarios_section {
  margin-top: 0.95rem;
  background: rgba(0,0,0,0.2);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 0.875rem;
}
.comentarios_section h4 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.comentario_item {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  color: var(--muted);
  line-height: 1.5;
}
.comentario_item:last-child { border-bottom: none; }
.comentario_item strong { color: var(--text); }
.comment_form { margin-top: 0.75rem; }
.comment_form textarea,
.comment_form input {
  width: 100%;
  min-height: auto;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.comment_form textarea { min-height: 5.5rem; }
.login_gate {
  background: var(--rose-soft);
  border: 1px solid rgba(192, 38, 122, 0.25);
  border-radius: 0.75rem;
  padding: 0.85rem;
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.login_gate button {
  margin-top: 0.5rem;
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

#detalle .relato_item { box-shadow: 0 20px 40px -18px rgba(0,0,0,0.55); }
.detail_facts {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}
.detail_fact {
  background: rgba(0,0,0,0.22);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
}
.detail_fact dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.detail_fact dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
.detail_body {
  color: #f6f0ff;
  line-height: 1.8;
  font-size: 1.05rem;
  white-space: pre-wrap;
  margin: 0 0 1.25rem;
}

/* ---------- MODAL ---------- */
.modal_backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.72);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal_backdrop[hidden] { display: none !important; }
.modal_card {
  width: min(100%, 24rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.55);
}
.modal_card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--rose);
  margin: 0 0 0.4rem;
  text-align: center;
  font-weight: 700;
}
.modal_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}
.link_btn {
  background: none;
  border: none;
  color: var(--rose);
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: auto;
  font-family: inherit;
  padding: 0;
}
.cancel_btn_sm {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}
.submit_btn_sm {
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- TOAST / TOP / FOOTER ---------- */
.rl-toast, .toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 100;
  transition: transform .25s ease;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.55);
}
.rl-toast.is-show, .toast.is-show { transform: translateX(-50%) translateY(0); }

.top_scroll {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 42px;
  height: 42px;
  background: var(--rose);
  border-radius: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(192, 38, 122, 0.35);
}
.top_scroll span.iz,
.top_scroll span.der {
  border: 2px solid #fff;
  width: 10px;
  display: block;
  position: absolute;
}
.top_scroll span.iz { transform: rotate(-45deg); left: 14px; }
.top_scroll span.der { transform: rotate(45deg); right: 14px; }

footer {
  background-color: #0a080f;
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}
.main_footer {
  margin: 0 auto;
  color: var(--muted-2);
  font-size: 0.9rem;
  text-align: center;
  clear: both;
  padding: 1.25rem 1.5rem 1.75rem;
  display: block;
  max-width: 900px;
}
.main_footer a {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0.65rem 0.75rem;
  display: inline-block;
}
.main_footer a:hover { color: var(--rose); }
.main_footer_copy { color: var(--muted-2); font-size: 0.8rem; text-align: center; margin-top: 0.65rem; }
.mode_label { font-size: 0.7rem; color: rgba(255,255,255,0.25); margin-top: 0.4rem; }

/* ---------- MOBILE ---------- */
@media (max-width: 858px) {
  .checkbtn {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 12px;
    float: left;
  }
  .checkbtn span {
    margin: 0 0 5px;
    width: 22px;
    display: block;
    height: 2px;
    background: var(--text);
    position: relative;
    left: 0;
    top: 3px;
  }
  .navigation {
    height: 56px;
    background: rgba(10, 8, 15, 0.98);
  }
  nav { width: 100%; height: 56px; }
  .nav-brand img { height: 36px; }
  .nav-brand-text { display: none; }
  nav ul.menu_responsive {
    display: block;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(10, 8, 15, 0.96);
    top: 0;
    left: -100%;
    text-align: left;
    transition: .4s;
    z-index: 60;
    margin: 0;
    padding: 0 0 0 1.25rem;
  }
  #check:checked ~ ul.menu_responsive { left: 0; }
  nav ul.menu_responsive li {
    display: block;
    margin: 0;
    padding: 0;
  }
  nav ul.menu_responsive li.margin_top { margin-top: 4.5rem; }
  nav ul.menu_responsive li a {
    color: var(--text);
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
  }
  nav ul.menu_responsive li a.active,
  nav ul.menu_responsive li a:hover { color: var(--rose); background: transparent; }
  nav ul.menu_responsive li.boton_cerrar {
    display: block;
    width: 50px;
    height: 50px;
    padding: 15px;
    float: right;
    margin: 5px 5px 0 0;
  }
  .closebtn span.linea_1,
  .closebtn span.linea_2 {
    border: 1px solid #fff;
    width: 28px;
    right: 6px;
    position: relative;
    display: block;
  }
  .closebtn span.linea_1 { rotate: 46deg; top: 7px; }
  .closebtn span.linea_2 { rotate: 135deg; top: 5px; }
  .header_logo { margin-top: 56px; padding: 1.25rem 1rem 1.1rem; }
  .index_logo_block .brand-logo img { height: 72px; }
  .nav-session { display: none; }
  .nav-container { height: 56px; padding: 0 0.75rem; }
}

@media (max-width: 600px) {
  .form_row { gap: 0; }
  .form_card { padding: 1.25rem 1rem; }
  .relato_title { font-size: 1.1rem; }
}

/* utilidades usadas en HTML */
.rl-label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; }
.rl-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}
.rl-lead { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; text-align: center; }
