/* =====================================================
   InfoPepti — Estilos públicos
   Tema: laboratorio científico / dark
   ===================================================== */

:root {
  --bg-primary:     #060a14;
  --bg-secondary:   #0d1117;
  --bg-card:        #161b22;
  --bg-card-hover:  #1c2333;
  --border:         #30363d;
  --cyan:           #00d4ff;
  --cyan-dark:      #0099cc;
  --green:          #3fb950;
  --orange:         #f78166;
  --yellow:         #e3b341;
  --purple:         #a371f7;
  --text-primary:   #e6edf3;
  --text-secondary: #8b949e;
  --text-muted:     #6e7681;
  --gradient:       linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
  --font:           'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dark); }

h1,h2,h3,h4,h5,h6 { color: var(--text-primary); }

/* ─── Disclaimer banner ─────────────────────────────── */
.disclaimer-banner {
  background: rgba(230, 163, 65, 0.12);
  border-bottom: 1px solid rgba(230, 163, 65, 0.3);
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* ─── Navbar ─────────────────────────────────────────── */
.site-navbar {
  background: rgba(6, 10, 20, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: .75rem 0;
  z-index: 1030;
}

.logo-img { filter: brightness(1); transition: filter .2s; }
.logo-img:hover { filter: brightness(1.2); }

.site-navbar .nav-link {
  color: var(--text-secondary);
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: all .2s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}

.search-form .form-control.search-input {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
  font-size: .85rem;
  width: 180px;
}
.search-form .form-control.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.15);
  outline: none;
  width: 220px;
}
.search-form .btn-outline-secondary {
  border-color: var(--border);
  color: var(--text-secondary);
}
.search-form .btn-outline-secondary:hover { background: var(--bg-card); }

.lang-switcher { font-size: .8rem; }
.lang-switcher a { color: var(--text-muted); }
.lang-switcher a.active { color: var(--cyan); font-weight: 600; }
.lang-switcher span { color: var(--border); margin: 0 .25rem; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn-primary-cyan {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  transition: opacity .2s, transform .15s;
}
.btn-primary-cyan:hover { opacity: .9; color: #fff; transform: translateY(-1px); }

.btn-outline-cyan {
  border: 1px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  transition: all .2s;
}
.btn-outline-cyan:hover { background: var(--cyan); color: #000; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }

/* ─── Hero ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,255,.12), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(63,185,80,.06), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.25);
  color: var(--cyan);
  padding: .3rem .8rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #e6edf3, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0 .75rem;
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
}

/* ─── Buscador hero ─────────────────────────────────── */
.hero-search-form { width: 100%; max-width: 540px; }

.hero-search-inner {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,212,255,.35);
  border-radius: 12px;
  padding: .25rem .25rem .25rem 1rem;
  gap: .5rem;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search-inner:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.12);
}

.hero-search-icon {
  color: var(--cyan);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: .95rem;
  padding: .45rem 0;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-input::-webkit-search-cancel-button { display: none; }

.hero-search-btn {
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .45rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--cyan-dark); }

.hero-search-hints {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .5rem;
}
.hero-search-hints a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: .1rem .4rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .15s, color .15s;
}
.hero-search-hints a:hover {
  color: var(--cyan);
  border-color: rgba(0,212,255,.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}
.stat-label { font-size: .75rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-molecule { opacity: .7; }
.hero-molecule svg { width: 100%; max-width: 360px; }

.min-vh-75 { min-height: 75vh; }

/* ─── Sections ──────────────────────────────────────── */
.section-dark   { background: var(--bg-secondary); }
.section-darker { background: var(--bg-primary); }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── Category Cards ────────────────────────────────── */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-align: center;
  transition: all .2s;
  text-decoration: none;
}
.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.cat-icon { font-size: 1.8rem; }
.cat-name { font-size: .85rem; font-weight: 500; }

/* ─── Peptide Cards ─────────────────────────────────── */
.peptide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.peptide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cat-color, var(--cyan));
  opacity: 0;
  transition: opacity .2s;
}
.peptide-card:hover {
  border-color: rgba(0,212,255,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.peptide-card:hover::before { opacity: 1; }

.peptide-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
}
.cat-tag {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--cat-color, var(--cyan));
  background: color-mix(in srgb, var(--cat-color, var(--cyan)) 15%, transparent);
  padding: .2rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.peptide-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.peptide-aka {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0;
}
.peptide-summary {
  font-size: .85rem;
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}
.peptide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.btn-card-action {
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.25);
  color: var(--cyan);
  font-size: .8rem;
  padding: .3rem .75rem;
  border-radius: 6px;
  align-self: flex-start;
  transition: all .2s;
}
.btn-card-action:hover { background: var(--cyan); color: #000; }

/* ─── CTA Reconstitución ────────────────────────────── */
.reconstitution-cta { background: var(--bg-secondary); }
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.cta-icon {
  font-size: 3rem;
  color: var(--cyan);
}
.cta-title { font-size: 1.75rem; font-weight: 700; }
.cta-text { color: var(--text-secondary); max-width: 480px; margin: .75rem auto 1.5rem; }

/* ─── Page Header ────────────────────────────────────── */
.page-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.page-title { font-size: 2rem; font-weight: 800; }
.page-subtitle { color: var(--text-secondary); font-size: 1rem; }
.text-cyan { color: var(--cyan) !important; }

/* ─── Filter Panel ───────────────────────────────────── */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  position: sticky;
  top: 80px;
}
.filter-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-link {
  display: flex;
  align-items: center;
  padding: .35rem .5rem;
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: .85rem;
  transition: all .15s;
}
.filter-link:hover, .filter-link.active {
  background: rgba(0,212,255,.08);
  color: var(--cyan);
}

/* ─── Peptide Detail ─────────────────────────────────── */
.peptide-detail-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.peptide-detail-title { font-size: 2.2rem; font-weight: 800; }
.peptide-detail-aka { color: var(--text-muted); font-size: .85rem; }
.peptide-summary-box {
  background: rgba(0,212,255,.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: .95rem;
}

.detail-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.detail-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.detail-section-content {
  color: var(--text-secondary);
  font-size: .95rem;
}
.detail-section-content ul { padding-left: 1.25rem; }
.detail-section-content li { margin-bottom: .35rem; }
.detail-section-content p { margin-bottom: .75rem; }
.detail-section-content strong { color: var(--text-primary); }

/* ─── Data Card (sidebar) ────────────────────────────── */
.data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.data-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.data-row {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(48,54,61,.5);
}
.data-row:last-child { border-bottom: none; }
.data-label { font-size: .75rem; color: var(--text-muted); }
.data-value { font-size: .9rem; font-weight: 500; }

.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .5rem;
  color: var(--text-secondary);
  font-size: .85rem;
  border-radius: 6px;
  transition: all .15s;
  border-bottom: 1px solid var(--border);
}
.related-link:hover { background: rgba(255,255,255,.04); color: var(--text-primary); }

/* ─── Reconstitution page ────────────────────────────── */
.reconst-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.reconst-section:last-child { border-bottom: none; }
.reconst-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.material-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-secondary);
}
.material-item i { font-size: 1.1rem; flex-shrink: 0; }

.protocol-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: .75rem;
}
.protocol-step .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  background: rgba(0,212,255,.1);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.protocol-step h5 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.protocol-step p  { font-size: .85rem; color: var(--text-secondary); margin: 0; }

.formula-box {
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.formula-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan); margin-bottom: .5rem; }
.formula { font-family: monospace; font-size: .95rem; }

.example-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .85rem;
  color: var(--text-secondary);
}

.ref-table { font-size: .85rem; }
.ref-table td, .ref-table th { vertical-align: middle; }

.technique-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  height: 100%;
}
.technique-card i { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.technique-card h6 { font-size: .9rem; font-weight: 600; }
.technique-card p { font-size: .8rem; color: var(--text-secondary); margin: 0; }

.storage-table { border-radius: 8px; overflow: hidden; }
.storage-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.storage-row:last-child { border-bottom: none; }
.storage-label { font-size: .85rem; font-weight: 500; min-width: 180px; }
.storage-value { font-size: .85rem; color: var(--text-secondary); text-align: right; }

.toc-list { list-style: none; padding: 0; }
.toc-list li { padding: .25rem 0; }
.toc-list a { color: var(--text-secondary); font-size: .85rem; }
.toc-list a:hover { color: var(--cyan); }

/* ─── Info boxes ─────────────────────────────────────── */
.info-box {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
}
.info-warning {
  background: rgba(227, 179, 65, .1);
  border: 1px solid rgba(227, 179, 65, .3);
  color: var(--yellow);
}
.info-danger {
  background: rgba(247, 129, 102, .1);
  border: 1px solid rgba(247, 129, 102, .3);
  color: var(--orange);
}

/* ─── Login ──────────────────────────────────────────── */
.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.login-title { font-size: 1.4rem; color: var(--text-primary); }
.login-input {
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
.login-input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,.15) !important;
}
.input-group-text { border-color: var(--border) !important; }
.toggle-pass { cursor: pointer; }

/* ─── Empty state ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* ─── Pagination ─────────────────────────────────────── */
.pagination-dark .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}
.pagination-dark .page-link:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.pagination-dark .page-item.active .page-link {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ─── Badges ─────────────────────────────────────────── */
.badge.bg-success { background-color: #1a4731 !important; color: var(--green) !important; }
.badge.bg-warning { background-color: #3d2f0d !important; color: var(--yellow) !important; }
.badge.bg-danger  { background-color: #3d1515 !important; color: #ff7b72 !important; }
.badge.bg-info    { background-color: #0e2a3d !important; color: #58a6ff !important; }
.badge.bg-secondary { background-color: #1e2328 !important; color: var(--text-muted) !important; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.footer-text {
  color: #c9d1db;
}
.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { color: #c9d1db; font-size: .85rem; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  font-size: .8rem;
  background: rgba(0,0,0,.2);
  border-color: var(--border) !important;
}
.footer-bottom .footer-text { color: #c9d1db; }

/* ─── Calculadora de reconstitución ─────────────────── */
.calc-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.calc-header {
  background: linear-gradient(135deg, rgba(0,212,255,.08) 0%, rgba(0,212,255,.02) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.calc-body { padding: 1.25rem 1.5rem 1.5rem; }

/* Leyenda */
.calc-legend {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .9rem;
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.calc-legend strong { color: var(--text-primary); }

/* Labels e hints */
.calc-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .35rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.calc-hint {
  font-size: .72rem;
  color: var(--text-muted);
  min-height: 1.1em;
}

/* Inputs */
.calc-input {
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
.calc-input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(0,212,255,.15) !important;
}
.calc-suffix {
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
  font-size: .82rem;
  font-weight: 600;
  min-width: 52px;
  justify-content: center;
}

/* Toggle mcg / mg */
.calc-unit-toggle {
  display: flex;
  gap: 6px;
}
.calc-utoggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .35rem .5rem;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  background: var(--bg-secondary) !important;
  color: var(--text-secondary) !important;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.calc-utoggle-sub {
  font-size: .62rem;
  font-weight: 400;
  opacity: .7;
  display: block;
}
.calc-utoggle.active {
  background: rgba(0,212,255,.12) !important;
  border-color: rgba(0,212,255,.4) !important;
  color: var(--cyan) !important;
}
.calc-utoggle:hover:not(.active) {
  background: rgba(255,255,255,.06) !important;
  color: var(--text-primary) !important;
}

/* Fila cartucho */
.calc-cartridge-row {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem .9rem;
}
.calc-cartridge-row .form-check-input { border-color: var(--border); background-color: var(--bg-secondary); }
.calc-cartridge-row .form-check-input:checked { background-color: var(--cyan); border-color: var(--cyan); }
.calc-cartridge-row .form-check-label { font-size: .84rem; color: var(--text-secondary); }

/* Resultado */
.calc-result-box {
  background: rgba(0,212,255,.05);
  border: 1px solid rgba(0,212,255,.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.calc-result-main { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-primary); }
.calc-result-details { font-size: .82rem; color: var(--text-secondary); margin-bottom: .2rem; }
.calc-result-dose    { font-size: .82rem; color: var(--text-secondary); }

/* Subtítulo de tabla */
.calc-subtitle {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Tablas */
.calc-table { font-size: .79rem; }
.calc-table thead th {
  background: var(--bg-secondary) !important;
  color: var(--text-secondary);
  border-color: var(--border) !important;
  font-weight: 500;
  padding: .4rem .65rem;
  white-space: nowrap;
}
.calc-table td {
  border-color: var(--border) !important;
  color: var(--text-secondary);
  padding: .35rem .65rem;
  vertical-align: middle;
}
.calc-table .calc-rec td  { background: rgba(0,212,255,.08) !important; color: var(--text-primary); }
.calc-table .calc-target td { background: rgba(0,212,255,.06) !important; color: var(--text-primary); }

/* Badge */
.badge-rec {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  background: rgba(0,212,255,.18);
  color: var(--cyan);
  border-radius: 4px;
  padding: .1rem .4rem;
  vertical-align: middle;
  margin-left: .3rem;
  white-space: nowrap;
}

/* ─── Jeringas SVG ──────────────────────────────────────── */
.calc-syringe-col { min-width: 86px; flex: 1; max-width: 130px; }
.calc-syringe-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: .35rem;
  letter-spacing: .03em;
}
.calc-syringe-label span {
  display: block;
  font-size: .62rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}
.syringe-svg {
  width: 100%;
  max-width: 110px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.calc-syringe-info {
  font-size: .72rem;
  color: var(--text-secondary);
  margin-top: .45rem;
  min-height: 1.2em;
  line-height: 1.4;
}
.calc-syringe-info.ok { color: var(--cyan); }
.calc-syringe-info.over { color: #ef4444; }

/* Jeringa tachada (dosis no cabe) */
.calc-syringe-col.syringe-crossed { opacity: .45; }
.calc-syringe-col.syringe-crossed .calc-syringe-label {
  text-decoration: line-through;
  color: #ef4444 !important;
}

/* Tabla: filas clicables */
.calc-table tr[data-bw] { cursor: pointer; }
.calc-table tr[data-bw]:not(.calc-sel):not(.calc-rec):hover td {
  background: rgba(255,255,255,.04) !important;
}
.calc-table .calc-sel td {
  background: rgba(63,185,80,.1) !important;
  color: var(--text-primary);
}

/* Badge: seleccionada */
.badge-sel {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  background: rgba(63,185,80,.18);
  color: #3fb950;
  border-radius: 4px;
  padding: .1rem .4rem;
  vertical-align: middle;
  margin-left: .3rem;
  white-space: nowrap;
}

/* ─── Sponsor: estilos inline en header.php, sin CSS aquí ── */

/* ─── Admin: btn-cyan ────────────────────────────────── */
.btn-cyan { background: var(--cyan); color: #000 !important; border-color: var(--cyan); }
.btn-cyan:hover { background: #00b8d9; border-color: #00b8d9; }
.btn-outline-cyan { border-color: var(--cyan); color: var(--cyan); }
.btn-outline-cyan:hover { background: var(--cyan); color: #000; }

/* ─── Admin: primary-soft badge ─────────────────────── */
.bg-primary-soft { background: rgba(13,110,253,.12) !important; }

/* ─── Logo inline SVG en navbar ─────────────────────── */
.logo-inline { display: inline-flex; align-items: center; }
.logo-inline svg {
  height: 40px;
  width: 175px;   /* 40 × (210/48) */
  display: block;
  flex-shrink: 0;
}
@media (max-width: 575.98px) {
  .logo-inline svg {
    height: 32px;
    width: 140px;  /* 32 × (210/48) */
  }
}
/* Hero molecule (doble hélice) */
.hero-molecule svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0,212,255,.15));
}

/* ─── Página de contacto ─────────────────────────────── */
.contact-type-toggle {
  display: flex;
  gap: .5rem;
}
.ctype-btn {
  flex: 1;
  padding: .65rem 1rem;
  background: #161b22;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  font-size: .9rem;
  text-align: center;
}
.ctype-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.ctype-btn.active {
  border-color: var(--cyan);
  background: rgba(0,212,255,.08);
  color: var(--cyan);
  font-weight: 600;
}
.contact-success-box {
  background: #161b22;
  border-radius: 12px;
  padding: 3rem 2rem;
}

/* ─── Report panel en ficha de péptido ───────────────── */
.report-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255,193,7,.3);
  color: rgba(255,193,7,.7);
  font-size: .8rem;
  transition: all .2s;
}
.report-toggle-btn:hover {
  border-color: #ffc107;
  color: #ffc107;
  background: rgba(255,193,7,.06);
}
.report-panel {
  background: rgba(255,193,7,.04);
  border: 1px solid rgba(255,193,7,.2);
  border-radius: 8px;
  padding: 1rem;
}
.report-panel .form-control {
  background: #0d1117;
  border-color: rgba(255,255,255,.12);
  color: #e6edf3;
  font-size: .8rem;
}
.report-panel .form-control::placeholder { color: rgba(255,255,255,.3); }
.report-panel .form-control:focus {
  background: #0d1117;
  border-color: var(--cyan);
  color: #e6edf3;
  box-shadow: 0 0 0 2px rgba(0,212,255,.15);
}

/* ─── Admin: contactos ───────────────────────────────── */
.contact-row-pending { background: rgba(255,193,7,.04) !important; }
.contact-row-done    { opacity: .72; }
.pending-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #dc3545;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 9px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}
.word-break-all { word-break: break-all; }

/* ─── Multi-categorías en tarjetas ──────────────────────── */
.cat-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  align-items: center;
  min-width: 0;
}
/* Cat-tag como enlace (sidebar ficha) */
a.cat-tag-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity .15s;
}
a.cat-tag-link:hover { opacity: .8; }

/* ─── Checkboxes de categoría (admin form) ───────────────── */
.category-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem .75rem;
  padding: .5rem 0;
}
.cat-check-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  transition: background .15s, border-color .15s;
}
.cat-check-item:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
}
.cat-check-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px; height: 16px;
  cursor: pointer;
}
.cat-check-label {
  margin: 0;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.8);
}

/* ─── Tarjeta promo calculadora (home) ───────────────── */
.calc-promo-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, .25);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  background-image: linear-gradient(135deg, rgba(0,212,255,.05) 0%, rgba(0,64,255,.04) 100%);
  box-shadow: 0 0 40px rgba(0,212,255,.06), 0 4px 24px rgba(0,0,0,.4);
}

.calc-promo-bg-icon {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  line-height: 1;
  color: var(--cyan);
  opacity: .04;
  pointer-events: none;
  user-select: none;
}

.calc-promo-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .75rem;
  line-height: 1.2;
}

.calc-promo-text {
  color: var(--text-secondary);
  font-size: .975rem;
  line-height: 1.6;
  max-width: 560px;
}

.calc-feature {
  font-size: .875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  .calc-promo-card { padding: 1.75rem 1.25rem; }
  .calc-promo-title { font-size: 1.4rem; }
  .calc-promo-bg-icon { font-size: 9rem; right: -.5rem; }
}
