/* Estilos modernos y enérgicos para RECARGACCION.TOP */

* {
  box-sizing: border-box;
}

body.theme-recargaccion {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: radial-gradient(circle at top left, #fef3c7 0, #fffbeb 26%, #e0f2fe 65%, #f9fafb 100%);
  color: #0f172a;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Cabecera */

.site-header {
  background: linear-gradient(90deg, #0f172a, #111827);
  color: #f9fafb;
  padding: 0.9rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #f97316 0, #ec4899 40%, #22c55e 80%);
  border: 2px solid rgba(252, 211, 77, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 100%;
  max-height: 100%;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Navegación */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.main-nav a:hover {
  border-color: #f97316;
  background: rgba(15, 23, 42, 0.9);
}

.main-nav a.active {
  background: linear-gradient(90deg, #f97316, #22c55e);
  color: #111827;
  border-color: transparent;
}

/* Contenedor principal */

.content {
  max-width: 1120px;
  margin: 1.8rem auto 2.8rem auto;
  padding: 0 1rem;
}

/* Tarjetas */

.card {
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
}

.panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 18px 40px rgba(148, 163, 184, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* Hero dividido */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 1.6rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.hero-left h2 {
  margin-top: 0.4rem;
  font-size: 1.9rem;
  color: #0f172a;
}

.hero-left p {
  font-size: 0.98rem;
  color: #1f2933;
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.9);
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.hero-right img {
  border-radius: 18px;
}

.hero-right figcaption {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 0.45rem;
}

/* Grid de tres columnas */

.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-three h3 {
  margin-top: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f97316;
}

.grid-three h4 {
  margin: 0.4rem 0 0.8rem 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.grid-three p {
  font-size: 0.93rem;
  color: #374151;
}

.card-highlight {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(45, 212, 191, 0.12));
}

/* Botones */

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, #f97316, #22c55e);
  color: #111827;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #fb923c, #16a34a);
}

.btn-secondary {
  background: #0f172a;
  color: #f9fafb;
}

.btn-secondary:hover {
  background: #111827;
}

.btn-ghost {
  background: transparent;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.9);
}

.btn-ghost:hover {
  background: rgba(248, 250, 252, 0.9);
}

.inline-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 600;
  color: #f97316;
}

.inline-link:hover {
  text-decoration: underline;
}

/* Layout con sidebar */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.article-main {
  background: rgba(255, 255, 255, 0.98);
}

.article-header h1 {
  margin-top: 0;
  font-size: 1.55rem;
  color: #0f172a;
}

.meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.article-main p {
  font-size: 0.98rem;
  color: #111827;
}

.article-main h2 {
  font-size: 1.25rem;
  margin-top: 1.6rem;
  color: #0f172a;
}

.article-image {
  margin: 1.3rem 0;
}

.article-image img {
  border-radius: 14px;
}

.article-image figcaption {
  font-size: 0.83rem;
  color: #6b7280;
  margin-top: 0.45rem;
}

/* Sidebar */

.sidebar {
  background: rgba(255, 255, 255, 0.96);
}

.sidebar h2,
.sidebar h3 {
  margin-top: 0;
  color: #0f172a;
}

.sidebar-list,
.sidebar-links {
  list-style: none;
  padding-left: 1rem;
}

.sidebar-list li,
.sidebar-links li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.sidebar-links a {
  color: #0f766e;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* Autores */

.authors-page .page-intro h1 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #0f172a;
}

.author-card {
  margin-top: 1.2rem;
}

.author-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #0f172a;
}

.author-card p {
  color: #111827;
}

/* Pie de página */

.site-footer {
  text-align: center;
  padding: 1.7rem 1rem 2.2rem 1rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  background: linear-gradient(0deg, #020617, #0f172a);
}

/* Responsivo */

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 1rem;
  }

  .grid-three {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 1.2rem 1.1rem;
  }

  .brand-text h1 {
    font-size: 1.1rem;
  }
}
