/* ==========================================================================
   Secciones below the fold: portafolio y modalidades
   ========================================================================== */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--c-bg-alt); border-block: 1px solid var(--c-border); }

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.section__head h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--c-accent);
}
.section__head > p:last-child { margin-top: 10px; color: var(--c-muted); }

/* ---------- Portafolio / Tipos de Trabajo ---------- */
.portfolio-groups { display: flex; flex-direction: column; gap: 42px; }
.portfolio__group-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.portfolio__group-head h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -.015em;
}
.portfolio__group-head p {
  font-size: 14px;
  color: var(--c-muted);
}

.portfolio {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 720px) {
  .portfolio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.work-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--c-bg-alt); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.work-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.work-card__body h3 { font-size: 17px; font-weight: 700; color: var(--c-accent); }
.work-card__body p { font-size: 14.5px; color: var(--c-text-soft); }

.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.meta li {
  padding: 3px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  font-size: 12px;
  color: var(--c-muted);
}

/* ---------- Comparativa de modalidades ---------- */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}
@media (min-width: 820px) {
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.plan--featured { background: var(--c-accent); border-color: var(--c-accent); color: #E2E8F0; box-shadow: var(--shadow-lg); }

.plan__badge {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.plan--featured .plan__badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }

.plan__title { font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--c-accent); }
.plan--featured .plan__title { color: #fff; }
.plan__sub { margin-top: -8px; color: var(--c-muted); }
.plan--featured .plan__sub { color: #CBD5E1; }

.plan__list { display: grid; gap: 10px; margin: 4px 0; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan--featured .plan__list li::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.plan__ideal { padding-top: 14px; border-top: 1px solid var(--c-border); font-size: 14px; }
.plan--featured .plan__ideal { border-top-color: rgba(255, 255, 255, .15); }
.plan .btn { margin-top: auto; }
