/* ══════════════════════════════════════════════════════
   ficha.css — Estilos compartidos para fichas técnicas
   Alemfarma S.A.S.
   ══════════════════════════════════════════════════════ */

/* ── Hero producto ── */
.product-hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.product-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.product-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.product-hero-text .label { display: block; margin-bottom: 12px; }
.product-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.product-hero-text .tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}
.product-hero-icon {
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: rgba(255,255,255,.6);
}

/* ── Secciones ── */
.prod-section     { padding: 56px 0; }
.prod-section-alt { background: var(--gray-50); }
.prod-section-title {
  font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding-bottom: 10px;
}

/* ── Macros ── */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.macro-card {
  text-align: center; padding: 24px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.macro-num   { font-size: 1.8rem; font-weight: 700; display: block; letter-spacing: -.03em; }
.macro-unit  { font-size: .78rem; color: var(--gray-500); }
.macro-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-top: 4px; display: block; }

/* ── Barras VCT ── */
.vct-bar-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.vct-bar-item { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.vct-bar-label  { width: 110px; font-weight: 600; color: var(--gray-700); flex-shrink: 0; }
.vct-bar-track  { flex: 1; height: 10px; background: var(--gray-100); border-radius: 5px; overflow: hidden; }
.vct-bar-fill   { height: 100%; border-radius: 5px; }
.vct-bar-pct    { width: 36px; text-align: right; font-weight: 700; color: var(--gray-700); flex-shrink: 0; }

/* ── Indicaciones ── */
.indica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.indica-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.indica-card h4 {
  font-size: .85rem; font-weight: 700;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.indica-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.indica-card li { font-size: .82rem; color: var(--gray-700); display: flex; align-items: flex-start; gap: 6px; }
.indica-card li::before { content: '·'; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Tabla nutricional ── */
.nutr-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.nutr-table th {
  color: #fff; padding: 12px 16px;
  font-weight: 700; font-size: .8rem;
  text-align: left; letter-spacing: .04em; text-transform: uppercase;
}
.nutr-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.nutr-table tr:last-child td { border-bottom: none; }
.nutr-table tr:nth-child(even) td { background: #f8fafc; }
.nutr-table .highlight td { font-weight: 700; color: var(--gray-900); }
.nutr-table .section-head td {
  background: var(--gray-100); font-weight: 700;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-700);
}

/* ── Tabla spec / ficha ── */
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.spec-table th {
  background: var(--gray-100); padding: 10px 14px;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--gray-700);
  border-bottom: 2px solid var(--gray-300);
}
.spec-table td { padding: 9px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.spec-table tr:nth-child(even) td { background: #f8fafc; }

/* ── Composición ── */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.comp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: var(--white);
  border: 1px solid var(--gray-100); border-radius: var(--radius);
  font-size: .82rem; color: var(--gray-700);
}

/* ── Registro ── */
.reg-card {
  border-radius: var(--radius-lg); padding: 36px 32px;
  color: #fff; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
}
.reg-item     { display: flex; flex-direction: column; gap: 4px; }
.reg-label    { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.reg-value    { font-size: 1rem; font-weight: 600; }

/* ── Info box ── */
.info-box {
  padding: 16px 20px; border-radius: var(--radius);
  border-left: 4px solid; margin-top: 20px;
  font-size: .875rem; color: var(--gray-700);
}

@media(max-width:768px) {
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-icon  { display: none; }
  .macro-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:480px) {
  .macro-grid { grid-template-columns: 1fr; }
}
