/* Secciones CEGEX: modalidades, ventajas, pestañas de carreras y botones del formulario.
   Aparte de master.css (que se compila desde los .sass) para no perderlo al recompilar. */

/* ---------- Recuadro lila de la portada (antes img/tituloprin.png) ---------- */
.cg-tarjeta { position: relative; display: inline-block; width: 300px; max-width: 85%; margin: 40px 0 26px 10px; padding: 26px 26px 46px 30px; background: #D3AAF9; border-radius: 0 22px 22px 22px; color: #2B2A33; font-family: "At Gambit", serif; }
.cg-tarjeta::before { content: ""; position: absolute; top: -26px; right: 0; width: 46%; height: 30px; background: #D3AAF9; border-radius: 22px 22px 0 0; }
.cg-tarjeta-puntos { display: block; width: 26px; height: 10px; margin-bottom: 16px; background: radial-gradient(circle at 5px 5px, #173F2E 4px, transparent 4.5px), radial-gradient(circle at 17px 5px, #FFFFFF 4px, transparent 4.5px); }
.cg-tarjeta-flecha { position: absolute; top: 18px; right: 22px; font-family: "Matter", sans-serif; font-size: 20px; line-height: 1; }
.cg-tarjeta p { margin: 0; font-size: 1.75rem; line-height: 1.6rem; }
.cg-tarjeta p span { color: #FFFFFF; }
.cg-tarjeta-pill { position: absolute; left: 34px; right: 34px; bottom: -22px; padding: 6px 10px; background: #6EDC7A; border-radius: 30px; color: #173F2E; font-size: 1.5rem; text-align: center; }

/* ---------- Botones de modalidad y campus del formulario ---------- */
.__opcionestit { text-align: center; font-family: "Matter", sans-serif; font-size: 15px; margin: 0 0 .9rem; color: rgba(255, 255, 255, .85); }
.__opcionestit b { color: #ff6b6b; }
.xradiobox { position: relative; }
.xradiobox input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.xradiobox label { display: block; height: 42px; line-height: 40px; margin: 6px 0 .5rem; padding: 0 .5rem; border: 1px solid #8FE9A0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #FFFFFF; font-family: "Matter", sans-serif; font-size: 15px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; position: relative; transition: background .2s, color .2s; }
.xradiobox input[type="radio"]:focus-visible + label { outline: 2px solid #C9A8F5; outline-offset: 2px; }
.xradiobox input[type="radio"]:checked + label { background: #8FE9A0; color: #173F2E; font-weight: bold; overflow: visible; }
.xradiobox input[type="radio"]:checked + label::after { content: "\f00c"; font-family: FontAwesome; font-weight: normal; font-size: 14px; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; line-height: 22px; border-radius: 50%; background: #FFFFFF; border: 2px solid #8FE9A0; color: #173F2E; }

/* ---------- Títulos de sección ---------- */
.cg-titulo { font-family: "At Gambit", serif; font-weight: normal; text-align: center; color: #173F2E; font-size: 3.2rem; line-height: 1.05; margin: 0 0 .6rem; }
.cg-subtitulo { font-family: "Matter", sans-serif; text-align: center; color: #173F2E; font-size: 18px; margin: 0 auto 2.5rem; max-width: 560px; }

/* ---------- ¿Cómo quieres estudiar? ---------- */
.cg-modalidades { background: #F7F1E5; padding: 5rem 0 4rem; }
.cg-mod { height: 100%; display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid rgba(23, 63, 46, .12); border-radius: 24px; padding: 2rem 2rem 1.75rem; color: #173F2E; font-family: "Matter", sans-serif; }
.cg-mod-tag { align-self: flex-start; background: #C9A8F5; color: #173F2E; border-radius: 30px; padding: 4px 14px; font-size: 13px; font-weight: bold; margin-bottom: 1rem; }
.cg-mod h3 { font-family: "At Gambit", serif; font-weight: normal; font-size: 2rem; line-height: 1.1; margin: 0 0 1rem; }
.cg-mod ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.cg-mod li { position: relative; padding-left: 26px; margin-bottom: .7rem; font-size: 16px; line-height: 1.4; }
.cg-mod li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 1px; color: #2E8B57; }
.cg-mod-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.cg-btn { display: inline-block; padding: 10px 22px; border-radius: 30px; background: #173F2E; color: #FFFFFF; font-family: "Matter", sans-serif; font-weight: bold; font-size: 15px; text-decoration: none; border: 2px solid #173F2E; transition: background .2s, color .2s; }
.cg-btn:hover { background: #2a5c45; color: #FFFFFF; }
.cg-btn-sec { background: transparent; color: #173F2E; }
.cg-btn-sec:hover { background: #8FE9A0; color: #173F2E; border-color: #8FE9A0; }

/* ---------- Tu experiencia vale créditos ---------- */
.cg-ventajas { background: #173F2E; padding: 4rem 0; }
.cg-ventajas .cg-titulo { color: #8FE9A0; margin-bottom: 2.5rem; }
.cg-ventaja { text-align: center; color: #FFFFFF; font-family: "Matter", sans-serif; }
.cg-ventaja-num { display: flex; align-items: center; justify-content: center; height: 72px; font-family: "At Gambit", serif; font-size: 4rem; line-height: 1; color: #C9A8F5; margin-bottom: .5rem; }
.cg-ventaja-num .fa { font-size: 52px; }
.cg-ventaja p { font-size: 15px; line-height: 1.4; margin: 0 auto; max-width: 240px; }

/* ---------- Carreras: pestañas, campus y detalle ---------- */
.cg-ventajas + .__carreras { padding-top: 4rem; }
.cg-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 1.25rem; padding: 6px; max-width: 440px; background: #FFFFFF; border-radius: 40px; border: 1px solid rgba(23, 63, 46, .12); }
.cg-tab { flex: 1; border: 0; border-radius: 30px; padding: 10px 16px; background: transparent; color: #173F2E; font-family: "Matter", sans-serif; font-weight: bold; font-size: 16px; cursor: pointer; transition: background .2s; }
.cg-tab.is-activa { background: #173F2E; color: #FFFFFF; }
.cg-tab:focus-visible, .cg-chip:focus-visible, .cg-cta:focus-visible, .cg-btn:focus-visible { outline: 2px solid #C9A8F5; outline-offset: 2px; }
.cg-intro { text-align: center; max-width: 680px; margin: 0 auto 1.25rem; color: #173F2E; font-family: "Matter", sans-serif; font-size: 16px; line-height: 1.45; }
.cg-campus { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 auto 2rem; font-family: "Matter", sans-serif; }
.cg-campus[hidden] { display: none; }
.cg-campus-tit { color: #173F2E; font-size: 14px; margin-right: 4px; }
.cg-chip { border: 1px solid #173F2E; background: transparent; color: #173F2E; border-radius: 30px; padding: 6px 16px; font-size: 14px; cursor: pointer; }
.cg-chip.is-activa { background: #8FE9A0; border-color: #8FE9A0; font-weight: bold; }
.cg-nueva { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 10px; background: #8FE9A0; border-radius: 20px; font-family: "Matter", sans-serif; font-size: 12px; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; }
.cg-donde { font-family: "Matter", sans-serif; color: #173F2E; font-size: 15px; padding-left: 10px; }
.cg-cta { display: inline-block; margin: .25rem 0 1rem 10px; padding: 10px 22px; border-radius: 30px; background: #173F2E; color: #FFFFFF; font-family: "Matter", sans-serif; font-weight: bold; font-size: 15px; text-decoration: none; }
.cg-cta:hover { background: #2a5c45; color: #FFFFFF; }

@media (max-width: 767px) {
  .cg-tarjeta { width: 250px; margin-top: 34px; padding: 22px 22px 40px 28px; }
  .cg-tarjeta p { font-size: 1.45rem; line-height: 1.35rem; }
  .cg-tarjeta-pill { font-size: 1.25rem; }
  .cg-titulo { font-size: 2.3rem; }
  .cg-subtitulo { font-size: 16px; margin-bottom: 1.75rem; }
  .cg-modalidades { padding: 3.5rem 0 3rem; }
  .cg-mod { padding: 1.5rem 1.25rem; }
  .cg-mod h3 { font-size: 1.6rem; }
  .cg-ventajas { padding: 3rem 0; }
  .cg-ventaja-num { font-size: 3rem; height: 56px; }
  .cg-ventaja-num .fa { font-size: 42px; }
  .cg-ventaja p { font-size: 14px; }
  .cg-ventajas + .__carreras { padding-top: 3rem; }
  .cg-nueva { font-size: 10px; padding: 1px 7px; }
}
