/* ═══════════════════════════════════════════════════════
   NUTRIPLAN — SEO & Content Pages Supplement
   Extends styles.css — does NOT override existing rules
═══════════════════════════════════════════════════════ */

/* ── AD SLOTS ────────────────────────────────────────── */
.ad-top    { margin: 0 0 28px; }
.ad-mid    { margin: 32px 0; }
.ad-bottom { margin: 32px 0 16px; }

/* ── ARTICLE KICKER + H1 ─────────────────────────────── */
.art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-lt);
  background: var(--green-dim);
  border: 1px solid rgba(95,168,110,.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.art-h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  color: var(--tx-1);
}

/* ── PROSE CONTENT ───────────────────────────────────── */
.prose { margin-bottom: 32px; }
.prose p {
  font-size: 15px;
  color: var(--tx-2);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 16px;
}
.prose p:last-child { margin-bottom: 0 }
.prose strong { color: var(--tx-1); font-weight: 700 }
.prose a { color: var(--green-lt); text-decoration: underline; text-underline-offset: 3px }
.prose a:hover { color: var(--green) }
.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.prose li {
  font-size: 15px;
  color: var(--tx-2);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 6px;
}
.prose li strong { color: var(--tx-1) }

/* ── ARTICLE H2 / H3 ─────────────────────────────────── */
.art-h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--tx-1);
  margin: 36px 0 14px;
}
.art-h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx-1);
  margin: 24px 0 10px;
}

/* ── INFO BOX ────────────────────────────────────────── */
.info-box {
  background: var(--bg-float);
  border: 1px solid var(--bdr-2);
  border-left: 3px solid var(--green);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.info-box p {
  font-size: 14px;
  color: var(--tx-2);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
}
.info-box p strong { color: var(--tx-1) }

.warn-box {
  background: var(--amber-dim);
  border: 1px solid rgba(212,150,58,.2);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.warn-box p { font-size: 14px; color: var(--tx-2); line-height: 1.7; font-weight: 500; margin: 0 }
.warn-box p strong { color: var(--tx-1) }

/* ── STAT STRIP ──────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0;
}
.ss-item {
  background: var(--bg-raised);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-md);
  padding: 18px 12px;
  text-align: center;
}
.ss-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--green-lt);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.ss-lbl {
  font-size: 11px;
  color: var(--tx-3);
  font-weight: 600;
  line-height: 1.4;
}

/* ── STEP LIST ───────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 }
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 16px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--green-dim);
  color: var(--green-lt);
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-title { font-size: 14px; font-weight: 700; color: var(--tx-1); margin-bottom: 4px }
.step-text  { font-size: 13px; color: var(--tx-2); line-height: 1.6; font-weight: 500 }
.step-text strong { color: var(--tx-1) }

/* ── CTA BOX ─────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #1a2f1f, #243827);
  border: 1px solid rgba(95,168,110,.2);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  text-align: center;
  margin: 36px 0 0;
}
.cta-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 12px;
}
.cta-box-title {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: rgba(255,255,255,.95);
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-box-text {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 24px;
  font-weight: 500;
}

/* ── RELATED ARTICLES ────────────────────────────────── */
.related-articles { margin: 36px 0 0 }

/* ── FORMULA BOX ─────────────────────────────────────── */
.formula-box {
  background: var(--bg-deep);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-md);
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--green-lt);
  line-height: 1.8;
  overflow-x: auto;
}

/* ── TABLE ───────────────────────────────────────────── */
.art-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--bdr-2);
}
.art-table th {
  background: var(--bg-float);
  color: var(--tx-1);
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bdr-2);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.art-table td {
  padding: 11px 14px;
  color: var(--tx-2);
  border-bottom: 1px solid var(--bdr);
  font-weight: 500;
  line-height: 1.5;
}
.art-table tr:last-child td { border-bottom: none }
.art-table tr:nth-child(even) td { background: rgba(255,255,255,.015) }
.art-table td strong { color: var(--tx-1) }

/* ── SITE FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--bdr);
  padding: 48px 20px 28px;
  margin-top: 60px;
}
.sf-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.sf-brand { }
.sf-desc {
  font-size: 13px;
  color: var(--tx-3);
  line-height: 1.7;
  font-weight: 500;
  margin-top: 12px;
}
.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sf-col { display: flex; flex-direction: column; gap: 8px }
.sf-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin-bottom: 4px;
}
.sf-col a {
  font-size: 13px;
  color: var(--tx-2);
  font-weight: 500;
  transition: color .15s;
  text-decoration: none;
}
.sf-col a:hover { color: var(--green-lt) }
.sf-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--bdr);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 11px;
  color: var(--tx-3);
  font-weight: 500;
}

/* ── LEGAL PAGE ──────────────────────────────────────── */
.legal-intro {
  font-size: 13px;
  color: var(--tx-3);
  font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bdr);
}

/* ── CONTACT FORM ────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px }
.form-group { display: flex; flex-direction: column; gap: 6px }
.form-label { font-size: 12px; font-weight: 700; color: var(--tx-2); letter-spacing: .04em }
textarea.input { resize: vertical; min-height: 120px; font-size: 14px; padding: 14px 16px }
.contact-alt {
  background: var(--bg-float);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--tx-2);
  line-height: 1.65;
  font-weight: 500;
}
.contact-alt strong { color: var(--tx-1) }
.contact-alt a { color: var(--green-lt) }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr 1fr }
  .sf-inner { grid-template-columns: 1fr }
  .sf-cols { grid-template-columns: 1fr 1fr }
  .sf-bottom { flex-direction: column; gap: 8px }
}
@media (max-width: 400px) {
  .sf-cols { grid-template-columns: 1fr }
  .stat-strip { grid-template-columns: 1fr }
}

/* Prevent grid children from causing overflow */
.stat-strip > *,
.sf-cols > *,
.sf-inner > * {
  min-width: 0;
  word-break: break-word;
}

/* ── FLOATING CTA → /curiosidades ───────────────────── */
.curio-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-card, #111827);
  color: var(--tx-1, #f0f4ff);
  border: 1px solid var(--bdr, rgba(255,255,255,.1));
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  z-index: 9000;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .35s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  will-change: transform, opacity;
  max-width: calc(100vw - 40px);
}
.curio-fab.curio-fab--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.curio-fab:hover {
  background: var(--bg-overlay, #1a2236);
  box-shadow: 0 6px 28px rgba(0,0,0,.45);
  transform: translateY(-2px);
  color: var(--tx-1, #f0f4ff);
  text-decoration: none;
}
.curio-fab:active {
  transform: translateY(0) scale(.97);
}
.curio-fab__icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.curio-fab__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.curio-fab__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 2px;
  transition: background .15s;
}
.curio-fab__close:hover {
  background: rgba(255,255,255,.2);
}
/* Ocultar en páginas /curiosidades (no tiene sentido mostrar CTA en la propia sección) */
body.page-curiosidades .curio-fab {
  display: none !important;
}
@media (max-width: 480px) {
  .curio-fab {
    bottom: 16px;
    right: 12px;
    font-size: 12px;
    padding: 10px 13px;
    gap: 6px;
  }
}

/* ── CALLOUT BLOCKS ──────────────────────────────────── */
.tip-box {
  background: rgba(91,141,232,.08);
  border: 1px solid rgba(91,141,232,.2);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tip-box-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4 }
.tip-box-body { flex: 1 }
.tip-box-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 5px }
.tip-box-text { font-size: 13.5px; color: var(--tx-2); line-height: 1.65; font-weight: 500; margin: 0 }
.tip-box-text strong { color: var(--tx-1) }

.error-box {
  background: rgba(224,92,107,.07);
  border: 1px solid rgba(224,92,107,.2);
  border-left: 3px solid var(--rose);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.error-box-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4 }
.error-box-body { flex: 1 }
.error-box-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); margin-bottom: 5px }
.error-box-text { font-size: 13.5px; color: var(--tx-2); line-height: 1.65; font-weight: 500; margin: 0 }
.error-box-text strong { color: var(--tx-1) }

.consejo-box {
  background: var(--green-dim);
  border: 1px solid rgba(95,168,110,.2);
  border-left: 3px solid var(--green);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.consejo-box-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4 }
.consejo-box-body { flex: 1 }
.consejo-box-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-lt); margin-bottom: 5px }
.consejo-box-text { font-size: 13.5px; color: var(--tx-2); line-height: 1.65; font-weight: 500; margin: 0 }
.consejo-box-text strong { color: var(--tx-1) }

/* ── VER TAMBIÉN (inline internal link) ──────────────── */
.ver-tambien {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-float);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t1), background var(--t1);
}
.ver-tambien:hover { border-color: var(--bdr-3); background: var(--bg-overlay) }
.ver-tambien-icon { font-size: 20px; flex-shrink: 0 }
.ver-tambien-body { flex: 1; min-width: 0 }
.ver-tambien-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 3px }
.ver-tambien-title { font-size: 13.5px; font-weight: 700; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.ver-tambien-arrow { font-size: 14px; color: var(--tx-3); flex-shrink: 0 }
.ver-tambien:hover .ver-tambien-arrow { color: var(--green-lt) }

/* ── SEARCH ──────────────────────────────────────────── */
.hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0 4px;
}
.hero-search-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx-3);
  text-align: center;
  margin-bottom: 10px;
}
.hero-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hero-search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
#hero-search {
  width: 100%;
  background: var(--bg-raised);
  border: 1.5px solid var(--bdr-2);
  border-radius: var(--r-xl);
  color: var(--tx-1);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 48px 16px 44px;
  outline: none;
  transition: border-color var(--t2), box-shadow var(--t2);
  box-sizing: border-box;
}
#hero-search::placeholder { color: var(--tx-3) }
#hero-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(95,168,110,.15);
}
.hero-search-kbd {
  position: absolute;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--tx-3);
  background: var(--bg-float);
  border: 1px solid var(--bdr);
  border-radius: 6px;
  padding: 2px 7px;
  letter-spacing: .04em;
  pointer-events: none;
}
#hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-float);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-result-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bdr);
  text-decoration: none;
  transition: background var(--t1);
}
.search-result-item:last-child { border-bottom: none }
.search-result-item:hover,
.search-result-item:focus { background: var(--bg-overlay); outline: none }
.sri-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 3px;
}
.sri-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tx-1);
  margin-bottom: 3px;
  line-height: 1.3;
}
.sri-desc {
  font-size: 12px;
  color: var(--tx-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── FLOATING SEARCH FAB ─────────────────────────────── */
#search-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(95,168,110,.45);
  z-index: 300;
  transition: transform var(--t2), background var(--t2), box-shadow var(--t2);
  -webkit-tap-highlight-color: transparent;
}
#search-fab:hover {
  transform: scale(1.08);
  background: #6fbf80;
  box-shadow: 0 6px 28px rgba(95,168,110,.55);
}
#search-fab:active { transform: scale(.94) }

/* ── SEARCH MODAL ────────────────────────────────────── */
#search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,10,15,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 400;
}
#search-modal {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--bg-raised);
  border: 1px solid var(--bdr-2);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
}
.search-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--bdr);
}
.search-modal-icon { font-size: 18px; flex-shrink: 0; color: var(--tx-3) }
#search-modal-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--tx-1);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  padding: 0;
}
#search-modal-input::placeholder { color: var(--tx-3) }
.search-modal-close {
  background: var(--bg-float);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  color: var(--tx-3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: .15s;
}
.search-modal-close:hover { color: var(--tx-1); border-color: var(--bdr-2) }
#search-modal-results {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-modal-hint {
  padding: 20px 16px;
  text-align: center;
  color: var(--tx-3);
  font-size: 13px;
  line-height: 1.6;
}
.search-modal-hint strong { color: var(--tx-2) }
@media (max-width: 480px) {
  #search-modal { top: 16px }
  .hero-search-kbd { display: none }
}

/* ── READING TIME + BREADCRUMB ───────────────────────── */
.art-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx-3);
}
.art-meta-sep { opacity: .35 }
.art-reading-time { display: flex; align-items: center; gap: 5px }
.art-reading-time::before { content: '⏱'; font-size: 11px }
.art-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.art-breadcrumb a {
  color: var(--tx-3);
  text-decoration: none;
  transition: color var(--t1);
}
.art-breadcrumb a:hover { color: var(--green-lt) }
.art-breadcrumb-sep { opacity: .4; font-size: 10px }

/* ── TABLE OF CONTENTS ───────────────────────────────── */
.art-toc {
  background: var(--bg-float);
  border: 1px solid var(--bdr-2);
  border-left: 3px solid var(--green);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}
.art-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 12px;
}
.art-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-toc-list li a {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t1);
  line-height: 1.4;
}
.art-toc-list li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  opacity: .6;
}
.art-toc-list li a:hover { color: var(--tx-1) }
.art-toc-list li a:hover::before { opacity: 1 }

/* ── DATE MODIFIED ───────────────────────────────────── */
.art-updated {
  font-size: 11px;
  color: var(--tx-3);
  font-weight: 600;
}

/* ── ARTICLE IMAGES / INFOGRAPHICS ────────────────────────────── */
.art-infographic {
  width: 100%;
  border-radius: var(--r-lg);
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--bdr-2);
  background: var(--bg-float);
}
.art-infographic svg { display: block; width: 100%; height: auto; }
.art-img-caption {
  font-size: 11px;
  color: var(--tx-3);
  text-align: center;
  padding: 8px 16px 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
