@font-face { font-family: "Baloo 2"; src: url("fuentes/Baloo2-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fuentes/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fuentes/Nunito-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fuentes/Nunito-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --verde: #3e8e2a; --verde-osc: #2c6b1d; --verde-claro: #e6f3dc; --tuna: #ee4d7a; --crema: #fff8ec;
  --oro: #f2b632; --texto: #1f2a1a; --suave: #5d6a57; --linea: #ece3d2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; color: var(--texto); background: var(--crema); line-height: 1.6; font-size: 17px; }
a { color: var(--verde-osc); font-weight: 700; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.envoltura { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.barra .envoltura { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); font-family: "Baloo 2", sans-serif; font-size: 1.6rem; }
.marca img { width: 36px; }
.barra nav a { margin-left: 18px; text-decoration: none; color: var(--suave); font-weight: 700; font-size: .95rem; }
.barra nav a:hover { color: var(--verde-osc); }

/* Portada */
.portada { background: radial-gradient(circle at 70% 30%, #f1fae8 0, var(--crema) 55%, #fff1dc 100%); }
.portada .envoltura { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.portada h1 span { color: var(--verde); }
.portada p.grande { font-size: 1.2rem; color: var(--suave); max-width: 34em; }
.portada .nopi { justify-self: center; width: min(100%, 360px); filter: drop-shadow(0 18px 30px rgba(62, 142, 42, .18)); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.boton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 18px; text-decoration: none; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .14); }
.boton.verde { background: var(--verde); color: #fff; }
.boton.blanco { background: #fff; color: var(--verde-osc); }
.boton small { display: block; font-weight: 700; font-size: .72rem; opacity: .85; }
.pronto { margin-top: 10px; color: var(--suave); font-size: .9rem; }

/* Secciones */
section.bloque { padding: 56px 0; }
.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.tarjeta { background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 6px 22px rgba(70, 60, 30, .07); }
.tarjeta .icono { font-size: 2rem; line-height: 1; }
.tarjeta p { color: var(--suave); margin: .3em 0 0; }
.perfiles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.perfil { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 16px 8px 8px; border-radius: 99px; font-weight: 800; box-shadow: 0 3px 12px rgba(70, 60, 30, .06); }
.perfil img { width: 40px; }
.verde-claro { background: var(--verde-claro); }
.aviso-oficial { border-left: 6px solid var(--oro); }

/* Documentos legales */
.documento { max-width: 780px; margin: 0 auto; padding: 40px 22px 70px; }
.documento h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
.documento h2 { font-size: 1.45rem; margin-top: 1.6em; }
.documento .fecha { color: var(--suave); }
.documento li { margin-bottom: .35em; }
.pendiente { background: #fff0c7; border-radius: 6px; padding: 0 4px; font-weight: 800; }
.caja { background: #fff; border-radius: 20px; padding: 18px 22px; margin: 18px 0; box-shadow: 0 4px 16px rgba(70, 60, 30, .06); }

/* Pie */
footer { background: #1f2a1a; color: #d9e3d2; padding: 34px 0; font-size: .92rem; }
footer a { color: #fff; }
footer .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav a { margin-right: 16px; }

@media (max-width: 760px) {
  .portada .envoltura { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .portada .nopi { width: 230px; order: -1; }
  .botones { justify-content: center; }
  .barra nav a:not(.importante) { display: none; }
}
