/* ====================================================================
   CENFIC · ESTILOS PROPIOS DE LA PÁGINA DE INICIO
   --------------------------------------------------------------------
   Solo lo que existe únicamente en la landing:
   franja de confianza, "Nosotros", "Programas de Estudio",
   "Certificaciones" y el bloque final de llamada a la acción.
==================================================================== */


/* ====================================================================
   01. FRANJA DE CONFIANZA
==================================================================== */

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-line);
  overflow: hidden;
}

.trust article {
  padding: 22px 20px;
  background: rgba(8, 20, 38, 0.72);
}

.trust strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cenfic-gold);
}

.trust span {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
}


/* ====================================================================
   02. NOSOTROS
==================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.about__points {
  display: grid;
  gap: 14px;
}

.about-point {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: var(--glass);
  transition: border-color 0.26s ease, transform 0.26s ease;
}

.about-point:hover {
  border-color: rgba(196, 164, 124, 0.34);
  transform: translateX(4px);
}

.about-point__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid rgba(196, 164, 124, 0.28);
  background: rgba(196, 164, 124, 0.12);
  color: var(--cenfic-gold);
}

.about-point__ic svg {
  width: 18px;
  height: 18px;
}

.about-point h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 700;
}

.about-point p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-dim);
}


/* ====================================================================
   03. PROGRAMAS DE ESTUDIO
==================================================================== */

.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-line-2);
  box-shadow: var(--shadow-md);
}

/* Nivel destacado */
.program-card--featured {
  border-color: rgba(196, 164, 124, 0.40);
  background: linear-gradient(180deg, rgba(196, 164, 124, 0.11), rgba(255, 255, 255, 0.02));
}

.program-card__ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--cenfic-gold), var(--cenfic-gold-2));
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #2A1D0C;
}

.program-card__level {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cenfic-gold);
}

.program-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.program-card > p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.program-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.program-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.program-card li svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--cenfic-gold);
}

.program-card__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--glass-line);
}

.program-card__hours {
  display: block;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.program-card__hours b {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-strong);
}


/* ====================================================================
   04. CERTIFICACIONES (ruta en pasos)
==================================================================== */

.certify {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: paso;
}

.certify-step {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: var(--glass);
}

/* La numeración sí aporta: el proceso es secuencial. */
.certify-step::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cenfic-gold);
}

.certify-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.certify-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Línea que conecta los pasos */
.certify-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: -18px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 164, 124, 0.55), transparent);
}


/* ====================================================================
   05. LLAMADA A LA ACCIÓN FINAL
==================================================================== */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(196, 164, 124, 0.30);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(43, 75, 209, 0.24), transparent 70%),
    linear-gradient(135deg, rgba(196, 164, 124, 0.13), rgba(255, 255, 255, 0.03));
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.6vw, 33px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cta-band p {
  margin: 0;
  max-width: 52ch;
  font-size: 14.5px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
 
/* ====================================================================
   06. MISIÓN Y VISIÓN
==================================================================== */

.mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 4vw, 48px);
}

.mv-card {
  padding: 30px 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  transition: border-color 0.26s ease, transform 0.26s ease;
}

.mv-card:hover {
  border-color: rgba(196, 164, 124, 0.34);
  transform: translateY(-4px);
}

.mv-card__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  border: 1px solid rgba(196, 164, 124, 0.28);
  background: rgba(196, 164, 124, 0.12);
  color: var(--cenfic-gold);
}

.mv-card__ic svg {
  width: 21px;
  height: 21px;
}

.mv-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

/* Razón social y RUC del pie (aparecerán cuando CENFIC los entregue) */
.footer__legal {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer__legal span {
  display: block;
}


/* ====================================================================
   07. RESPONSIVE
==================================================================== */

@media (max-width: 1050px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    grid-template-columns: minmax(0, 1fr);
  }

   .mv {
    grid-template-columns: minmax(0, 1fr);
  }

  .programs {
    grid-template-columns: minmax(0, 1fr);
  }

  .certify {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certify-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .certify {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band__actions .btn {
    flex: 1 1 100%;
  }
}
/* ====================================================================
   SERVICIOS OFRECIDOS (3.1.2)
==================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 28px 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-md);
  background: var(--glass);
  transition: border-color 0.26s ease, transform 0.26s ease;
}

.service-card:hover {
  border-color: rgba(196, 164, 124, 0.34);
  transform: translateY(-4px);
}

.service-card__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid rgba(196, 164, 124, 0.28);
  background: rgba(196, 164, 124, 0.12);
  color: var(--cenfic-gold);
}

.service-card__ic svg {
  width: 20px;
  height: 20px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}


/* --- Puente hacia el catálogo (3.1.2 → 3.2) --- */

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(26px, 3.5vw, 40px);
  padding: 24px 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  text-align: center;
}

.services-cta p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}


/* --- MISIÓN Y VISIÓN (3.1.1) --- */

.mv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(28px, 4vw, 48px);
}

.mv-card {
  padding: 30px 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  transition: border-color 0.26s ease, transform 0.26s ease;
}

.mv-card:hover {
  border-color: rgba(196, 164, 124, 0.34);
  transform: translateY(-4px);
}

.mv-card__ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  border: 1px solid rgba(196, 164, 124, 0.28);
  background: rgba(196, 164, 124, 0.12);
  color: var(--cenfic-gold);
}

.mv-card__ic svg {
  width: 21px;
  height: 21px;
}

.mv-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}


/* --- Razón social y RUC del pie --- */

.footer__legal {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer__legal span {
  display: block;
}


/* --- Responsive de todo lo anterior --- */

@media (max-width: 1050px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}
