/* ═══════════════════════════════════════════════
   MAGA KITCHEN — articulo.css
   Páginas individuales del blog
═══════════════════════════════════════════════ */

/* ── Nav active ── */
.nav-active { color: var(--black) !important; position: relative; }
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--red);
}

/* ══ HERO ══ */
.art-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.art-hero-img {
  position: absolute;
  inset: 0;
}

.art-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.art-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.5) 45%,
    rgba(0,0,0,.1) 100%
  );
}

.art-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 48px;
  max-width: 860px;
}

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.art-breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.art-breadcrumb a:hover { color: var(--white); }
.art-breadcrumb span { color: rgba(255,255,255,.3); }
.art-breadcrumb span:last-child { color: rgba(255,255,255,.65); }

.art-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.art-cat {
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--red);
  padding: 4px 12px;
}

.art-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  line-height: 1.12;
  color: var(--white);
  font-weight: 400;
  max-width: 780px;
}

.art-hero-h1 em { color: var(--red); font-style: italic; }

/* ══ LAYOUT ══ */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  background: var(--white);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  width: 100%;
}

/* ══ ARTÍCULO ══ */
.art-body {
  padding: 48px 56px 64px 0;
  border-right: 1px solid var(--border);
}

/* Meta bar */
.art-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.art-meta-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.art-autor-avatar {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  flex-shrink: 0;
  letter-spacing: .5px;
}

.art-meta-autor strong {
  display: block;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  font-weight: 500;
}

.art-meta-autor span {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

.art-meta-right {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.art-meta-right span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

/* Intro box */
.art-intro-box {
  background: rgba(128,0,32,.05);
  border-left: 3px solid var(--red);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.art-intro-box p {
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #333;
  line-height: 1.7;
  margin: 0;
}

/* TOC */
.art-toc {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 20px 22px;
  margin-bottom: 40px;
}

.art-toc-title {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.art-toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.art-toc li { font-size: 13px; font-family: 'DM Sans', sans-serif; }

.art-toc a {
  color: var(--red);
  transition: opacity .2s;
  text-decoration: none;
}

.art-toc a:hover { opacity: .7; text-decoration: underline; }

/* Secciones */
.art-body section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.art-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--black);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
  padding-top: 8px;
  border-top: 2px solid var(--red);
}

.art-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin: 24px 0 8px;
}

.art-body p {
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #333;
  line-height: 1.8;
  margin-bottom: 14px;
}

.art-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.art-body a:hover { opacity: .75; }

.art-body strong { color: var(--black); }

/* Tablas */
.art-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.art-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.art-table thead tr { background: var(--black); }

.art-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--white);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .3px;
}

.art-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: #333;
  vertical-align: top;
  line-height: 1.5;
}

.art-table tbody tr:hover { background: rgba(128,0,32,.03); }

.art-table-featured td {
  background: rgba(128,0,32,.05);
  font-weight: 500;
}

.art-table-price {
  font-weight: 600 !important;
  color: var(--red) !important;
}

/* Nota informativa */
.art-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin: 16px 0;
}

.art-note svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }

.art-note p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Figura */
.art-figure {
  margin: 28px 0;
}

.art-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.art-figure figcaption {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  padding: 8px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* Cards grid materiales */
.art-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.art-card {
  border: 1px solid var(--border);
  padding: 18px 16px;
  background: var(--white);
  transition: border-color .2s;
}

.art-card:hover { border-color: var(--red); }

.art-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--black);
  margin: 0 0 6px;
  font-weight: 500;
  border: none;
  padding: 0;
}

.art-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
}

.art-card-tag {
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--red);
  border: 1px solid rgba(128,0,32,.25);
  padding: 3px 9px;
}

/* Lista de incluidos */
.art-include-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.art-include-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.art-include-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--red);
  opacity: .3;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.art-include-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 4px;
  border: none;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}

.art-include-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* FAQ */
.art-faq-section h2 { margin-bottom: 24px; }

.art-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.art-faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.art-faq-item h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin: 0 0 8px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  padding: 0;
}

.art-faq-item p {
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

/* CTA inline */
.art-cta-inline {
  background: var(--black);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.art-cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
  font-weight: 400;
  margin: 0 0 6px;
  border: none;
  padding: 0;
}

.art-cta-text p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.6;
}

.art-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ══ SIDEBAR ══ */
.art-sidebar {
  padding: 48px 0 64px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  bottom: 24px;        /* ← ancla al bottom */
  align-self: end;     /* ← clave: se alinea al final del contenedor */
  overflow-y: visible;
  max-height: none;
}

.art-sidebar-cta {
  background: var(--black);
  padding: 24px 20px;
}

.art-sidebar-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 6px;
}

.art-sidebar-cta p {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

.art-sidebar-widget {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.art-sidebar-title {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.art-sidebar-widget nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.art-sidebar-widget nav a {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  padding: 5px 8px;
  transition: all .2s;
}

.art-sidebar-widget nav a:hover {
  color: var(--red);
  padding-left: 12px;
  background: rgba(128,0,32,.04);
}

/* Artículos relacionados */
.art-related {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.art-related-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: opacity .2s;
}

.art-related-item:hover { opacity: .75; }

.art-related-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
}

.art-related-item p {
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 3px;
  font-weight: 500;
}

.art-related-item span {
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

/* Contacto sidebar */
.art-sidebar-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.art-sidebar-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  line-height: 1.5;
}

.art-sidebar-contact svg { color: var(--red); flex-shrink: 0; margin-top: 1px; }

.art-sidebar-contact a { color: var(--muted); transition: color .2s; }
.art-sidebar-contact a:hover { color: var(--red); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET ≤900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .art-hero { height: 380px; }
  .art-hero-h1 { font-size: 28px; }
  .art-hero-content { padding: 0 24px 40px; }

  .art-layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .art-body {
    padding: 36px 0 48px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .art-sidebar {
    position: static;
    max-height: none;
    padding: 36px 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .art-sidebar-cta { grid-column: span 2; }

  .art-cards-grid { grid-template-columns: 1fr 1fr; }
  .art-figure img { height: 280px; }
  .art-cta-inline { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .art-hero { height: 320px; }
  .art-hero-h1 { font-size: 20px; }
  .art-hero-content { padding: 0 16px 28px; }

  .art-layout { padding: 0 16px; width: 100%; overflow-x: hidden; }
  .art-body { padding: 24px 0 40px; overflow-x: hidden; }
  .art-body h2 { font-size: 19px; }
  .art-body h3 { font-size: 14px; }
  .art-body p { font-size: 14px; }

  /* Tablas responsivas */
  .art-table-wrap { margin: 14px -16px; padding: 0 16px; width: calc(100% + 32px); }
  .art-table { font-size: 12px; }
  .art-table th { padding: 10px 10px; font-size: 11px; }
  .art-table td { padding: 9px 10px; font-size: 12px; }

  /* TOC */
  .art-toc { padding: 14px 14px; }
  .art-toc li { font-size: 12px; }

  /* Intro box */
  .art-intro-box { padding: 12px 14px; }
  .art-intro-box p { font-size: 14px; }

  /* Cards */
  .art-cards-grid { grid-template-columns: 1fr; }

  /* Figura */
  .art-figure img { height: 200px; }

  /* Include items */
  .art-include-item { gap: 12px; }
  .art-include-num { font-size: 22px; width: 28px; }

  /* CTA inline */
  .art-cta-inline { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
  .art-cta-btns { flex-direction: column; width: 100%; }
  .art-cta-btns button { width: 100%; }

  /* Meta bar */
  .art-meta-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .art-meta-right { flex-wrap: wrap; gap: 8px; }

  /* Sidebar */
  .art-sidebar { grid-template-columns: 1fr; padding: 24px 0 40px; }
  .art-sidebar-cta { grid-column: span 1; }

  .nav { z-index: 401; }
}
