/* Portada publica del portal.
   Paleta institucional compartida con Participa, Datos Abiertos y el buscador.
   Contrastes verificados contra WCAG 2.1 AA (Resolucion 1519 de 2020, Anexo 1).
   El enlace de salto (.bs-skip) se hereda de buscador.css, que base.html ya carga. */

.pt-hero {
    background: #0b4f6c;
    color: #ffffff;
    padding: 38px 0 34px;
}

.pt-hero h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 14px;
    max-width: 24ch;
}

.pt-lead {
    font-size: 16px;
    max-width: 74ch;
    margin-bottom: 24px;
    color: #e3eef4;
}

/* -- Buscador de la portada -------------------------------------------- */

.pt-buscador label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.pt-buscador-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 720px;
}

.pt-buscador-fila .form-control {
    flex: 1 1 300px;
    min-width: 0;
    height: 42px;
}

.pt-buscador-fila .btn {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 26px;
}

/* -- Secciones --------------------------------------------------------- */

.pt-seccion {
    padding: 34px 0;
}

.pt-seccion-gris {
    background: #f3f6f8;
}

.pt-seccion h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0b4f6c;
    border-bottom: 1px solid #d7dee3;
    padding-bottom: 8px;
    margin: 0 0 8px;
}

.pt-seccion-intro {
    color: #55606b;
    max-width: 78ch;
    margin-bottom: 20px;
}

/* -- Rejilla de tarjetas ----------------------------------------------- */

.pt-tarjetas {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pt-tarjeta {
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-left: 3px solid #0b4f6c;
    border-radius: 4px;
    padding: 16px 18px;
}

.pt-tarjeta h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pt-tarjeta h3 a { color: #0b4f6c; }

.pt-tarjeta p {
    margin: 0;
    font-size: 14px;
    color: #3c4952;
}

.pt-mas {
    margin: 20px 0 0;
    font-weight: 600;
}

.pt-mas a { color: #0b4f6c; }

/* -- Noticias ---------------------------------------------------------- */

.pt-noticias {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pt-noticia h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.35;
}

.pt-noticia h3 a { color: #0b4f6c; }

.pt-noticia p {
    font-size: 14px;
    color: #3c4952;
    margin: 0;
}

.pt-noticia-meta {
    font-size: 12px;
    color: #55606b;
    margin: 0 0 6px;
}

.pt-etiqueta {
    display: inline-block;
    background: #0b4f6c;
    color: #ffffff;
    border-radius: 3px;
    padding: 1px 7px;
    margin-right: 6px;
}

/* -- Contacto ---------------------------------------------------------- */

.pt-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 20px;
}

.pt-contacto address {
    flex: 0 0 260px;
    margin: 0;
    line-height: 1.7;
    color: #3c4952;
}

.pt-contacto-texto {
    flex: 1 1 340px;
    max-width: 74ch;
    color: #3c4952;
}

/* -- Mapa del sitio ---------------------------------------------------- */

.pt-mapa {
    columns: 3;
    column-gap: 36px;
    padding-left: 18px;
    margin: 20px 0 0;
    font-size: 14px;
}

.pt-mapa li {
    margin-bottom: 7px;
    break-inside: avoid;
}

@media (max-width: 991px) {
    .pt-mapa { columns: 2; }
}

@media (max-width: 575px) {
    .pt-hero h1 { font-size: 24px; }
    .pt-mapa { columns: 1; }
}
