/* =============================================
   HUELLAS COMUNES — Estilos Principales
   Moderno: azul profundo, animaciones, tipografía mejorada
   ============================================= */


/* ---------- Variables ----------
   Paleta "códice/sepia" del sitio personal (café-arena, títulos Cinzel Decorative) */
:root {
  --color-bg:        #f3e4cf;
  --color-surface:   #f7f0e3;
  --color-border:    rgba(122, 88, 53, 0.25);
  --color-text:      #3b2a1a;
  --color-muted:     #6a5844;
  --color-subtle:    #8a7052;
  --color-dark:      #2b1b0e;
  --color-accent:    #7a5835;
  --color-accent-strong: #5a3820;
  --color-accent-soft:  rgba(180, 138, 90, 0.18);

  --font-sans:       system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:      'Cinzel Decorative', 'Times New Roman', serif;

  --radius:          8px;
  --radius-lg:       14px;
  --shadow:          0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-md:       0 10px 28px rgba(0, 0, 0, 0.12);

  --max-width:       1200px;
  --nav-height:      70px;
}

/* ---------- Dark Mode Variables ---------- */
html.dark {
  --color-bg:           #0d1221;
  --color-surface:      #161f39;
  --color-border:       #293352;
  --color-text:         #f5f7ff;
  --color-muted:        #b4bfdf;
  --color-subtle:       #9cacd7;
  --color-dark:         #ffffff;
  --color-accent:       #4f7ef0;
  --color-accent-strong:#7aa3f5;
  --color-accent-soft:  rgba(255,255,255,0.15);
  --shadow:             0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:          0 4px 16px rgba(0,0,0,0.55);
}

/* Hero en dark mode — fondo claro, texto oscuro para contraste */
html.dark .hero__label    { color: #3b5bab; }
html.dark .hero__title    { color: #121f3a; }
html.dark .hero__subtitle { color: #3d4f7a; }

html.dark .navbar {
  background: rgba(17,17,17,0.97);
}

html.dark .navbar__mobile {
  background: #111;
}

html.dark .section--gray {
  background: #161616;
}

html.dark .footer {
  background: #000;
}

html.dark .donate-box {
  background: #000;
  border: 1px solid #2e2e2e;
}

html.dark .admin-table tr:hover td { background: #1a1a1a; }
html.dark .admin-table th { background: #1a1a1a; }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .7; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(80px, 10vw, 130px) 0; }
.section--gray { background: var(--color-surface); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
  color: var(--color-text);
  line-height: 1.2;
}

.section-title span {
  display: block;
  width: 70px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 999px;
  margin-top: 14px;
}

.section-title .st-text {
  display: inline;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  margin-top: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: calc(var(--radius) * 1.25);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .25s ease, color .25s ease, transform .22s ease, box-shadow .25s ease;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(17, 34, 101, 0.14);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30,58,138,0.2);
}

.btn--primary:hover {
  background: var(--color-accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(30,58,138,0.3);
  opacity: 1;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}

.btn--donate {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius);
}

.btn--donate:hover {
  background: var(--color-accent-strong);
  opacity: 1;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: .75rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ---------- Navbar: el mismo menú del sitio personal ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(243, 228, 207, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(180, 138, 90, 0.35);
  padding: 0.4rem 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.9;
  text-align: center;
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.main-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.main-nav a:hover {
  background: rgba(214, 185, 138, 0.22);
  border-color: rgba(180, 138, 90, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.main-nav a.active {
  background: linear-gradient(135deg, #d6b98a, #c79f6d);
  border-color: rgba(122, 88, 53, 0.6);
  color: #2b1b0e;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
  }

  .site-title {
    font-size: 0.9rem;
    text-align: left;
  }

  .main-nav {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    gap: 0.4rem;
  }

  .main-nav a {
    font-size: 0.72rem;
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.navbar__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: .9rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0;
  flex-shrink: 0;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar__nav a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color .2s, background .2s;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--color-text);
  background: var(--color-surface);
  opacity: 1;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Social icons in navbar */
.navbar__socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__social-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--color-muted);
  transition: color .2s, background .2s;
  border: none;
  background: none;
  cursor: pointer;
}

.navbar__social-icon:hover {
  color: var(--color-text);
  background: var(--color-surface);
  opacity: 1;
}

.navbar__social-icon svg { display: block; }

/* Dark mode toggle button */
.btn-darkmode {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  background: none;
  cursor: pointer;
  color: var(--color-muted);
  transition: color .2s, border-color .2s, background .2s;
}

.btn-darkmode:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 20px;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--color-muted);
  font-size: .9rem;
}
.navbar__mobile a:hover { background: var(--color-surface); color: var(--color-text); opacity: 1; }
.navbar__mobile .btn--donate { align-self: flex-start; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 15vw, 160px) 0 100px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 42%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(30,58,138,0.12) 0%, rgba(30,58,138,0.02) 42%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(30,58,138,0.09) 0%, rgba(30,58,138,0.01) 38%, transparent 48%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero__label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  color: var(--color-muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
  text-align: justify;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Cards / Tarjetas ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
  box-shadow: 0 4px 16px rgba(17, 34, 101, 0.06);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--color-accent-soft);
  border-radius: 50%;
  z-index: 0;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--color-accent);
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-subtle);
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--color-text);
}

.card__text {
  font-size: .95rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.card__author {
  font-size: .8rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ---------- Equipo ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-muted);
  overflow: hidden;
}

.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card__name {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.team-card__institution {
  font-size: .775rem;
  color: var(--color-subtle);
  font-style: italic;
  margin-bottom: 12px;
}

.team-card__cv {
  font-size: .8rem;
  color: var(--color-muted);
  line-height: 1.55;
  text-align: left;
  margin-bottom: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

.team-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 4px;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: border-color .2s, color .2s;
}

.team-card__link:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  opacity: 1;
}

/* ---------- Equipo: paginación ---------- */
.equipo-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.equipo-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: .85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.equipo-page-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.equipo-page-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* ---------- Equipo: acciones admin sobre cards ---------- */
.team-card--editable {
  position: relative;
}

.team-card__admin-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.btn-icon--sm {
  font-size: .78rem;
  padding: 3px 10px;
  height: auto;
}

/* ---------- Patrocinadores ---------- */
.sponsors-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.sponsor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  opacity: .75;
  transition: opacity .2s;
}

.sponsor-logo:hover { opacity: 1; }

.sponsor-logo__img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface, #fff);
  transition: box-shadow .2s;
}

.sponsor-logo:hover .sponsor-logo__img { box-shadow: var(--shadow); }

.sponsor-logo__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .2s;
}

.sponsor-logo:hover .sponsor-logo__img img { filter: grayscale(0); }

.sponsor-logo__name {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  text-align: center;
  max-width: 80px;
}

.sponsor-initials {
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: .05em;
}

/* ---------- Donaciones ---------- */
.donate-box {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

.donate-box h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.donate-box p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: justify;
}

#sobre p { text-align: justify; }

.btn-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0070ba;
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-paypal:hover {
  background: #005ea6;
  transform: translateY(-2px);
  opacity: 1;
}

mark {
  background: rgba(0,0,0,.08);
  padding: 0 2px;
  border-radius: 2px;
}

/* ---------- Búsqueda en Números ---------- */

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* ---------- Números / Issues ---------- */
.issue-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s;
}

.issue-card:hover { box-shadow: var(--shadow-md); }

.issue-card__cover {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.issue-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--color-surface);
}

.issue-card__date {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .82rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  max-width: calc(100% - 28px);
}

html.dark .issue-card__date {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
}

.issue-card__content {
  padding: 20px;
}

.issue-card__label { 
  font-size: .7rem; 
  text-transform: uppercase; 
  letter-spacing: .1em;
  color: var(--color-subtle);
  margin-bottom: 8px;
  font-weight: 600;
}

.issue-card__title { 
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.issue-card__meta {
  font-size: .8rem;
  color: var(--color-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.issue-card__toggle {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.issue-card__toggle:hover { opacity: .85; }

/* Para búsqueda en móvil */
@media (max-width: 768px) {
  .issue-card {
    max-width: 100%;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  justify-items: center;
  margin-bottom: 32px;
}
.footer__grid--compact { text-align: center; }

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand-desc { font-size: .875rem; line-height: 1.6; max-width: 520px; }


.footer__socials { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.footer__social {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-weight: 700;
  transition: border-color .2s, color .2s;
}
.footer__social:hover { border-color: rgba(255,255,255,.4); color: #fff; opacity: 1; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer__bottom a { color: rgba(255,255,255,.5); }
.footer__bottom a:hover { color: rgba(255,255,255,.8); opacity: 1; }
.footer-bottom-issn { opacity: .5; }
.footer-bottom-issn::before { content: '·'; margin-right: 12px; }

/* ---------- Toast / Notification ---------- */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: transform .3s, opacity .3s;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Data source badge (admin only) ---------- */
.data-source-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  z-index: 1100;
  opacity: 0.9;
  pointer-events: none;
}

.data-source-badge[data-source="draft"] { background: #0f766e; }
.data-source-badge[data-source="live"]  { background: #1d4ed8; }
.data-source-badge[data-source="file"]  { background: #6b7280; }

/* ---------- Loader ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--color-muted);
  font-size: .9rem;
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Impresión / PDF ---------- */
@media print {
  .navbar, .footer, .btn { display: none !important; }
  body { font-size: 12pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --nav-height: 58px; }

  .navbar__nav { display: none; }
  .navbar__actions .btn--donate { display: none; }
  .navbar__hamburger { display: flex; }

  .hero { padding: 60px 0 48px; }

  .section { padding: 56px 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .issue-card { grid-template-columns: 1fr; max-width: 100%; }

  .cards { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .donate-box { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
