/* Propuesta de rediseño - www.prosperidadsocial.gov.co (PS-PaginaWeb.Landing) */
:root {
  --ink: #1f2a37;
  --muted: #5b6675;
  --line: #e6e9ee;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --navy: #2c3e50;      /* color institucional del footer actual */
  --navy-2: #1a252f;    /* copyright actual */
  --yellow: #ffcd00;    /* franja del logo */
  --blue: #003893;
  --red: #ce1126;
  --accent: #2c3e50;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 48px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; text-align: center;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(44, 62, 80, .25); }
.btn--primary:hover { transform: translateY(-1px); background: #233241; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--outline { width: 100%; background: #fff; color: var(--ink); border-color: var(--line); font-size: .95rem; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--outline i { color: var(--navy); }

/* Encabezado */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--ink); }
.topnav .btn { min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }
.flag { display: grid; grid-template-columns: 2fr 1fr 1fr; height: 4px; }
.flag span:nth-child(1) { background: var(--yellow); }
.flag span:nth-child(2) { background: var(--blue); }
.flag span:nth-child(3) { background: var(--red); }

/* Hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(255, 205, 0, .18), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(0, 56, 147, .10), transparent 60%),
  linear-gradient(180deg, #fbfcfe, #f3f6fa); }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 64px 0 0; }
.eyebrow { margin: 0 0 .5rem; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.lead { margin: 0 0 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 64px; }
.hero__art { position: relative; align-self: end; justify-self: center; width: min(460px, 100%); }
.hero__art img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 20px 30px rgba(16, 24, 40, .15)); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 1; }
.blob--y { width: 70%; aspect-ratio: 1; background: var(--yellow); opacity: .35; top: 10%; left: 5%; }
.blob--b { width: 38%; aspect-ratio: 1; background: var(--blue); opacity: .18; bottom: 18%; right: -4%; }
.blob--r { width: 22%; aspect-ratio: 1; background: var(--red); opacity: .18; top: 4%; right: 8%; }

/* Secciones */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head h2 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.section__head p:last-child { margin: 0; color: var(--muted); }

/* Tarjetas de programas */
.grid { --gap: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid > .card { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; padding: 14px 14px 0; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; font: inherit; }
.card__media img { width: 100%; aspect-ratio: 900 / 650; object-fit: contain; border-radius: 16px; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.02); }
.card__plus { position: absolute; right: 20px; top: 20px; width: 32px; height: 32px; font-size: .85rem; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(44, 62, 80, .35); transition: transform .2s ease; }
.card:hover .card__plus { transform: scale(1.08); }
.tag { position: absolute; left: 26px; top: 26px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.card__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 22px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.card__body .btn { margin-top: auto; }

.hint { display: none; align-items: center; justify-content: center; gap: .5rem; margin-top: 4px; color: var(--muted); font-size: .9rem; }

/* Accesos directos */
.quick { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.quick a { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.quick a:hover { border-color: var(--navy); transform: translateY(-2px); }
.quick strong { display: block; font-size: 1.08rem; color: var(--navy); }
.quick small { display: block; color: var(--muted); font-size: .95rem; }
.quick__ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.qy { background: rgba(255, 205, 0, .22); color: #8a6d00; }
.qb { background: rgba(0, 56, 147, .12); color: var(--blue); }
.qr { background: rgba(206, 17, 38, .12); color: var(--red); }
.qd { background: rgba(44, 62, 80, .12); color: var(--navy); }
.quick__go { margin-left: auto; color: var(--muted); }

/* Ventanas ABC */
.modal { max-width: 100vw; width: min(860px, 100% - 24px); max-height: min(90vh, 900px); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(15, 23, 32, .55); backdrop-filter: blur(4px); }
.modal[open] { display: flex; flex-direction: column; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.modal__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.modal__x:hover { background: var(--soft); }
.modal__body { overflow: auto; padding: 24px; }
.modal__body h4 { margin: 1.6rem 0 .5rem; font-size: 1.1rem; color: var(--navy); }
.modal__body ul { padding-left: 1.2rem; }
.modal__body li { margin-bottom: .6rem; }
.modal__body .video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 1.25rem; }
.modal__body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__body .yt { margin: -.5rem 0 1.25rem; text-align: center; }
.modal__body .yt a { color: var(--red); font-weight: 700; text-decoration: none; }
.modal__body .more { margin-top: 1.5rem; text-align: center; }

/* Footer: mismo contenido y colores del sitio actual */
.footer { padding: 2rem 0 0; background-color: var(--navy); color: #fff; text-align: center; }
.footer .container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.footer .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 1.5rem; }
.footer h4 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; margin: 0 0 1.5rem; min-height: 1.5rem; }
.footer .lead { font-size: 1.15rem; margin: 0; max-width: none; color: #fff; }
.footer .lead a { color: #fff; }
.footer .btn-social { border-radius: 100%; display: inline-flex; width: 3.25rem; height: 3.25rem; font-size: 1.25rem; justify-content: center; align-items: center; margin: 0 .25rem .5rem; border: 2px solid #fff; color: #fff; text-decoration: none; transition: background .15s ease, color .15s ease; }
.footer .btn-social:hover { background: #fff; color: var(--navy); }
.divider-custom { margin: .5rem 0 1.5rem; width: 100%; display: flex; justify-content: center; align-items: center; }
.divider-custom .divider-custom-line { width: 100%; max-width: 7rem; height: .25rem; border-radius: 1rem; background-color: #fff; }
.divider-custom .divider-custom-line:first-child { margin-right: 1rem; }
.divider-custom .divider-custom-line:last-child { margin-left: 1rem; }
.copyright { background-color: var(--navy-2); color: #fff; text-align: center; padding: 1.5rem 0; }

/* Tableta */
@media (max-width: 991px) {
  .grid { --gap: 22px; }
  .grid > .card { flex-basis: calc((100% - var(--gap)) / 2); }
  .hero__in { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 48px; }
  .topnav a:not(.btn) { display: none; }
}

/* Celular */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar__in { min-height: 64px; }
  .brand img { height: 42px; }
  .topnav .btn { display: none; }
  .hero__in { grid-template-columns: 1fr; text-align: center; padding-top: 32px; gap: 8px; }
  .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; padding-bottom: 8px; }
  .hero__cta .btn { width: 100%; }
  .hero__art { width: min(250px, 70%); }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 28px; }
  /* Carrusel deslizable: se ve la siguiente tarjeta */
  .grid { --gap: 14px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
          margin-inline: -16px; padding: 4px 16px 18px; scrollbar-width: none; }
  .grid::-webkit-scrollbar { display: none; }
  .grid > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .card:hover { transform: none; }
  .hint { display: flex; }
  .quick { grid-template-columns: 1fr; }
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; inset-inline: 0; border-radius: 22px 22px 0 0; }
  .modal__body { padding: 18px; }
  .footer .row { grid-template-columns: 1fr; gap: 8px; }
  .footer h4 { margin-bottom: 1rem; }
}
