/* ============================================================
   EnPrision.com — Pop Comic CSS
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&family=Oswald:wght@400;600;700&display=swap');
/* ---- Tema dinámico (generado por admin) ---- */
@import url('/assets/css/theme.css');

/* ---- Variables ---- */
:root {
  --cream:    #FEF3C7;
  --ink:      #1E1B4B;
  --red:      #EF4444;
  --yellow:   #FACC15;
  --blue:     #3B82F6;
  --green:    #22C55E;
  --white:    #FFFFFF;
  --border:   4px solid var(--ink);
  --shadow:   6px 6px 0 var(--ink);
  --radius:   4px;
  --font-h:   'Bangers', cursive;
  --font-b:   'Comic Neue', cursive;
  --font-alt: 'Oswald', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  background-image:
    radial-gradient(circle, rgba(30,27,75,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  background: currentColor;
}

/* ---- Halftone overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30,27,75,0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--yellow);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 0 var(--ink);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.site-logo {
  font-family: var(--font-h);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 2px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 3px 3px 0 var(--red);
  white-space: nowrap;
}
.site-logo span { color: var(--red); }
.logo-img {
  height: 150px;
  width: auto;
}
.footer-logo-img {
  height: 40px;
  width: auto;
}
.logo-tagline {
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--yellow);
  padding: 3px 8px;
  border-radius: 2px;
  display: none;
}
@media (min-width: 640px) { .logo-tagline { display: block; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-color: var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--yellow);
    border-bottom: var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; }
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}
.content-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 768px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { order: 2; }
  .main-content { order: 1; }
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-widget {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.widget-title {
  font-family: var(--font-h);
  font-size: 20px;
  letter-spacing: 1px;
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-arrest-list { list-style: none; }
.sidebar-arrest-item {
  border-bottom: 2px solid var(--cream);
  transition: background 0.15s;
}
.sidebar-arrest-item:last-child { border-bottom: none; }
.sidebar-arrest-item a {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  align-items: center;
}
.sidebar-arrest-item a:hover { background: var(--cream); }
.sidebar-arrest-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--cream);
}
.sidebar-arrest-thumb-placeholder {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-arrest-info { flex: 1; min-width: 0; }
.sidebar-arrest-name {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-arrest-reason {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-arrest-badge {
  font-family: var(--font-alt);
  font-size: 10px;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}
.sidebar-cta {
  padding: 14px;
  text-align: center;
}
.btn-sidebar-cta {
  display: block;
  font-family: var(--font-h);
  font-size: 18px;
  letter-spacing: 1px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-sidebar-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

/* ============================================================
   HERO / FORMULARIO
   ============================================================ */
.hero-section {
  background: var(--white);
  background-image: url('/assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
  z-index: 0;
}
.hero-section > * {
  position: relative;
  z-index: 1;
}
.hero-section .hero-headline,
.hero-section .hero-sub,
.hero-section .form-label {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.hero-headline {
  font-family: var(--font-h);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 3px;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}
.hero-headline span { color: var(--red); }
.hero-sub {
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  color: #666;
  margin-bottom: 28px;
}
.hero-headline,
.hero-sub {
  display: none;
}
.speech-bubble {
  position: relative;
  background: var(--yellow);
  border: var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-block;
  font-family: var(--font-h);
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 24px;
  border: 7px solid transparent;
  border-top-color: var(--ink);
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 24px;
  border: 7px solid transparent;
  border-top-color: var(--yellow);
  z-index: 1;
}

/* Formulario */
.prison-form { max-width: 560px; margin: 0 auto; margin-top: 150px; transform: rotate(358deg);}
.form-group { margin-bottom: 18px; }
.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-label .label-icon { font-size: 18px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-b);
  font-size: 16px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.form-input:focus, .form-textarea:focus {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

.btn-prison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-h);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 3px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn-prison:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.btn-prison:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-prison .pow {
  font-family: var(--font-h);
  font-size: 20px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  animation: wobble 1s infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}
.btn-prison.loading { opacity: 0.7; pointer-events: none; }
.btn-prison .spinner {
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn-prison.loading .spinner { display: block; }
.btn-prison.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Urgente badge */
.urgente-badge {
  display: inline-flex;
  align-items: center;
  transform: rotate(355deg);
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  margin-bottom: 16px;
}
.urgente-badge::before {
  content: '🚨';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   SECCIÓN DE ARTÍCULOS RECIENTES
   ============================================================ */
.section-title {
  font-family: var(--font-h);
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 4px;
  background: var(--ink);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.article-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}
.article-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}
.card-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream);
  border-bottom: var(--border);
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cream);
  background-image: radial-gradient(circle, rgba(30,27,75,0.08) 1px, transparent 1px);
  background-size: 10px 10px;
}
.card-image-placeholder .placeholder-icon { font-size: 48px; }
.card-image-placeholder .placeholder-name {
  font-family: var(--font-h);
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 8px;
}
.card-action-burst {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-family: var(--font-h);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  transform: rotate(-3deg);
}
.card-body { padding: 12px; flex: 1; }
.card-name {
  font-family: var(--font-h);
  font-size: 20px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.card-reason {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: #888;
  font-family: var(--font-alt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.pagination a, .pagination span {
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.15s;
}
.pagination a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.pagination .current {
  background: var(--ink);
  color: var(--yellow);
}

/* ============================================================
   PÁGINA DE ARTÍCULO
   ============================================================ */
.article-header {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.article-header::before {
  content: 'URGENTE';
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 40px;
  transform: rotate(45deg);
}
.article-h1 {
  font-family: var(--font-h);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.article-meta {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-body {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.article-body h1 { font-family: var(--font-h); font-size: 36px; letter-spacing: 2px; margin-bottom: 16px; }
.article-body h2 { font-family: var(--font-h); font-size: 28px; letter-spacing: 1px; margin: 24px 0 12px; color: var(--red); }
.article-body h3 { font-family: var(--font-alt); font-size: 20px; font-weight: 700; margin: 20px 0 10px; border-left: 4px solid var(--yellow); padding-left: 12px; }
.article-body p { margin-bottom: 16px; line-height: 1.7; }
.article-body strong { font-weight: 700; }
.article-body blockquote {
  background: var(--cream);
  border-left: 6px solid var(--red);
  border: var(--border);
  border-left: 6px solid var(--red);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: var(--radius);
  font-style: italic;
  font-size: 15px;
}
.article-image {
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  display: block;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-main-image {
  margin: 20px 0;
  text-align: center;
}
.article-main-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
}

/* Testimonios */
.testimonials-section {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.testimonials-section h3 {
  font-family: var(--font-h);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--ink);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.testimony-card {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
  position: relative;
transform: rotate(-1deg);
}
.testimony-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 12px;
  font-family: var(--font-h);
  font-size: 48px;
  color: var(--red);
  line-height: 1;
}
.testimony-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  object-fit: cover;
  margin-bottom: 10px;
}
.testimony-title {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--red);
  margin-bottom: 6px;
}
.testimony-text {
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}
.testimony-author {
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  color: #666;
}

/* Compartir */
.share-section {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 24px;
  text-align: center;
}

.ad-block {
  margin: 20px 0;
  text-align: center;
  min-height: 90px;
}
.share-title {
  font-family: var(--font-h);
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.share-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter  { background: #000000; color: white; }
.share-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-stripe {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0, var(--red) 20px, var(--yellow) 20px, var(--yellow) 40px, var(--cream) 40px, var(--cream) 60px);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.footer-brand .footer-logo {
  font-family: var(--font-h);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: #aaa; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 2px solid rgba(255,255,255,0.1);
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
  font-family: var(--font-alt);
  letter-spacing: 0.5px;
}
.footer-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-family: var(--font-h);
  font-size: 16px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-left: 8px;
}

/* ============================================================
   LOADING / GENERANDO
   ============================================================ */
.generating-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,27,75,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.generating-overlay.active { display: flex; }
.generating-box {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  text-align: center;
  max-width: 400px;
}
.generating-box h2 {
  font-family: var(--font-h);
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.generating-box p { font-size: 14px; color: #555; }
.generating-dots span {
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  margin: 0 4px;
  animation: bounce 1.2s infinite;
}
.generating-dots span:nth-child(2) { animation-delay: 0.2s; }
.generating-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ============================================================
   ALERTAS / MENSAJES
   ============================================================ */
.alert {
  padding: 14px 18px;
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 600;
}
.alert-error   { background: #FEE2E2; border-color: var(--red); color: #991B1B; }
.alert-success { background: #DCFCE7; border-color: var(--green); color: #166534; }
.alert-info    { background: #DBEAFE; border-color: var(--blue); color: #1E40AF; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.comic-panel {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

/* ============================================================
   RESPONSIVE EXTRAS
   ============================================================ */
@media (max-width: 640px) {
  .hero-headline,
  .hero-sub {
    display: block;
  }
  .hero-section {
    background-position: right center;
    min-height: auto;
  }
  .hero-section { padding: 20px 16px; }
  .article-body { padding: 20px 16px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .share-buttons { flex-direction: column; }
  .share-btn { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
  font-family: var(--font-b);
  background: #f0f0f0;
  background-image: radial-gradient(circle, rgba(30,27,75,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  min-height: 100vh;
}
.admin-header {
  background: var(--ink);
  color: var(--yellow);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 4px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-logo {
  font-family: var(--font-h);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--yellow);
  text-decoration: none;
}
.admin-logo span { color: var(--red); }
.admin-user {
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-user a {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}
.admin-user a:hover { color: var(--yellow); }
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.admin-sidebar {
  width: 240px;
  background: var(--ink);
  border-right: 4px solid var(--yellow);
  flex-shrink: 0;
  padding: 20px 0;
}
.admin-nav-section {
  padding: 0 16px;
  margin-bottom: 8px;
}
.admin-nav-section-title {
  font-family: var(--font-alt);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  padding: 8px 8px 4px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #ccc;
  text-decoration: none;
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.15s;
  margin-bottom: 2px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(250,204,21,0.15);
  color: var(--yellow);
}
.admin-nav a.active {
  background: var(--yellow);
  color: var(--ink);
}
.admin-nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-main {
  flex: 1;
  padding: 28px;
  overflow-x: auto;
}
.admin-page-title {
  font-family: var(--font-h);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.admin-card-header {
  background: var(--cream);
  border-bottom: var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-card-title {
  font-family: var(--font-alt);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-card-body { padding: 20px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 2px solid var(--cream);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }
.admin-table img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  background: var(--white);
  color: var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-sm { padding: 4px 8px; font-size: 11px; }
.btn-primary { background: var(--ink); color: var(--yellow); }
.btn-danger  { background: var(--red); color: white; border-color: var(--red); }
.btn-success { background: var(--green); color: white; border-color: var(--green); }
.btn-warning { background: var(--yellow); color: var(--ink); }
.btn-info    { background: var(--blue); color: white; border-color: var(--blue); }
.admin-form-group { margin-bottom: 18px; }
.admin-form-label {
  display: block;
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--ink);
}
.admin-form-input, .admin-form-select, .admin-form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-b);
  font-size: 14px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s;
}
.admin-form-input:focus, .admin-form-select:focus, .admin-form-textarea:focus {
  box-shadow: 3px 3px 0 var(--ink);
}
.admin-form-textarea { resize: vertical; min-height: 120px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-alt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
  border: 1.5px solid currentColor;
}
.badge-success { color: #166534; background: #DCFCE7; }
.badge-danger  { color: #991B1B; background: #FEE2E2; }
.badge-warning { color: #92400E; background: #FEF3C7; }
.badge-info    { color: #1E40AF; background: #DBEAFE; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-h);
  font-size: 40px;
  letter-spacing: 2px;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-top: 4px;
}
