/*
 * Identidad visual del Reto CundIAgentes, portada de la página original (index.html del micrositio) a la app Symfony:
 * paleta cobalto, titulares Nunito Sans, texto Verdana, cabecera con el logo de Transformación Digital y pie institucional.
 * La cabecera y el pie (.reto-*) aplican a todo el sitio; el resto de reglas cuelga de .reto (solo la portada).
 * Los colores se declaran una sola vez como tokens --reto-*.
 */
:root {
  --reto-cobalt: #0943B5;
  --reto-havelock: #4672C8;
  --reto-solitude: #E5ECF8;
  --reto-tropical: #B5C7E9;
  --reto-sunglow: #FECC2F;
  --reto-matterhorn: #4C4C4C;
  --reto-smoke: #F4F4F4;
  --reto-green: #158361;
  --reto-golden: #9D7700;
  --reto-red: #A80521;
  --reto-white: #FFFFFF;
  --reto-negro: #1A1A1A;
  --reto-franja-azul: #3366CC;
  --reto-franja-roja: #C8102E;
  --reto-titulo: 'Nunito Sans', 'Segoe UI', sans-serif;
  --reto-texto: Verdana, 'DejaVu Sans', sans-serif;
}

/* ---------- Cabecera y pie (todo el sitio) ---------- */
.reto-barra { background: var(--reto-franja-azul); color: var(--reto-white); padding: 10px 24px; font-family: var(--reto-titulo); letter-spacing: .05em; font-size: 15px; }
.reto-barra a { color: inherit; text-decoration: none; }
.reto-cab { background: var(--reto-white); border-bottom: 1px solid var(--reto-solitude); }
.reto-cab-interior { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; width: 100%; max-width: 1200px; margin: 0 auto; padding: 14px 24px; }
.reto-cab img { display: block; height: 64px; width: auto; }
.reto-cab nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.reto-cab nav a { font-family: var(--reto-titulo); font-size: 16px; color: var(--reto-cobalt); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.reto-cab nav a:hover { text-decoration: underline; }
/* Menú hamburguesa (sin JavaScript) */
.reto-menu-check { position: absolute; opacity: 0; pointer-events: none; }
.reto-menu-boton { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid var(--reto-cobalt); border-radius: 8px; cursor: pointer; background: var(--reto-white); }
.reto-menu-icono, .reto-menu-icono::before, .reto-menu-icono::after { display: block; width: 24px; height: 3px; background: var(--reto-cobalt); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.reto-menu-icono { position: relative; }
.reto-menu-icono::before { position: absolute; top: -8px; }
.reto-menu-icono::after { position: absolute; top: 8px; }
.reto-menu-check:focus-visible + .reto-menu-boton { outline: 3px solid var(--reto-sunglow); outline-offset: 2px; }
.reto-menu-check:checked + .reto-menu-boton .reto-menu-icono { background: transparent; }
.reto-menu-check:checked + .reto-menu-boton .reto-menu-icono::before { transform: translateY(8px) rotate(45deg); }
.reto-menu-check:checked + .reto-menu-boton .reto-menu-icono::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 860px) {
  .reto-cab-interior { flex-wrap: wrap; }
  .reto-menu-boton { display: inline-flex; }
  .reto-cab nav { display: none; flex-direction: column; flex-basis: 100%; gap: 0; border-top: 1px solid var(--reto-solitude); padding-top: 6px; }
  .reto-menu-check:checked ~ nav { display: flex; }
  .reto-cab nav a { min-height: 48px; border-bottom: 1px solid var(--reto-smoke); }
}
.reto-franja { height: 6px; background: linear-gradient(90deg, var(--reto-sunglow) 0 50%, var(--reto-cobalt) 50% 75%, var(--reto-franja-roja) 75%); }

.reto-pie { background: var(--reto-cobalt); color: var(--reto-white); padding: 48px 0 36px; font-family: var(--reto-texto); }
.reto-pie-interior { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.reto-pie h2 { margin: 0 0 14px; font-family: var(--reto-titulo); font-size: 22px; color: var(--reto-white); }
.reto-pie dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 15px; }
.reto-pie dt { font-family: var(--reto-titulo); }
.reto-pie dd { margin: 0; }
.reto-pie a { color: var(--reto-white); }
.reto-pie ul { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 20px 0 0; list-style: none; font-size: 15px; }
.reto-pie .legal { margin: 14px 0 0; font-size: 13px; }
.reto-pie .logos { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.reto-pie .logos img { background: var(--reto-white); border-radius: 10px; padding: 10px; height: auto; }
.reto-pie .logo-td { width: min(100%, 300px); }
.reto-pie .logo-iso { width: 120px; }
.reto-pie-legal { background: var(--reto-franja-azul); color: var(--reto-white); padding: 10px 24px; font-size: 14px; font-family: var(--reto-texto); }
.reto-pie-legal a { color: var(--reto-white); }
@media (max-width: 960px) { .reto-pie-interior { grid-template-columns: 1fr; } .reto-pie .logos { align-items: flex-start; } }

/* ---------- Portada ---------- */
.reto { font-family: var(--reto-texto); color: var(--reto-matterhorn); font-size: 16px; line-height: 1.6; }
.reto h1, .reto h2, .reto h3 { font-family: var(--reto-titulo); color: var(--reto-cobalt); margin: 0; line-height: 1.15; }
.reto p { margin: 0; }
.reto a { color: var(--reto-cobalt); }
.reto section { padding: 88px 0; }
.reto .contenedor { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.reto .fondo-suave { background: var(--reto-smoke); }
.reto .titulo-seccion { font-size: clamp(30px, 3.4vw, 44px); max-width: 22ch; }
.reto .intro-seccion { font-size: 18px; margin-top: 14px; max-width: 62ch; }

.reto .banner-reto { padding: 28px 0 0; }
.reto .banner-reto img { display: block; width: 100%; height: auto; border-radius: 16px; }

.reto .portada { background: var(--reto-solitude); padding: 72px 0 80px; }
.reto .portada .contenedor { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.reto .etiqueta { display: inline-block; background: var(--reto-sunglow); color: var(--reto-negro); font-family: var(--reto-titulo); font-size: 15px; padding: 6px 14px; border-radius: 6px; margin-bottom: 20px; }
.reto .portada h1 { font-size: clamp(40px, 5.2vw, 68px); letter-spacing: -.01em; }
.reto .portada .bajada { font-size: 19px; margin-top: 22px; max-width: 60ch; }
.reto .acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.reto .cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--reto-tropical); }
.reto .cifras strong { display: block; font-family: var(--reto-titulo); font-size: 34px; color: var(--reto-cobalt); line-height: 1; }
.reto .cifras span { font-size: 14px; }
.reto .mascota { display: block; height: 300px; width: auto; margin: 0 auto -8px; }
.reto .portada .lado { display: flex; flex-direction: column; }

.reto .chat { background: var(--reto-white); border: 2px solid var(--reto-tropical); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.reto .chat-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--reto-solitude); }
.reto .chat-cab strong { font-family: var(--reto-titulo); color: var(--reto-cobalt); display: block; }
.reto .chat-cab small { font-size: 13px; }
.reto .ilustrativo { font-size: 12px; background: var(--reto-smoke); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.reto .burbuja { padding: 12px 16px; border-radius: 14px; font-size: 15px; max-width: 88%; }
.reto .burbuja.yo { align-self: flex-end; background: var(--reto-cobalt); color: var(--reto-white); border-bottom-right-radius: 4px; }
.reto .burbuja.ia { align-self: flex-start; background: var(--reto-solitude); border-bottom-left-radius: 4px; }

/* Videos y programa */
.reto .conoce { padding: 72px 0; }
.reto .conoce .contenedor { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.reto .conoce-2 .contenedor { grid-template-columns: 1fr 1.3fr; }
.reto .conoce video { display: block; width: 100%; height: auto; border-radius: 16px; border: 2px solid var(--reto-tropical); background: var(--reto-negro); }
.reto .conoce p { font-size: 18px; margin-top: 14px; }
.reto .programa-img { display: block; width: 100%; height: auto; border-radius: 16px; margin-top: 40px; border: 2px solid var(--reto-solitude); }

/* Tarjetas, listas y pasos */
.reto .tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.reto .tarjeta { background: var(--reto-white); border: 2px solid var(--reto-solitude); border-radius: 12px; padding: 30px; }
.reto .tarjeta h3 { font-size: 22px; margin: 14px 0 10px; }
.reto .icono { width: 48px; height: 48px; border-radius: 10px; background: var(--reto-solitude); display: flex; align-items: center; justify-content: center; }
.reto .icono svg { stroke: var(--reto-cobalt); }
.reto .num { font-family: var(--reto-titulo); font-size: 15px; color: var(--reto-white); background: var(--reto-cobalt); display: inline-block; padding: 2px 12px; border-radius: 999px; }
.reto .dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.reto .lista { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.reto .lista li { display: flex; gap: 10px; }
.reto .lista svg { flex-shrink: 0; margin-top: 4px; }
.reto .lista .si svg { stroke: var(--reto-green); }
.reto .lista .despues svg { stroke: var(--reto-matterhorn); }
.reto .caja-si { border: 2px solid var(--reto-cobalt); border-radius: 12px; padding: 32px; }
.reto .caja-despues { background: var(--reto-smoke); border-radius: 12px; padding: 32px; }
.reto .caja-si h3, .reto .caja-despues h3 { font-size: 24px; }
.reto .pasos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; counter-reset: paso; }
.reto .paso { border-top: 4px solid var(--reto-cobalt); padding-top: 20px; }
.reto .paso::before { counter-increment: paso; content: "0" counter(paso); font-family: var(--reto-titulo); font-size: 40px; color: var(--reto-cobalt); display: block; line-height: 1; margin-bottom: 12px; }
.reto .paso h3 { font-size: 20px; margin-bottom: 8px; }

/* Pensum y jornadas */
.reto .cronograma { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.reto .fase { background: var(--reto-white); border: 2px solid var(--reto-solitude); border-radius: 12px; padding: 24px; }
.reto .fase .dias { font-size: 14px; color: var(--reto-cobalt); font-family: var(--reto-titulo); }
.reto .fase h3 { font-size: 20px; margin: 6px 0 8px; }
.reto .fase.activa { background: var(--reto-cobalt); border-color: var(--reto-cobalt); color: var(--reto-white); }
.reto .fase.activa h3, .reto .fase.activa .dias { color: var(--reto-white); }
.reto .fechas { margin-top: 16px; font-size: 15px; }
.reto .aviso-datos { font-size: 14px; margin-top: 16px; }
.reto .franjas { margin-top: 28px; background: var(--reto-white); border: 2px solid var(--reto-sunglow); border-radius: 12px; padding: 24px 28px; }
.reto .franjas h3 { font-size: 22px; margin: 0 0 8px; }
.reto .franjas-lista { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.reto .franjas-lista li { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; align-items: center; background: var(--reto-solitude); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.reto .franjas-lista .dia { font-family: var(--reto-titulo); color: var(--reto-cobalt); }

/* Autoevaluación (formulario GET, sin JavaScript) */
.reto .evaluacion { background: var(--reto-cobalt); color: var(--reto-white); }
.reto .evaluacion h2 { color: var(--reto-white); }
.reto .evaluacion .contenedor { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.reto .evaluacion .intro-seccion { color: var(--reto-solitude); }
.reto .pregunta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 18px 22px; margin: 0 0 12px; }
.reto .pregunta legend { float: left; width: auto; font-size: 16px; padding: 0; margin: 0; color: var(--reto-white); }
.reto .opciones { display: flex; gap: 10px; flex-shrink: 0; }
.reto .opciones input { position: absolute; opacity: 0; }
.reto .opciones label { min-width: 72px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 2px solid var(--reto-white); font-family: var(--reto-titulo); font-size: 16px; cursor: pointer; }
.reto .opciones input:checked + label { background: var(--reto-sunglow); border-color: var(--reto-sunglow); color: var(--reto-negro); }
.reto .opciones input:focus-visible + label { outline: 3px solid var(--reto-white); outline-offset: 3px; }
.reto .evaluacion .acciones { margin-top: 8px; }
.reto .resultado { background: var(--reto-white); color: var(--reto-matterhorn); border-radius: 12px; padding: 24px; margin-top: 16px; }
.reto .resultado strong { display: block; font-family: var(--reto-titulo); font-size: 22px; margin-bottom: 6px; color: var(--reto-cobalt); }
.reto .resultado.fuerte strong { color: var(--reto-green); }
.reto .resultado.media strong { color: var(--reto-golden); }
.reto .resultado.debil strong { color: var(--reto-red); }

/* Comunidad y preguntas */
.reto .bloque-comunidad-reto { padding: 56px 0; }
.reto .bloque-comunidad-reto .cabecera-bloque { margin-bottom: 20px; }
.reto .cta-final { background: var(--reto-cobalt); color: var(--reto-white); padding: 64px 0; }
.reto .cta-final h2 { color: var(--reto-white); max-width: 28ch; }
.reto .cta-final p { margin-top: 14px; font-size: 18px; max-width: 62ch; }
.reto .faq { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.reto .faq details { border-top: 1px solid var(--reto-tropical); padding: 18px 0; }
.reto .faq summary { font-family: var(--reto-titulo); color: var(--reto-cobalt); font-size: 18px; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.reto .faq details p { margin-top: 8px; }

/* ---------- Pantallas pequeñas ---------- */
@media (max-width: 960px) {
  .reto .conoce .contenedor, .reto .conoce-2 .contenedor { grid-template-columns: 1fr; }
  .reto .portada .contenedor, .reto .evaluacion .contenedor { grid-template-columns: 1fr; }
  .reto .tres, .reto .pasos, .reto .cronograma { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .reto .tres, .reto .pasos, .reto .cronograma, .reto .dos, .reto .faq { grid-template-columns: 1fr; }
  .reto .cifras { grid-template-columns: 1fr 1fr; }
  .reto .pregunta { flex-direction: column; align-items: flex-start; }
  .reto .franjas-lista li { grid-template-columns: 1fr; }
  .reto section { padding: 64px 0; }
  .reto .mascota { height: 240px; }
}

/* Ingreso: dos caminos (código o contraseña) en la misma tarjeta */
.reto .subtitulo-login-cundia, .subtitulo-login-cundia { font-size: 18px; margin: 0 0 6px; font-weight: 700; color: var(--cundi-azul-oscuro, #0943b5); }
.separador-login-cundia { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #6b6b6b; font-size: 14px; }
.separador-login-cundia::before, .separador-login-cundia::after { content: ""; flex: 1; border-top: 1px solid #d9e2f3; }

/* Noticia: lectura cómoda, imagen protagonista y cierre con llamado a participar */
.noticia-detalle { max-width: 860px; margin: 0 auto; padding: 8px 0 8px; }
.noticia-cabecera { margin: 12px 0 22px; }
.noticia-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; color: #5b6575; }
.noticia-cabecera h1 { margin: 0 0 14px; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; color: #0943b5; }
.noticia-resumen { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; color: #2b3445; }
.noticia-figura { margin: 0 0 28px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(9, 67, 181, .18); background: #e5ecf8; }
.noticia-figura img { display: block; width: 100%; height: auto; }
.noticia-cuerpo { max-width: 68ch; margin: 0 auto; font-size: 17px; line-height: 1.8; color: #333b49; }
.noticia-cuerpo p { margin: 0 0 18px; }
.noticia-cuerpo h2 { margin: 34px 0 12px; font-size: 26px; line-height: 1.25; color: #0943b5; }
.noticia-cuerpo h3 { margin: 26px 0 10px; font-size: 20px; color: #0943b5; }
.noticia-cuerpo ul, .noticia-cuerpo ol { margin: 0 0 20px; padding-left: 1.3em; }
.noticia-cuerpo li { margin: 0 0 8px; }
.noticia-cuerpo a { color: #0943b5; text-decoration: underline; text-underline-offset: 3px; }
.noticia-llamado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 68ch; margin: 34px auto 0; padding: 20px 24px; border-radius: 12px; background: #0943b5; color: #fff; border-left: 6px solid #fecc2f; }
.noticia-llamado div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
.noticia-llamado strong { font-size: 19px; }
.noticia-llamado span { font-size: 15px; color: #e5ecf8; line-height: 1.5; }
.noticia-llamado .btn-govco { background: #fecc2f; color: #1a1a1a; border-color: #fecc2f; }
.noticia-volver { max-width: 68ch; margin: 22px auto 0; font-size: 15px; }
.noticia-mas { max-width: 1100px; margin: 48px auto 0; }
.noticia-mas h2 { margin: 0 0 16px; font-size: 26px; color: #0943b5; }
.noticia-comentarios { max-width: 860px; margin: 40px auto 0; }
@media (max-width: 600px) { .noticia-cuerpo { font-size: 16px; } .noticia-llamado { padding: 18px; } }
