:root {
  --azul-revista: #293f84;
  --azul-revista-oscuro: #1f315f;
  --azul-header: #284685;
  --dorado-revista: #ad8e2f;
  --dorado-oscuro: #927527;
  --texto: #333333;
  --texto-suave: #666666;
  --borde-suave: #e5e5e5;
  --blanco: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--texto);
  background: #ffffff;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.top-brand {
  background: linear-gradient(90deg, var(--azul-header), #1e3b78);
  color: #ffffff;
}

.brand-shield img,
.editorial-logo {
  max-height: 82px;
  width: auto;
  max-width: 100%;
}

.brand-title {
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-title span {
  display: block;
  font-size: clamp(0.95rem, 1.5vw, 1.4rem);
  font-weight: 700;
}

.brand-title strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: clamp(0.68rem, 1vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.65em;
  color: rgba(255, 255, 255, 0.8);
}

.navbar-revista {
  min-height: 36px;
  padding: 0;
  background: var(--dorado-revista);
}

.navbar-revista .navbar-brand,
.navbar-revista .nav-link {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.navbar-revista .nav-link {
  padding: 0.65rem 1rem;
}

.navbar-revista .nav-link:hover,
.navbar-revista .nav-link.active {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.14);
}

.navbar-revista .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  margin: 0.25rem 0;
}

.navbar-revista .navbar-toggler-icon {
  filter: invert(1);
}

/* HERO */
.hero-revista {
  background: #dcb52d;
  overflow: hidden;
}

.hero-revista img {
  width: 100%;
  display: block;
}

/* GENERALES */
.section-space {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-title {
  margin: 0 0 2rem;
  color: var(--azul-revista);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.section-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-title-line::before,
.section-title-line::after {
  content: "";
  display: block;
  height: 1px;
  max-width: 300px;
  flex: 1;
  background: var(--borde-suave);
}

.editorial-content {
  max-width: 920px;
  margin: 0 auto;
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

/* SECCIONES */
.section-grid {
  max-width: 1040px;
  margin: 0 auto;
}

.section-banner {
  display: block;
  overflow: hidden;
  min-height: 110px;
  background: #eeeeee;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.section-banner img {
  width: 100%;
  height: 110px;
  display: block;
  object-fit: cover;
}

.section-banner:hover,
.section-banner:focus {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  filter: saturate(1.05);
}

/* ARTÍCULOS */
.featured-articles {
  background: #ffffff;
}

.article-card {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

.article-image {
  width: 210px;
  height: 210px;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
}

.article-card h3 {
  min-height: 92px;
  margin: 0 0 1rem;
  color: #222222;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.16;
}

.article-author {
  margin-bottom: 1.2rem;
  font-style: italic;
  font-size: 1.05rem;
  color: #333333;
}

.btn-revista {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--azul-revista);
  --bs-btn-border-color: var(--azul-revista);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--azul-revista-oscuro);
  --bs-btn-hover-border-color: var(--azul-revista-oscuro);
  --bs-btn-active-bg: var(--azul-revista-oscuro);
  --bs-btn-active-border-color: var(--azul-revista-oscuro);
  border-radius: 0;
  padding: 0.65rem 1.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* CONVOCATORIA */
.callout-revista {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--azul-revista);
  color: #ffffff;
}

.cover-image {
  width: min(100%, 315px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.cover-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cover-note {
  font-size: 1.05rem;
  line-height: 1.35;
}

.callout-revista h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  text-transform: uppercase;
}

.callout-revista h3 {
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
}

.callout-text {
  max-width: 520px;
  margin: 0 auto 1.3rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.45;
}

.callout-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  line-height: 1.22;
}

.callout-revista a {
  color: #ffffff;
  font-weight: 700;
}

/* FOOTER */
.footer-revista {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: var(--dorado-revista);
  color: #ffffff;
}

.footer-revista h4 {
  margin-bottom: 1.4rem;
  font-size: 1.12rem;
  font-weight: 500;
  text-transform: uppercase;
}

.footer-revista p,
.footer-revista li {
  font-size: 0.86rem;
  line-height: 1.35;
}

.directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-list li {
  margin-bottom: 0.35rem;
}

.directory-list strong,
.directory-list span {
  display: block;
}

.directory-list strong {
  font-weight: 500;
}

.directory-list span {
  font-size: 0.78rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-size: 1.65rem;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: var(--azul-revista);
  transform: translateY(-2px);
}

/* BOTÓN SUBIR */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--azul-revista);
  border: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.back-to-top.is-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  color: #ffffff;
  background: var(--azul-revista-oscuro);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .site-header {
    position: static;
  }

  .brand-subtitle {
    letter-spacing: 0.28em;
  }

  .navbar-revista .nav-link {
    padding: 0.75rem 0.25rem;
    text-align: center;
  }

  .article-card h3 {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .top-brand {
    text-align: center;
  }

  .brand-shield img {
    max-height: 68px;
  }

  .brand-subtitle {
    letter-spacing: 0.12em;
  }

  .section-title-line::before,
  .section-title-line::after {
    display: none;
  }

  .editorial-content {
    text-align: left;
  }

  .section-banner img {
    height: auto;
    min-height: 90px;
  }

  .article-image {
    width: 180px;
    height: 180px;
  }

  .footer-revista {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
