/* ==========================================================================
   Fundación de Exalumnos Maristas del Cervantes, A.C.
   Hoja de estilos — sitio institucional + blog

   Paleta oficial (Manual de Identidad, Vértice Comunicación 2011):
     Pantone 301 C  -> #0065A4  (azul primario)
     Pantone 542    -> #56A0D3  (azul secundario)
   Tipografía institucional: Gotham. Se usa "Montserrat" (Google Fonts,
   licencia libre) como sustituto web de peso/proporción similar, ya que
   Gotham es una fuente comercial no distribuible.
   ========================================================================== */

:root {
  --blue-900: #013a5c;
  --blue-800: #0065a4; /* Pantone 301 C — primario */
  --blue-700: #0a5f92;
  --blue-500: #2f86bf;
  --blue-400: #56a0d3; /* Pantone 542 — secundario */
  --blue-100: #e6f0f8;
  --blue-50: #f4f9fc;

  --gray-900: #1c2530;
  --gray-700: #4a5566;
  --gray-500: #74808f;
  --gray-300: #d7dee6;
  --gray-100: #f1f4f7;
  --white: #ffffff;

  --success: #2f8f4e;
  --success-bg: #e9f7ee;
  --danger: #c0392b;
  --danger-bg: #fdecea;

  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(1, 58, 92, 0.09);
  --shadow-lg: 0 20px 50px rgba(1, 58, 92, 0.16);
}

/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-lead {
  font-size: 17px;
  color: var(--gray-700);
  max-width: 680px;
}
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.text-white { color: var(--white) !important; }

/* ---------- Iconos (sprite inline) ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-800); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-900); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--white); color: var(--blue-800); border-color: var(--blue-800); }
.btn-secondary:hover { background: var(--blue-50); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a5291d; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 102px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 78px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--blue-800); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; color: var(--blue-900); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 102px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn span.long { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background-image: linear-gradient(160deg, rgba(1, 58, 92, 0.75) 0%, rgba(0, 101, 164, 0.72) 55%, rgba(10, 95, 146, 0.7) 100%), url("/images/imagen_1.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/pattern-tile.png");
  background-size: 340px;
  opacity: 0.16;
  mix-blend-mode: screen;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue-400); }
.hero p.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 560px;
}
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); font-weight: 600; }

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card-title { color: var(--white); font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.hero-card-sub { color: rgba(255,255,255,0.7); font-size: 13.5px; margin-bottom: 22px; }
.hero-illustration { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
}

/* ==========================================================================
   IMPACTO / STATS BAR
   ========================================================================== */
.impact-strip {
  background: var(--blue-50);
  border-bottom: 1px solid var(--gray-100);
}
.impact-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 24px;
}
.impact-item { display: flex; align-items: center; gap: 14px; }
.impact-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-800); flex-shrink: 0;
}
.impact-item strong { display: block; font-size: 20px; color: var(--blue-900); font-weight: 800; }
.impact-item span { font-size: 12.5px; color: var(--gray-500); font-weight: 600; }
@media (max-width: 900px) { .impact-strip .container { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   CARDS genéricas
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-100); color: var(--blue-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--gray-700); }

/* ---------- Nosotros / historia ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

.value-pill {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.value-pill:last-child { border-bottom: none; }
.value-pill .icon { color: var(--blue-800); margin-top: 2px; }
.value-pill strong { display: block; font-size: 14.5px; color: var(--blue-900); }

.mv-card { background: var(--blue-900); color: var(--white); border-radius: var(--radius-lg); padding: 34px; position: relative; overflow: hidden; }
.mv-card + .mv-card { margin-top: 22px; }
.mv-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/pattern-tile.png"); background-size: 260px;
  opacity: 0.14; mix-blend-mode: screen;
}
.mv-card * { position: relative; }
.mv-card .icon { color: var(--blue-400); margin-bottom: 14px; width: 30px; height: 30px; }
.mv-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.mv-card p { font-size: 14.5px; color: rgba(255,255,255,0.82); }

.timeline-quote {
  border-left: 3px solid var(--blue-400);
  padding: 4px 0 4px 20px;
  font-size: 16px;
  font-style: normal;
  color: var(--blue-900);
  font-weight: 700;
  margin: 22px 0;
}

/* ---------- Cómo participar (pasos) ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 16.5px; font-weight: 800; color: var(--blue-900); margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--gray-700); }

/* ---------- Donativos ---------- */
.donate-section {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 54px;
  position: relative;
  overflow: hidden;
}
.donate-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/pattern-tile.png"); background-size: 300px;
  opacity: 0.14; mix-blend-mode: screen;
}
.donate-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; gap: 30px; } .donate-section { padding: 34px 26px; } }

.bank-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.14); gap: 12px; }
.bank-row:last-child { border-bottom: none; }
.bank-row span.label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); font-weight: 700; }
.bank-row span.value { font-size: 15px; font-weight: 700; font-family: "SFMono-Regular", Consolas, monospace; }
.copy-btn {
  background: rgba(255,255,255,0.14); border: none; color: var(--white);
  width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.copy-btn:hover { background: rgba(255,255,255,0.28); }
.copy-btn .icon { width: 16px; height: 16px; }

.deductible-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; margin-top: 18px;
}

/* ---------- Becas ---------- */
.scholarship-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--blue-50); border-radius: var(--radius-lg); padding: 44px;
}
@media (max-width: 900px) { .scholarship-panel { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Blog preview / listado ---------- */
.post-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--blue-800), var(--blue-400)); position: relative; overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .icon { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; color: rgba(255,255,255,0.75); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--blue-100); color: var(--blue-800); padding: 4px 10px; border-radius: 999px;
}
.post-card-body h3 { font-size: 17px; font-weight: 800; color: var(--blue-900); line-height: 1.35; }
.post-card-body p { font-size: 14px; color: var(--gray-700); flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray-500); font-weight: 600; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }
.read-more { font-size: 13.5px; font-weight: 800; color: var(--blue-800); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.read-more .icon { width: 15px; height: 15px; transition: transform .15s ease; }
.post-card:hover .read-more .icon { transform: translateX(3px); }

/* ---------- Testimonios ---------- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100);
  padding: 30px; box-shadow: var(--shadow); height: 100%;
}
.testimonial-card .icon { color: var(--blue-400); width: 28px; height: 28px; margin-bottom: 14px; }
.testimonial-card p.quote { font-size: 15px; color: var(--gray-900); font-weight: 600; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue-800); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 13.5px; color: var(--blue-900); }
.testimonial-author span { font-size: 12px; color: var(--gray-500); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon { color: var(--blue-800); }
.contact-item strong { display: block; font-size: 14.5px; color: var(--blue-900); margin-bottom: 3px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--gray-700); }
.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-100); color: var(--blue-800);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.social-btn:hover { background: var(--blue-800); color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 14.5px; color: var(--gray-900);
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-800); }
.field textarea { resize: vertical; min-height: 110px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.78); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/pattern-tile.png"); background-size: 320px;
  opacity: 0.08; mix-blend-mode: screen;
}
.footer-top { position: relative; padding: 64px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 48px; margin-bottom: 14px; border-radius: 6px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; flex-wrap: wrap; gap: 10px;
}

/* ==========================================================================
   PÁGINAS DE BLOG (listado / artículo)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800));
  color: var(--white); padding: 64px 0; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/images/pattern-tile.png"); background-size: 300px; opacity: 0.14; mix-blend-mode: screen;
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--white); }

.tag-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tag-filter a {
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--gray-300); color: var(--gray-700);
}
.tag-filter a.active, .tag-filter a:hover { background: var(--blue-800); border-color: var(--blue-800); color: var(--white); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state .icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--gray-300); }

/* ---------- Artículo individual ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: -70px auto 40px; box-shadow: var(--shadow-lg); aspect-ratio: 21/9; background: linear-gradient(135deg, var(--blue-800), var(--blue-400)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 17px; color: var(--gray-900); line-height: 1.85; }
.article-body h2 { font-size: 24px; font-weight: 800; color: var(--blue-900); margin: 34px 0 14px; }
.article-body h3 { font-size: 19px; font-weight: 800; color: var(--blue-900); margin: 26px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue-400);
  color: var(--blue-900); font-weight: 700; font-size: 18px;
}
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--blue-900); }
.article-body a { color: var(--blue-800); text-decoration: underline; }
.article-header { text-align: center; margin-bottom: 10px; }
.article-header h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: var(--blue-900); margin: 14px 0; }

.related-posts { border-top: 1px solid var(--gray-100); margin-top: 60px; padding-top: 50px; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-shell { min-height: 100vh; background: var(--gray-100); }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--gray-300);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px; height: 68px;
}
.admin-topbar .brand img { height: 36px; border-radius: 6px; }
.admin-main { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.admin-header h1 { font-size: 24px; font-weight: 800; color: var(--blue-900); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); padding: 14px 18px; background: var(--gray-100); }
.admin-table td { padding: 16px 18px; border-top: 1px solid var(--gray-100); font-size: 14px; vertical-align: middle; }
.status-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.status-badge.published { background: var(--success-bg); color: var(--success); }
.status-badge.draft { background: var(--gray-100); color: var(--gray-500); }
.row-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--gray-300); background: var(--white);
  display: inline-flex; align-items: center; justify-content: center; color: var(--gray-700);
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn .icon { width: 16px; height: 16px; }
.icon-btn.danger:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue-900), var(--blue-800)); padding: 24px; position: relative; overflow: hidden;
}
.login-shell::before {
  content: ""; position: absolute; inset: 0; background-image: url("/images/pattern-tile.png");
  background-size: 320px; opacity: 0.14; mix-blend-mode: screen;
}
.login-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-card img { height: 52px; margin: 0 auto 20px; border-radius: 8px; }
.login-card h1 { font-size: 20px; font-weight: 800; color: var(--blue-900); text-align: center; margin-bottom: 6px; }
.login-card p.sub { text-align: center; font-size: 13.5px; color: var(--gray-500); margin-bottom: 26px; }

.editor-grid { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-panel { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.editor-panel + .editor-panel { margin-top: 20px; }
.editor-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 16px; }
.field-hint { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; }
.md-textarea { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 13.5px; min-height: 420px; line-height: 1.7; }
.cover-preview { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); object-fit: cover; margin-bottom: 12px; background: var(--gray-100); }

.helper-note {
  display: flex; gap: 12px; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--blue-900);
}
.helper-note .icon { color: var(--blue-800); flex-shrink: 0; }

/* ---------- Página no encontrada / error ---------- */
.status-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.status-page .icon { width: 56px; height: 56px; color: var(--blue-400); margin-bottom: 20px; }
.status-page h1 { font-size: 26px; font-weight: 800; color: var(--blue-900); margin-bottom: 10px; }
.status-page p { color: var(--gray-500); margin-bottom: 26px; max-width: 420px; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
