/* ═══════════════════════════════════════════════
   CERTIFICACIONES — estilos específicos de página
   Los tokens y base están en style.css (global)
═══════════════════════════════════════════════ */

/* ── HERO ── */
.cert-hero {
  text-align: center;
  padding: 96px 48px 80px;
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cert-hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(116,33,252,.045) 0%, transparent 68%);
  pointer-events: none;
}
.cert-hero__ann {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  font-size: 13.5px;
  color: var(--gy);
  margin-bottom: 40px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
.cert-hero__ann .sm { color: var(--v); font-weight: 600; border-left: 1px solid rgba(27,27,27,.12); padding-left: 10px; }
.cert-hero__h {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .93;
  text-transform: uppercase;
  color: var(--bk);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}
.cert-hero__h span { display: block; }
.cert-hero__h em {
  font-style: normal;
  background: linear-gradient(125deg, var(--v), var(--vm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cert-hero__desc {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gy);
  margin-bottom: 40px;
}

/* ── PROCESS ── */
.cert-process {
  padding: 88px 48px;
  max-width: var(--max);
  margin: 0 auto;
}
.cert-process__header { text-align: center; margin-bottom: 56px; }
.cert-process__header .section-desc { margin: 0 auto; }

.steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.steps::before {
  content: '';
  position: absolute;
  left: 15px; top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--v), var(--lime));
  border-radius: 2px;
}
.step { position: relative; margin-bottom: 24px; }
.step:last-child { margin-bottom: 0; }
.step__dot {
  position: absolute;
  left: -40px; top: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--v);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(116,33,252,.25);
}
.step__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  transition: border-color .28s, box-shadow .28s, transform .28s;
}
.step__card:hover {
  border-color: rgba(116,33,252,.2);
  box-shadow: 0 14px 48px rgba(116,33,252,.12);
  transform: translateY(-3px);
}
.step__num {
  font-size: 11px;
  font-weight: 800;
  color: var(--v);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.step__card h3 { font-size: 17px; font-weight: 700; color: var(--bk); margin-bottom: 8px; }
.step__card p { font-size: 14px; line-height: 1.7; color: var(--gy); }

/* ── CERTIFICATES GRID ── */
.certs-section {
  padding: 88px 48px;
  background: var(--gl);
}
.certs-section__inner { max-width: var(--max); margin: 0 auto; }
.certs-section__header { text-align: center; margin-bottom: 56px; }
.certs-section__header .section-desc { margin: 0 auto; }

.cert-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cert-card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .28s, box-shadow .28s, transform .28s;
  display: flex;
  flex-direction: column;
}
.cert-card-item:hover {
  border-color: rgba(116,33,252,.2);
  box-shadow: 0 14px 48px rgba(116,33,252,.12);
  transform: translateY(-4px);
}
.cert-card__top {
  padding: 32px 24px 24px;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cert-card-item:nth-child(1) .cert-card__top { background: linear-gradient(135deg, #7421fc, #e221fc); }
.cert-card-item:nth-child(2) .cert-card__top { background: linear-gradient(135deg, #7421fc, #213bfc); }
.cert-card-item:nth-child(3) .cert-card__top { background: linear-gradient(135deg, #7421fc, #fc7421); }
.cert-card-item:nth-child(4) .cert-card__top { background: linear-gradient(135deg, var(--lime), #a8d640); }
.cert-card-item:nth-child(5) .cert-card__top { background: var(--bk); }

.cert-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
.cert-card__icon img { width: 36px; height: 36px; object-fit: contain; }
.cert-card__level {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
}
.cert-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cert-card__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--bk);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.1;
  letter-spacing: .02em;
}
.cert-card__desc { font-size: 13px; line-height: 1.65; color: var(--gy); margin-bottom: 18px; flex: 1; }
.cert-card__reqs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cert-card__reqs li {
  font-size: 12px;
  color: var(--gy);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.cert-card__reqs li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v);
  flex-shrink: 0;
  margin-top: 6px;
  opacity: .5;
}

/* ── BADGES ── */
.badges-section { padding: 88px 48px; }
.badges-section__inner { max-width: var(--max); margin: 0 auto; }
.badges-section__header { text-align: center; margin-bottom: 56px; }
.badges-section__header .section-desc { margin: 0 auto; }

.badge-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.badge-card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color .28s, box-shadow .28s, transform .28s;
}
.badge-card-item:hover {
  border-color: rgba(116,33,252,.2);
  box-shadow: 0 14px 48px rgba(116,33,252,.12);
  transform: translateY(-4px);
}
.badge-card__icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}
.badge-card__icon img { width: 88px; height: 88px; object-fit: contain; }
.badge-card__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--bk);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.badge-card__sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--v);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.badge-card__desc { font-size: 13px; line-height: 1.65; color: var(--gy); }

/* ── CTA ── */
.cert-cta { padding: 88px 48px; }
.cert-cta__card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--vd) 0%, var(--v) 40%, var(--vm) 72%, #b06eff 100%);
}
.cert-cta__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, rgba(196,163,255,.1) 35%, transparent 68%);
  pointer-events: none;
}
.cert-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 40px;
}
.cert-cta__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.cert-cta__desc {
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255,255,255,.72);
}
.cert-cta__btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cert-cta__btn-lime {
  display: inline-block;
  padding: 16px 48px;
  background: var(--lime);
  color: var(--bk);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: background .22s, transform .22s, box-shadow .22s;
}
.cert-cta__btn-lime:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.cert-cta__btn-ghost {
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .22s, background .22s;
}
.cert-cta__btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cert-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .badge-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .cert-hero, .cert-process, .certs-section, .badges-section, .cert-cta { padding: 60px 20px; }
  .cert-hero__h { font-size: clamp(36px, 9vw, 64px); }
  .cert-grid-5 { grid-template-columns: 1fr 1fr; }
  .badge-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cert-grid-5 { grid-template-columns: 1fr; }
  .steps { padding-left: 32px; }
  .step__dot { left: -32px; width: 28px; height: 28px; font-size: 11px; }
  .steps::before { left: 12px; }
  .cert-hero { padding: 48px 16px 40px; }
  .cert-hero__h { font-size: clamp(30px, 10vw, 44px); }
  .cert-process,
  .certs-section,
  .badges-section,
  .cert-cta { padding-left: 16px; padding-right: 16px; }
  .cert-cta__content { padding: 40px 20px; }
  .cert-cta__btns { flex-direction: column; }
  .cert-cta__btn-lime,
  .cert-cta__btn-ghost { width: 100%; text-align: center; padding: 14px 24px; }
  .step__card { padding: 20px; }
}

/* overflow-x global para mobile */
html, body { overflow-x: hidden; }
