/* Manual Técnico NutriPlant PRO — estilos públicos */
:root {
  --mt-bg: #f8fafc;
  --mt-surface: #ffffff;
  --mt-text: #0f172a;
  --mt-muted: #64748b;
  --mt-border: #e2e8f0;
  --mt-accent: #0369a1;
  --mt-accent-soft: #e0f2fe;
  --mt-green-soft: #ecfdf5;
  --mt-max-chapter: 48rem;
  --mt-max-index: min(108rem, calc(100vw - 48px));
  --mt-header-max: min(108rem, calc(100vw - 48px));
  --mt-pad-x: clamp(16px, 2vw, 32px);
  --mt-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--mt-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mt-text);
  background: var(--mt-bg);
}

.mt-header {
  background: var(--mt-surface);
  border-bottom: 1px solid var(--mt-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mt-header-inner {
  max-width: var(--mt-header-max);
  margin: 0 auto;
  padding: 12px var(--mt-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.mt-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
  margin-left: auto;
}
.mt-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mt-social-links .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}
.mt-social-links .social-btn:hover {
  transform: translateY(-1px);
}
.mt-social-links .social-btn[data-social="facebook"]:hover { color: #1877f2; }
.mt-social-links .social-btn[data-social="instagram"]:hover { color: #e4405f; }
.mt-social-links .social-btn[data-social="tiktok"]:hover { color: #000000; }
.mt-social-links .social-btn[data-social="youtube"]:hover { color: #ff0000; }
.mt-social-links .social-btn[data-social="linkedin"]:hover { color: #0077b5; }
.mt-social-links .social-btn[data-social="whatsapp"]:hover { color: #25d366; }
.mt-social-links .social-icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 640px) {
  .mt-header-inner { flex-wrap: wrap; }
  .mt-nav a { margin-left: 10px; font-size: 13px; }
  .mt-social-links { gap: 8px; }
}
.mt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.mt-brand img { height: 36px; width: auto; }
.mt-brand span { font-weight: 700; font-size: 15px; color: var(--mt-accent); }
.mt-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mt-nav a {
  color: var(--mt-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 16px;
  white-space: nowrap;
}
.mt-nav a:hover { color: var(--mt-accent); }
.mt-brand { flex-shrink: 0; }

.mt-autoria-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.mt-autoria-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  transform: translateY(-1px);
}
.mt-autoria-btn--active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}
.mt-autoria-btn__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.mt-quote {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 28px;
}
.mt-quote p { margin: 0; color: #0c4a6e; font-size: 15px; line-height: 1.55; }

.mt-profile-card {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.mt-profile-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.mt-profile-card__mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.mt-profile-card__name {
  margin: 0;
  font-size: 1.2rem;
  color: #0c4a6e;
}
.mt-profile-card__role {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mt-muted);
}
.mt-profile-card p { margin: 0 0 12px; }
.mt-profile-card p:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  .mt-autoria-btn__text { display: none; }
  .mt-autoria-btn { padding: 0 10px; }
}

.mt-wrap {
  max-width: var(--mt-max-chapter);
  margin: 0 auto;
  padding: 32px var(--mt-pad-x) 64px;
  width: 100%;
}
.mt-wrap--wide {
  max-width: min(var(--mt-max-index), 100%);
}

/* Índice: intro en dos columnas en pantalla ancha */
.mt-index-intro {
  display: grid;
  gap: 20px;
  margin-bottom: 8px;
}
@media (min-width: 960px) {
  .mt-index-intro {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .mt-index-intro .mt-note { margin: 0; height: 100%; }
}

/* Búsqueda en índice */
.mt-search {
  margin: 28px 0 32px;
  padding: 20px clamp(16px, 2vw, 24px);
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.mt-search-label {
  display: block;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}
.mt-search-field { position: relative; }
.mt-search-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--mt-text);
  background: var(--mt-bg);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mt-search-input:focus {
  border-color: var(--mt-accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}
.mt-search-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--mt-muted);
}
.mt-search-results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border: 1px solid var(--mt-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mt-surface);
}
.mt-search-item { border-bottom: 1px solid var(--mt-border); }
.mt-search-item:last-child { border-bottom: 0; }
.mt-search-item.is-active { background: var(--mt-accent-soft); }
.mt-search-item-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.mt-search-item-link:hover,
.mt-search-item.is-active .mt-search-item-link {
  background: var(--mt-accent-soft);
}
.mt-search-item-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}
.mt-search-item-body { min-width: 0; }
.mt-search-item-title {
  display: block;
  font-weight: 600;
  color: var(--mt-accent);
  line-height: 1.35;
}
.mt-search-item-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mt-muted);
}
.mt-search-empty {
  margin: 10px 0 0;
  font-size: 14px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
}

/* Banner flujo plataforma (índice) */
.mt-flow-banner {
  display: block;
  margin: 0 0 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mt-flow-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.12);
}
.mt-flow-banner__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.mt-flow-banner__icon { font-size: 1.5rem; line-height: 1; }
.mt-flow-banner__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0c4a6e;
}
.mt-flow-banner__text {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.mt-flow-banner__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mt-accent);
}

.mt-flow-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 16px 0 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-radius: 10px;
}
.mt-flow-map__step {
  font-weight: 700;
  font-size: 14px;
  color: #0c4a6e;
  background: var(--mt-surface);
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 6px 12px;
}
.mt-flow-map__arrow {
  color: var(--mt-muted);
  font-weight: 700;
  font-size: 15px;
}
.mt-flow-map__example {
  flex: 1 1 100%;
  margin: 10px 0 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
}

.mt-hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
  border: 1px solid #7dd3fc;
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 40px);
  margin-bottom: 32px;
}
.mt-hero__aside {
  margin: 14px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}
@media (min-width: 960px) {
  .mt-hero--index {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px 40px;
    align-items: center;
  }
  .mt-hero--index .mt-hero__main { min-width: 0; }
  .mt-hero--index .mt-hero__aside {
    font-size: 15px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    padding-left: 24px;
    border-left: 3px solid #7dd3fc;
  }
}
.mt-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
}
.mt-hero .lead {
  margin: 0;
  color: #334155;
  font-size: 1.05rem;
}
.mt-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mt-accent);
  background: var(--mt-accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.mt-meta {
  font-size: 13px;
  color: var(--mt-muted);
  margin-bottom: 24px;
}

h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--mt-border);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 20px; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; color: #1e293b; }

p, li { color: #334155; }
ul, ol { padding-left: 1.25rem; margin: 0 0 14px; }

.mt-formula {
  background: #f1f5f9;
  border-left: 4px solid var(--mt-accent);
  padding: 14px 16px;
  margin: 16px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 0 8px 8px 0;
}
.mt-note {
  background: var(--mt-accent-soft);
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.mt-note strong { color: #0c4a6e; }
.mt-disclaimer {
  font-size: 14px;
  font-weight: 700;
  color: #0c4a6e;
  margin: 12px 0;
}
.mt-warn {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 16px 0;
}

.mt-pillars {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .mt-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .mt-pillars { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1280px) {
  .mt-pillars { gap: 18px; }
  .mt-pillar { padding: 18px 20px; }
}
@media (min-width: 1440px) {
  .mt-pillars { grid-template-columns: repeat(4, 1fr); }
}

.mt-pillar {
  background: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-radius: 10px;
  padding: 16px;
}
.mt-pillar--highlight {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff 0%, var(--mt-surface) 100%);
}
.mt-pillar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.mt-pillar-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.mt-pillar ul { margin: 0; padding-left: 18px; font-size: 14px; }

.mt-chapter-list { list-style: none; padding: 0; margin: 0; }
.mt-chapters-sub {
  font-size: 1rem;
  margin: 28px 0 10px;
  color: #1e293b;
  font-weight: 700;
}
.mt-chapters-sub:first-of-type { margin-top: 12px; }

@media (min-width: 720px) {
  .mt-chapter-list--wide,
  .mt-chapter-list--pending {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 56px);
  }
  .mt-chapter-list--wide li,
  .mt-chapter-list--pending li {
    break-inside: avoid;
  }
}
@media (min-width: 1100px) {
  .mt-chapter-list--wide,
  .mt-chapter-list--pending {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.mt-chapter-list--pending .mt-chapter-pending-title {
  color: #64748b;
  font-weight: 600;
  line-height: 1.4;
}
.mt-chapter-list li {
  border-bottom: 1px solid var(--mt-border);
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mt-chapter-list a {
  color: var(--mt-accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.mt-chapter-pillar-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.mt-chapter-list a:hover { text-decoration: underline; }
.mt-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.mt-status--live { background: var(--mt-green-soft); color: #166534; }
.mt-status--soon { background: #f1f5f9; color: #64748b; }

.mt-footer {
  margin-top: 48px;
  padding: 20px var(--mt-pad-x) 32px;
  border-top: 1px solid var(--mt-border);
  font-size: 13px;
  color: var(--mt-muted);
  text-align: center;
  max-width: var(--mt-header-max);
  margin-left: auto;
  margin-right: auto;
}
.mt-footer a { color: var(--mt-accent); }

table.mt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
table.mt-table th, table.mt-table td {
  border: 1px solid var(--mt-border);
  padding: 8px 10px;
  text-align: left;
}
table.mt-table th { background: #f1f5f9; font-weight: 600; }

.mt-breadcrumb {
  font-size: 13px;
  color: var(--mt-muted);
  margin-bottom: 20px;
}
.mt-breadcrumb a { color: var(--mt-accent); text-decoration: none; }
.mt-breadcrumb a:hover { text-decoration: underline; }

.mt-toolbar {
  margin: -8px 0 18px;
}
.mt-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--mt-accent);
  background: var(--mt-accent-soft);
  border: 1px solid #7dd3fc;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.mt-back-btn:hover {
  background: #bae6fd;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.mt-back-btn:active {
  transform: translateY(0);
}

.mt-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--mt-border);
  font-size: 14px;
}
.mt-chapter-nav a { color: var(--mt-accent); font-weight: 600; text-decoration: none; }
.mt-chapter-nav a:hover { text-decoration: underline; }
