/* ReconoSERte — estilos página Nutrición */

/* Sección oscura de contraste */
.dark-section {
  background: #35714C;
  color: #F2F8F0;
}
.dark-section .section-head { margin-inline: auto; text-align: center; max-width: 720px; }
.dark-section .section-head h2 { color: #FDFBF8; }
.dark-section .section-head p { color: #D8DDD2; }
.dark-section .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #DCE6D6;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.why-card .ico {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px;
}
.why-card h3 { color: #FDFBF8; font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { font-size: 0.92rem; color: #D8DDD2; }
.why-card.why-cta {
  background: var(--card); border: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: flex-start;
}
.why-card.why-cta p { color: var(--ink-soft); font-size: 0.98rem; }
.why-card.why-cta strong { color: var(--sage-deep); }

/* El camino diferente — filas */
.path-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.path-rows { display: grid; }
.path-row {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--line); align-items: start;
}
.path-row:last-child { border-bottom: 1px solid var(--line); }
.path-row h3 { font-size: 1.08rem; }
.path-row p { color: var(--ink-soft); font-size: 0.96rem; }

/* Equipo */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.team-card .team-body { padding: 22px 24px; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .team-role { color: var(--sage-deep); font-weight: 700; font-size: 0.88rem; margin-bottom: 10px; }
.team-card p { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 920px) {
  .why-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; gap: 36px; }
  .path-row { grid-template-columns: 1fr; gap: 8px; }
  .team-grid { grid-template-columns: 1fr; }
}

.why-card .ico svg { width: 22px; height: 22px; color: #E9F0E4; }

/* ---------- Antes / Después: comparador deslizable ---------- */
@property --x { syntax: '<length-percentage>'; inherits: false; initial-value: 50%; }
.ba-section { background: var(--card); }
.ba-wrap {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  min-height: 380px; touch-action: pan-y; cursor: ew-resize;
  user-select: none; -webkit-user-select: none;
}
.ba-wrap.ba-tease { transition: --x 0.5s ease-in-out; }
.ba-pane {
  position: absolute; inset: 0; padding: 44px 48px;
  display: grid; align-content: center; gap: 14px;
}
.ba-after { padding-left: max(54%, 48px); padding-right: 40px; }
.ba-before { background: color-mix(in oklab, var(--terra) 38%, white); padding-right: max(54%, 48px); }
.ba-after {
  background: color-mix(in oklab, var(--sage) 40%, white);
  clip-path: inset(0 0 0 var(--x));
}
.ba-tag {
  justify-self: start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.ba-before .ba-tag { background: var(--terra-deep); color: #fff; }
.ba-after .ba-tag { background: var(--sage-deep); color: #fff; }
.ba-pane h3 { font-size: 1.45rem; }
.ba-pane ul { list-style: none; display: grid; gap: 10px; max-width: 480px; margin: 0; padding: 0; }
.ba-pane li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.97rem; color: var(--ink); line-height: 1.5;
}
.ba-pane li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 0.5em;
}
.ba-before li::before { background: var(--terra-deep); }
.ba-after li::before { background: var(--sage-deep); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--x);
  width: 0; display: grid; place-items: center; z-index: 2; outline: none;
}
.ba-handle::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px;
  background: var(--card); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ba-knob {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--card); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(40, 50, 44, 0.35); transition: transform 0.15s;
}
.ba-wrap:hover .ba-knob, .ba-handle:focus-visible .ba-knob { transform: scale(1.08); }
.ba-knob svg { width: 22px; height: 22px; }
.ba-note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }
@media (max-width: 700px) {
  .ba-pane { padding: 28px 22px; align-content: start; padding-top: 56px; }
  .ba-before { padding-right: max(52%, 22px); }
  .ba-after { padding-left: max(52%, 22px); padding-right: 18px; }
  .ba-wrap { min-height: 520px; }
  .ba-pane h3 { font-size: 1.1rem; }
  .ba-pane li { font-size: 0.85rem; }
}

