/* Certificaciones — portada "Especialista en Sistemas Colectivos" */
.cert {
  --c-ink: #1A1230;
  --c-ink-2: #251A42;
  --c-coral: #FF7A59;
  --c-pink: #EC1E79;
  --c-violet: #7B2FF7;
  --c-lilac: #C9A7FF;
  --c-grad: linear-gradient(90deg, var(--c-coral) 0%, var(--c-pink) 45%, var(--c-violet) 100%);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Portada ---------- */
.cert-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1100px 600px at 85% 30%, rgba(123, 47, 247, .30), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(236, 30, 121, .22), transparent 60%),
    var(--c-ink);
  color: #fff;
  display: flex;
  scroll-margin-top: 64px;
  align-items: center;
}
.cert-hero::before { /* retícula sutil */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%);
}
.cert-hero__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 28px 88px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
}

.cert-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.cert-hero__eyebrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-grad);
  box-shadow: 0 0 12px var(--c-pink);
}

.cert-hero__title {
  margin: 26px 0 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  line-height: 1.5;
}
.cert-hero__title strong {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  font-size: clamp(46px, 7.2vw, 104px);
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: none;
  color: #fff;
}
.cert-hero__title strong span {
  background: var(--c-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.cert-hero__bar {
  width: 132px; height: 7px; border-radius: 99px;
  background: var(--c-grad);
  margin: 30px 0 22px;
}
.cert-hero__by {
  margin: 0;
  font-size: 13px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.cert-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.cert-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.cert-btn--primary {
  color: #fff;
  background: var(--c-grad);
  box-shadow: 0 10px 30px -8px rgba(236,30,121,.6);
}
.cert-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(236,30,121,.75); }
.cert-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
}
.cert-btn--ghost:hover { background: rgba(255,255,255,.1); }
.cert-btn svg, .cert-card__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Isotipo con órbitas */
.cert-hero__visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.cert-hero__glow {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,30,121,.55), rgba(123,47,247,.35) 45%, transparent 70%);
  filter: blur(40px);
  animation: certPulse 6s ease-in-out infinite;
}
.cert-hero__orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16);
  animation: certSpin 60s linear infinite;
}
.cert-hero__orbit--2 { inset: 9%; border-style: solid; border-color: rgba(201,167,255,.14); animation-duration: 40s; animation-direction: reverse; }
.cert-hero__orbit::after {
  content: ""; position: absolute; top: 50%; left: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-coral); box-shadow: 0 0 16px var(--c-coral);
}
.cert-hero__orbit--2::after { left: auto; right: -5px; top: 20%; width: 10px; height: 10px; background: var(--c-lilac); box-shadow: 0 0 14px var(--c-lilac); }
.cert-hero__iso {
  position: absolute; inset: 15%;
  width: 70%; height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.45));
  animation: certFloat 7s ease-in-out infinite;
}

.cert-hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.cert-hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: certScroll 1.8s ease-in-out infinite;
}

@keyframes certFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes certSpin { to { transform: rotate(360deg); } }
@keyframes certPulse { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes certScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Entrada */
.cert-in { opacity: 0; transform: translateY(18px); animation: certIn .8s cubic-bezier(.2,.7,.2,1) forwards; }
.cert-in--2 { animation-delay: .12s; } .cert-in--3 { animation-delay: .24s; } .cert-in--4 { animation-delay: .36s; }
@keyframes certIn { to { opacity: 1; transform: none; } }

/* ---------- Sello ---------- */
.cert-seal {
  background: #F8F6FA;
  padding: 96px 28px;
}
.cert-seal__inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center;
}
.cert-seal__kicker {
  margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-pink);
}
.cert-seal h2 {
  margin: 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--c-ink);
}
.cert-seal p { margin: 18px 0 0; color: #5B5170; font-size: 17px; line-height: 1.6; }
.cert-seal__card {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow: 0 30px 60px -30px rgba(42,23,80,.35), 0 0 0 1px rgba(42,23,80,.06);
}
.cert-seal__card::before {
  content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 4px;
  border-radius: 0 0 6px 6px; background: var(--c-grad);
}
.cert-seal__card img { display: block; width: 100%; height: auto; }

/* ---------- Intro con las dos propuestas ---------- */
.cert-intro {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(236,30,121,.08), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(201,152,72,.10), transparent 60%),
    #F8F6FA;
  padding: 72px 28px 88px;
}
.cert-intro__inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.cert-kicker {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--c-pink);
}
.cert-intro__title {
  margin: 12px 0 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.035em;
  color: var(--c-ink);
}
.cert-intro__cards {
  margin-top: 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  text-align: left;
}
.cert-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px;
  border-radius: 28px;
  color: #fff; text-decoration: none;
  box-shadow: 0 30px 60px -28px rgba(26,18,48,.55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -28px rgba(26,18,48,.65); }
.cert-card__media { position: absolute; inset: 0; z-index: -1; }
.cert-card__body { padding: 34px 34px 32px; }
.cert-card__tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.cert-card__title {
  margin: 16px 0 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: .02em;
}
.cert-card__title b { display: block; font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.02; margin-top: 4px; }
.cert-card__line { margin: 10px 0 0; font-size: 16px; color: rgba(255,255,255,.82); }
.cert-card__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-weight: 700; font-size: 14.5px;
}
.cert-card__go svg { transition: transform .25s ease; }
.cert-card:hover .cert-card__go svg { transform: translateY(3px); }

/* tarjeta Sistemas Colectivos */
.cert-card--sc .cert-card__media {
  background:
    radial-gradient(500px 340px at 75% 20%, rgba(123,47,247,.45), transparent 65%),
    radial-gradient(400px 300px at 0% 100%, rgba(236,30,121,.35), transparent 60%),
    var(--c-ink);
}
.cert-card--sc .cert-card__media img {
  position: absolute; right: -5%; top: -10%; width: 52%; height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.45));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cert-card--sc:hover .cert-card__media img { transform: rotate(-8deg) scale(1.04); }
.cert-card--sc .cert-card__title b span, .cert-card--sc .cert-card__title b {
  background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cert-card--sc .cert-card__go { color: #FFB3D1; }

/* tarjeta The Big Boss */
.cert-card--bb .cert-card__media { background: #0E0B08; }
.cert-card--bb .cert-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.cert-card--bb:hover .cert-card__media img { transform: scale(1.05); }
.cert-card--bb .cert-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,11,8,.15) 0%, rgba(14,11,8,.35) 35%, rgba(14,11,8,.88) 70%, #0E0B08 100%);
}
.cert-card--bb .cert-card__title b { background: var(--bb-gold); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase; }
.cert-card--bb .cert-card__go { color: #E8C27A; }
.cert-card--bb .cert-card__tag { border-color: rgba(232,194,122,.35); }

/* ---------- 02 · The Big Boss ---------- */
.cert { --bb-gold: linear-gradient(100deg, #8A6224 0%, #E8C27A 28%, #F6E3B4 48%, #C9974A 70%, #8A6224 100%); }
.bb {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 600px at 80% 40%, rgba(201,151,74,.14), transparent 65%), #0E0B08;
  color: #F3E9D6;
  scroll-margin-top: 64px;
}
.bb__beam {
  position: absolute; z-index: -1; top: -20%; right: -10%; width: 60%; height: 140%;
  background: linear-gradient(105deg, transparent 30%, rgba(246,227,180,.10) 50%, transparent 70%);
  transform: skewX(-18deg);
  animation: bbBeam 9s ease-in-out infinite;
}
@keyframes bbBeam { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.bb__inner {
  max-width: 1240px; margin: 0 auto; padding: 96px 28px;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center;
}
.bb__poster { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 440px; }
.bb__poster::before {
  content: ""; position: absolute; inset: -14px; border-radius: 26px;
  border: 1px solid rgba(232,194,122,.28);
}
.bb__poster img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(232,194,122,.18);
}
.bb__eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: #E8C27A;
  padding: 8px 14px; border: 1px solid rgba(232,194,122,.3); border-radius: 99px;
}
.bb__title {
  margin: 24px 0 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800; font-size: clamp(56px, 8.5vw, 124px); line-height: .9; letter-spacing: -.03em;
  text-transform: uppercase;
  background: var(--bb-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bb__title small {
  display: block; font-weight: 600; font-size: .2em; letter-spacing: .6em; margin-bottom: .35em;
}
.bb__line {
  margin: 28px 0 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700; font-size: clamp(17px, 1.9vw, 24px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.45;
  color: #F3E9D6;
}
.bb__line em { font-style: normal; color: #E8C27A; }
.bb__bar { width: 132px; height: 7px; border-radius: 99px; background: var(--bb-gold); margin: 30px 0 22px; }
.bb__by { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(243,233,214,.6); }
.bb__btn {
  color: #1A1206; background: linear-gradient(100deg, #C9974A, #F6E3B4 55%, #E8C27A);
  box-shadow: 0 12px 30px -10px rgba(232,194,122,.55);
}
.bb__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(232,194,122,.7); }
.bb__btn--ghost { color: #F3E9D6; border: 1px solid rgba(232,194,122,.35); }
.bb__btn--ghost:hover { background: rgba(232,194,122,.08); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cert-intro { padding: 52px 18px 64px; }
  .cert-intro__cards { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .cert-card { min-height: 380px; }
  .cert-card--sc .cert-card__media img { width: 58%; right: -6%; top: -6%; }
  .cert-card__body { padding: 26px 24px 26px; }
  .bb__inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 22px 72px; text-align: center; }
  .bb__poster { max-width: 320px; }
  .bb__bar { margin-left: auto; margin-right: auto; }
  .bb .cert-hero__actions { justify-content: center; }
  .cert-hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 48px 22px 80px; text-align: center; }
  .cert-hero__visual { order: -1; max-width: 300px; }
  .cert-hero__bar { margin-left: auto; margin-right: auto; }
  .cert-hero__actions { justify-content: center; }
  .cert-hero__title { letter-spacing: .24em; }
  .cert-seal { padding: 64px 22px; }
  .cert-seal__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .cert-seal__card { padding: 30px 22px; }
}
@media (max-width: 520px) {
  .cert-hero__eyebrow { font-size: 10.5px; letter-spacing: .2em; }
  .cert-hero__title { font-size: 14px; letter-spacing: .2em; }
  .cert-hero__by { font-size: 11px; letter-spacing: .2em; }
  .cert-btn { width: 100%; }
  .cert-hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bb__beam, .cert-hero__iso, .cert-hero__orbit, .cert-hero__glow, .cert-hero__scroll::after { animation: none; }
  .cert-in { animation: none; opacity: 1; transform: none; }
}
