/* ACEVAL — Secciones de revistas (/publicaciones): Revista de Divulgación y REMEVAL */

/* ---------- Subnavegación interna ---------- */
.rv-subnav {
  position: sticky;
  top: var(--rv-nav-top, 72px);
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(7, 41, 77, .1);
}
.rv-subnav__list {
  display: flex; gap: .35rem; margin: 0; padding: .55rem 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.rv-subnav__list::-webkit-scrollbar { display: none; }
.rv-subnav__link {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .45rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--color-primary); text-decoration: none; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.rv-subnav__link:hover { background: var(--color-primary-pale); }
.rv-subnav__link.is-active { background: var(--color-primary); color: #fff; }
.rv-subnav__link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (max-width: 575.98px) { .rv-subnav__list { justify-content: flex-start; } }

.rv-section { padding: 4rem 0; border-bottom: 1px solid rgba(7, 41, 77, .08); }
@media (max-width: 767.98px) { .rv-section { padding: 2.75rem 0; } }
.rv-section [id] { scroll-margin-top: 150px; }
#revista-divulgacion, #revista-remeval, #archivo { scroll-margin-top: 130px; }

/* ---------- Portadas (botón) ---------- */
.rv-cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: 6px; overflow: hidden; cursor: pointer; line-height: 0;
  box-shadow: 0 10px 28px rgba(4, 22, 43, .22), 0 2px 6px rgba(4, 22, 43, .15);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.rv-cover img { width: 100%; height: auto; aspect-ratio: 640 / 906; object-fit: cover; display: block; }
.rv-cover::after { /* lomo de revista */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 7px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .12) 60%, transparent);
  pointer-events: none;
}
.rv-cover__badge {
  position: absolute; top: .6rem; left: .6rem; line-height: 1;
  background: var(--color-accent); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.rv-cover__cta {
  position: absolute; inset: auto 0 0 0; line-height: 1.2; padding: 1.6rem .75rem .8rem;
  background: linear-gradient(to top, rgba(4, 22, 43, .92), rgba(4, 22, 43, 0));
  color: #fff; font-weight: 700; font-size: .85rem; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.rv-cover:hover .rv-cover__cta, .rv-cover:focus-visible .rv-cover__cta { opacity: 1; transform: none; }
.rv-cover:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
@media (hover: none) { .rv-cover__cta { opacity: 1; transform: none; } }

/* ---------- Edición destacada ---------- */
.rv-featured {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 70%);
  color: #fff; border-radius: 14px; border-top: 3px solid var(--color-accent);
  padding: 2rem; margin-bottom: 3.5rem; box-shadow: 0 14px 40px rgba(4, 22, 43, .18);
}
@media (min-width: 992px) { .rv-featured { padding: 2.75rem; } }
.rv-featured .rv-cover { max-width: 250px; margin-inline: auto; }
.rv-cover--tilt { transform: perspective(900px) rotateY(var(--rv-ry, 0deg)) rotateX(var(--rv-rx, 0deg)); will-change: transform; }
.rv-featured__title { color: #fff; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: .75rem; }
.rv-featured__lead { color: rgba(255, 255, 255, .78); line-height: 1.75; max-width: 46rem; margin-bottom: 1.1rem; }
.rv-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.rv-facts i { color: var(--color-accent-light); margin-right: .35rem; }
.rv-size { opacity: .75; font-weight: 500; font-size: .85em; }

/* ---------- Encabezado de colección ---------- */
.rv-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; margin-bottom: 1.75rem; }
.rv-head__title { font-size: 1.45rem; font-weight: 700; color: var(--color-primary); margin: 0; }
.rv-head__hint { font-size: .82rem; color: #6b7a8c; }
@media (hover: none) { .rv-head__hint { display: none; } }

/* ---------- Tarjetas de ediciones ---------- */
.rv-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(7, 41, 77, .1); border-radius: 12px; padding: .85rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(4, 22, 43, .12); border-color: rgba(217, 130, 24, .55); }
.rv-card.is-latest { border-top: 3px solid var(--color-accent); }
.rv-card__body { display: flex; flex-direction: column; flex: 1; padding: .95rem .25rem .15rem; }
.rv-card__num { font-family: var(--font-mono, ui-monospace, monospace); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-hover); font-weight: 700; }
.rv-card__date { font-size: 1.02rem; font-weight: 700; color: var(--color-primary); margin: .2rem 0 .45rem; line-height: 1.3; }
.rv-card__desc { font-size: .84rem; color: #55657a; line-height: 1.55; margin-bottom: 1rem; }
.rv-card__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rv-card__actions .btn { padding-inline: .4rem; font-size: .8rem; white-space: nowrap; }
@media (max-width: 575.98px) { .rv-card__actions { grid-template-columns: 1fr; } }

/* ---------- Convocatoria / mosaicos ---------- */
.rv-call { margin-top: 3.5rem; padding: 2rem; border-radius: 14px; background: var(--color-primary-pale, #F4F6F9); border: 1px solid rgba(7, 41, 77, .1); }
@media (min-width: 992px) { .rv-call { padding: 2.5rem; } }
.rv-kicker { display: block; font-family: var(--font-mono, ui-monospace, monospace); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-hover); margin-bottom: .5rem; }
.rv-call__title { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-bottom: .6rem; }
.rv-call__text { font-size: .9rem; color: #55657a; line-height: 1.7; margin-bottom: 1rem; }
.rv-call__label { font-size: .88rem; font-weight: 600; color: var(--color-primary); margin-bottom: .9rem; }
.rv-tile { height: 100%; background: #fff; border: 1px solid rgba(7, 41, 77, .1); border-radius: 12px; padding: 1.1rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.rv-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(4, 22, 43, .1); border-color: rgba(217, 130, 24, .55); }
.rv-tile i { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(217, 130, 24, .14); color: var(--color-accent-hover); margin-bottom: .7rem; }
.rv-tile h4 { font-size: .98rem; font-weight: 700; color: var(--color-primary); margin-bottom: .3rem; }
.rv-tile p { font-size: .84rem; color: #55657a; line-height: 1.55; margin: 0; }

/* ---------- REMEVAL ---------- */
.rv-rem {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 70%);
  color: #fff; border-radius: 14px; border-top: 3px solid var(--color-accent);
  padding: 2rem; margin-bottom: 1.75rem; box-shadow: 0 14px 40px rgba(4, 22, 43, .18);
}
@media (min-width: 992px) { .rv-rem { padding: 2.75rem; } }
.rv-rem__title { color: #fff; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: .75rem; }
.rv-rem__title em { color: var(--color-accent-light); font-style: normal; }
.rv-rem__lead { color: rgba(255, 255, 255, .8); line-height: 1.75; margin-bottom: 1.1rem; max-width: 40rem; }
.rv-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.rv-chips li { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.rv-chips i { color: var(--color-accent-light); }

.rv-issue { display: flex; gap: 1.1rem; align-items: stretch; background: #fff; color: var(--color-primary); border-radius: 12px; padding: 1rem; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.rv-issue__cover {
  flex: 0 0 38%; max-width: 150px; aspect-ratio: 640 / 906; border-radius: 6px; padding: .9rem .7rem;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; position: relative;
  background: linear-gradient(160deg, #0C3B6E 0%, #07294D 55%, #04162B 100%); border-bottom: 4px solid var(--color-accent);
  box-shadow: 0 6px 16px rgba(4, 22, 43, .3);
}
.rv-issue__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent); }
.rv-issue__abbr { font-weight: 800; letter-spacing: .12em; font-size: .95rem; }
.rv-issue__name { font-size: .62rem; line-height: 1.35; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.rv-issue__vol { font-size: .6rem; font-weight: 700; color: var(--color-accent-light); letter-spacing: .06em; text-transform: uppercase; }
.rv-issue__body { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.rv-issue__text { font-size: .85rem; color: #55657a; line-height: 1.55; margin-bottom: .85rem; }
@media (max-width: 420px) { .rv-issue { flex-direction: column; } .rv-issue__cover { flex-basis: auto; max-width: 140px; align-self: center; } }

/* Pestañas */
.rv-tabs { background: #fff; padding: 0; overflow: hidden; }
.rv-tabs__nav { display: flex; flex-wrap: nowrap; gap: .25rem; padding: .6rem .75rem 0; border-bottom: 1px solid rgba(7, 41, 77, .1); overflow-x: auto; scrollbar-width: none; background: var(--color-primary-pale, #F4F6F9); }
.rv-tabs__nav::-webkit-scrollbar { display: none; }
.rv-tabs__nav .nav-link { white-space: nowrap; border: 0; border-radius: 10px 10px 0 0; color: #55657a; font-weight: 600; font-size: .88rem; padding: .7rem 1.1rem; background: transparent; position: relative; }
.rv-tabs__nav .nav-link:hover { color: var(--color-primary); }
.rv-tabs__nav .nav-link.active { background: #fff; color: var(--color-primary); }
.rv-tabs__nav .nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--color-accent); border-radius: 10px 10px 0 0; }
.rv-tabs__content { padding: 1.75rem; color: #3f5068; line-height: 1.8; }
@media (min-width: 992px) { .rv-tabs__content { padding: 2.25rem 2.5rem; } }
.rv-tabs__content .tab-pane:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* ---------- Lector (modal) ---------- */
.rv-reader .modal-content { border: 0; border-radius: 12px; overflow: hidden; }
.rv-reader .modal-header { border-bottom: 1px solid rgba(7, 41, 77, .1); padding: .75rem 1rem; }
.rv-reader .min-w-0 { min-width: 0; }
.rv-reader__sub { display: block; font-size: .78rem; color: #6b7a8c; }
.rv-reader .modal-body { height: min(78vh, 860px); background: #e9edf2; }
.rv-reader__frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.rv-reader__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .3s; }
.rv-reader__loading.is-done { opacity: 0; }
.rv-reader__foot { gap: .5rem; padding: .6rem 1rem; }
@media (max-width: 991.98px) { .rv-reader .modal-body { height: auto; flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rv-cover, .rv-card, .rv-tile, .rv-cover__cta, .rv-subnav__link { transition: none !important; }
  .rv-cover--tilt { transform: none !important; }
}
