/* Radio Regeneración — capa compartida para las páginas de Noticias y usuarios.
   Los tokens, fuentes, header y footer se heredan de assets/css/styles.css.
   No afecta al reproductor principal porque todas las reglas están aisladas. */
.rf-page {
  background: var(--cream);
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
}
.rf-page .site-header {flex-shrink: 0}
.rf-page .links [aria-current="page"] {color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px}
.rf-page .header-pill {display: inline-flex; align-items: center; gap: 9px; color: var(--wine)}
.rf-page .rf-access-link:hover {background: var(--wine); border-color: var(--wine); color: white}
.rf-page .rf-main {flex: 1 0 auto; width: 100%}
.rf-page .rf-site-footer {background: #fff; margin-top: 45px}
.rf-page .foot {padding: 26px 0}
.rf-page a:focus-visible,.rf-page button:focus-visible,.rf-page input:focus-visible,.rf-page textarea:focus-visible,.rf-page select:focus-visible {outline: 3px solid var(--gold); outline-offset: 3px}
.rf-container {width: min(1160px, calc(100% - 48px)); margin-inline: auto; padding: 0 0 45px}
.rf-hero {padding: 70px 0 34px; display:flex; align-items:flex-end; justify-content:space-between; gap:30px}
.rf-hero-content {max-width:790px}
.rf-eyebrow {color:var(--red); font-weight:800; font-size:11px; letter-spacing:2px; text-transform:uppercase}
.rf-hero h1,.rf-detail h1 {font: 800 clamp(34px, 5vw, 58px)/1.08 Outfit, Arial, sans-serif; letter-spacing: -1.8px; margin: 12px 0 15px; color: var(--ink)}
.rf-hero h1 .heading-period,.rf-detail h1 .heading-period {color:var(--red)}
.rf-hero p {color:var(--muted); line-height:1.75; font-size:15px; max-width:690px; margin:0}
.rf-chip {flex-shrink:0; border:1px solid #e6d9d9; color:var(--wine); border-radius:100px; padding:11px 15px; font-size:10px; letter-spacing:1.2px; font-weight:800; background:#fff; text-transform:uppercase}
.rf-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px}
/* Las tarjetas de noticias son las mismas que en index.html */
.rf-grid .news-card {display:flex; flex-direction:column; min-width:0; box-shadow:0 8px 24px rgba(54, 20, 38, .035); transition:transform .2s,box-shadow .2s}
.rf-grid .news-card:hover {transform:translateY(-3px);box-shadow:0 13px 30px rgba(54,20,38,.1)}
.rf-grid .news-visual {height:190px}
.rf-grid .news-copy {flex:1; display:flex; flex-direction:column}
.rf-grid .news-copy p {min-height:0; flex:1}
.rf-grid .news-date {margin-top:16px}
.news-visual .news-image {position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.news-visual .news-number {z-index:2; position:relative; color:white; opacity:1; text-shadow:0 1px 6px #0009}
.news-title-link {color:inherit; text-decoration:none}
.news-title-link:hover {color:var(--wine); text-decoration:underline}
.rf-read-link {display:inline-flex; align-items:center; gap:8px; color:var(--wine); font-size:12px; font-weight:800; margin-top:14px}
.rf-read-link:hover {text-decoration:underline}
.rf-empty {grid-column: 1 / -1; border:1px solid #ece3df; border-radius:15px; background:#fff; padding:36px 32px; display:flex; align-items:center; gap:20px; text-align:left; min-height:170px}
.rf-empty-icon {flex-shrink:0; width:68px; height:68px; display:grid; place-items:center; border-radius:16px; background:#f4e5e7; color:var(--wine); font:800 37px Outfit}
.rf-empty h3 {font:800 22px Outfit; margin:0 0 7px}
.rf-empty p {color:var(--muted); margin:0; line-height:1.65; font-size:14px}
.rf-state {color:var(--muted); font-size:13px; margin:12px 0 20px; min-height:0}
.rf-state:empty,.rf-state[hidden] {display:none}
.rf-error {color:#a71e34!important}
.rf-two {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start}
.rf-box {background:#fff; border:1px solid #ece3df; border-radius:14px; padding:28px; box-shadow:0 6px 18px rgba(70,35,42,.035); min-width:0}
.rf-box h2 {font:800 25px/1.2 Outfit,Arial,sans-serif; letter-spacing:-.5px; margin:0 0 21px}
.rf-box h3 {font:800 19px/1.2 Outfit,Arial,sans-serif; margin:0 0 12px}
.rf-card-head {display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--line); padding-bottom:18px; margin-bottom:23px}
.rf-card-head h2 {margin:0 0 4px}
.rf-card-head p {margin:0; font-size:13px; color:var(--muted)}
.rf-card-icon {width:44px; height:44px; border-radius:12px; background:#f4e6e9; color:var(--wine); display:grid; place-items:center; font-size:22px; flex-shrink:0}
.rf-form {display:grid; gap:16px}
.rf-form label {display:grid; gap:8px; font-size:13px; font-weight:800; color:var(--ink)}
.rf-form input,.rf-form textarea,.rf-form select {width:100%; min-width:0; border:1px solid #d9ced0; border-radius:9px; color:var(--ink); background:#fff; padding:12px 14px; font:500 14px 'DM Sans',Arial,sans-serif; transition:border-color .18s}
.rf-form input:focus,.rf-form textarea:focus,.rf-form select:focus {border-color:var(--wine)}
.rf-form textarea {min-height:180px; resize:vertical; line-height:1.6}
.rf-form input[type=file] {padding:11px; background:#faf8f5}
.rf-form .rf-field-row {display:grid; grid-template-columns:1fr 1fr; gap:14px}
.rf-btn {border:1px solid var(--wine); border-radius:9px; background:var(--wine); color:white; padding:12px 17px; font-weight:800; font-size:13px; text-decoration:none; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:background .18s,transform .18s}
.rf-btn:hover:not(:disabled) {background:#84213d; transform:translateY(-1px)}
.rf-btn:disabled {opacity:.55;cursor:not-allowed}
.rf-btn-secondary {background:#fff; color:var(--wine); border-color:#ead6da}
.rf-btn-secondary:hover:not(:disabled) {background:#f9eef0}
.rf-btn-google {background:#fff; color:var(--ink); border:1px solid #ded7d5}
.rf-btn-google:hover:not(:disabled) {background:#f7f4f2}
.rf-google-g {font-weight:900; font-size:17px; color:#4285f4}
.rf-inline-link {border:0; background:transparent; color:var(--wine); padding:7px 0; cursor:pointer; font-weight:800; font-size:13px; text-decoration:underline; text-underline-offset:3px}
.rf-mini {font-size:13px; color:var(--muted); line-height:1.7}
.rf-divider {display:flex; align-items:center; gap:14px; margin:22px 0 18px; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:1.2px; font-weight:800}
.rf-divider::before,.rf-divider::after {content:'';height:1px;background:var(--line);flex:1}
.rf-info {margin:20px 0 0; padding:14px 17px; border-radius:9px; background:#faf3ed; color:#685357; border-left:3px solid var(--gold); font-size:13px; line-height:1.7}
.rf-account-details {background:#faf8f5; padding:17px; border-radius:10px; overflow-wrap:anywhere}
.rf-account-details p {margin:0}
.rf-admin {display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:22px; align-items:start}
.rf-list {padding:0; list-style:none; margin:0; display:grid; gap:0}
.rf-list li {display:flex; justify-content:space-between; align-items:center; gap:14px; border-bottom:1px solid var(--line); padding:14px 0; font-size:13px}
.rf-actions {display:flex; gap:7px; flex-shrink:0}
.rf-list button {border-radius:7px; border:1px solid #ddcdd2; background:#fff; padding:7px 12px; cursor:pointer; font-weight:700; color:var(--wine)}
.rf-list button:hover {background:#faf1f3}
.rf-list .rf-danger {color:#ad2537; border-color:#edc8cf}
.rf-preview {display:block; width:100%; max-width:250px; max-height:180px; object-fit:cover; border-radius:10px; margin-top:12px}
.rf-preview:not([src]),.rf-preview[src=""] {display:none}
.rf-detail {max-width:860px; margin:0 auto 25px; border:1px solid #ece3df; background:#fff; padding:clamp(22px,5vw,56px); border-radius:16px; box-shadow:0 10px 28px rgba(54,20,38,.035)}
.rf-detail h1 {margin:15px 0 18px; font-size:clamp(32px, 4.5vw, 52px)}
.rf-detail__summary {color:#756e71; font-size:clamp(16px,2.3vw,19px); line-height:1.65; margin:0 0 21px}
.rf-detail__image {width:100%; height:auto; max-height:460px; object-fit:cover; border-radius:10px; margin:10px 0 27px}
/* El cuerpo público admite noticias antiguas (texto) y nuevas (formato Delta). */
.rf-detail__body {white-space:normal; overflow-wrap:anywhere; font-size:16px; line-height:1.9}
.rf-detail__body p {margin:0 0 1.05em}
.rf-detail__body h2 {font:800 clamp(23px,3vw,30px)/1.3 Outfit,Arial,sans-serif; margin:1.15em 0 .45em}
.rf-detail__body h3 {font:800 clamp(19px,2.5vw,24px)/1.35 Outfit,Arial,sans-serif; margin:1.1em 0 .45em}
.rf-detail__body blockquote {border-left:4px solid var(--wine); background:#faf5f6; padding:12px 18px; margin:1em 0; color:#614c53}
.rf-detail__body ul,.rf-detail__body ol {padding-left:27px; margin:.6em 0 1.2em}
.rf-detail__body li {padding-left:3px; margin:.2em 0}
.rf-detail__body a {color:var(--wine); text-decoration:underline; overflow-wrap:anywhere}
.rf-detail__body a:hover {color:#a12b47}
.rf-detail__body .rf-legacy-text {white-space:pre-wrap}
.rf-back {display:inline-flex; align-items:center; gap:8px; padding:35px 0 20px; font-size:13px; font-weight:800; color:var(--wine)}
.rf-back:hover {text-decoration:underline}
.rf-wide-box {max-width:720px}
.rf-logout {margin-top:22px}
@media(max-width:950px){.rf-page .header-pill {display:none}.rf-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.rf-admin {grid-template-columns:1fr}}
@media(max-width:680px){
 .rf-container {width:min(100% - 32px,1160px); padding-bottom:15px}
 .rf-hero {padding:40px 0 25px; flex-direction:column; align-items:flex-start; gap:14px}
 .rf-grid,.rf-two {grid-template-columns:1fr}
 .rf-page .links {gap:14px}
 .rf-box {padding:21px}
 .rf-empty {flex-direction:column; align-items:flex-start; padding:24px}
 .rf-grid .news-visual {height:175px}
 .rf-form .rf-field-row {grid-template-columns:1fr}
 .rf-list li {align-items:flex-start; flex-direction:column}
 .rf-site-footer {margin-top:30px}
}

/* Preservar el atributo hidden aunque haya contenedores con display:flex/grid */
.rf-page [hidden] {display:none !important}

/* Acceso y registro: mostrar un único formulario centrado por vista */
.rf-login-layout {display:grid; grid-template-columns:minmax(0,560px); justify-content:center}
.rf-login-layout > .rf-box {width:100%}
.rf-login-page .rf-state {max-width:560px; margin-inline:auto}
.rf-switch-view {margin:20px 0 0; border-top:1px solid var(--line); padding-top:18px; color:var(--muted); font-size:14px; text-align:center}
.rf-switch-view a {color:var(--wine); font-weight:800; text-underline-offset:3px}
.rf-switch-view a:hover {text-decoration-thickness:2px}


/* =====================================
   MOSTRAR Y OCULTAR CONTRASEÑA
===================================== */

.rf-password-field {
  display: grid;
  gap: 8px;
}

.rf-password-field > label {
  font-size: 13px;
  font-weight: 800;
}

.rf-password-wrap {
  position: relative;
  width: 100%;
}

.rf-form .rf-password-wrap input {
  width: 100%;
  padding-right: 55px;
}

.rf-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 8px;
  background: transparent;
  color: #66142e;

  font-size: 20px;
  cursor: pointer;
}

.rf-password-toggle:hover {
  background: #f5e9ed;
}

.rf-password-toggle[aria-pressed="true"] {
  color: #a62045;
}

.rf-password-toggle:focus-visible {
  outline: 2px solid #cea01f;
  outline-offset: 2px;
}


/* =====================================
   OJO DENTRO DEL CAMPO DE CONTRASEÑA
===================================== */

.rf-password-wrap {
  position: relative;
  width: 100%;
}

.rf-password-wrap input {
  display: block;
  width: 100%;
  padding-right: 55px !important;
  box-sizing: border-box;
}

.rf-password-wrap .rf-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  border: none;
  border-radius: 8px;
  background: transparent;
  color: #66142e;

  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.rf-password-toggle:hover {
  background: #f5e9ed;
}


/* =====================================
   AVISO BLOQ MAYÚS ACTIVADO
===================================== */
.rf-caps-warning {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #fff4d6;
  color: #8a5a00;
  border: 1px solid #f0cf7a;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.rf-caps-warning[hidden] {
  display: none !important;
}


/* PESTAÑAS DEL PERFIL */

.rf-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9dfe1;
}

.rf-profile-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 16px;
  color: #71676b;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.rf-profile-tab:hover,
.rf-profile-tab.is-active {
  color: #66142e;
}

.rf-profile-tab.is-active {
  border-bottom-color: #d5a31e;
}

.rf-profile-view[hidden] {
  display: none !important;
}

.rf-profile-view h3 {
  margin: 0 0 18px;
  color: #66142e;
}

.rf-profile-view input[readonly] {
  background: #f5f1ef;
  color: #71676b;
  cursor: default;
}


/* =====================================
   SALUDO DE MI CUENTA
===================================== */

/* Quitar el estilo anterior del contenedor */
.rf-account-details {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Personalizar el saludo */
#rf-user {
  display: block;
  margin: 16px 0 24px;
  padding: 20px 24px;

  background: #f8edf0 !important;
  border-left: 4px solid #d5a31e;
  border-radius: 10px;

  color: #66142e !important;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.4px;

  box-shadow: none;
}

@media (max-width: 600px) {
  #rf-user {
    font-size: 19px;
    padding: 16px;
  }
}
