/* Paginas informativas del diseno MVP1 (RQF-01, RQF-03, RQF-04, RQF-05). Movil bajo 768px. */

.pagina-informativa .bc {
    display: none;
}

.pagina-informativa__contenido {
    padding-top: 20px;
    padding-bottom: 60px;
    color: #475156;
}

/* Breadcrumb */

.migas ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.45;
}

.migas li + li:before {
    content: '›';
    color: #6f7071;
    padding: 0 8px;
}

.migas a {
    color: #0062a9;
}

.pagina-informativa__intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pagina-informativa__intro p:last-child {
    margin-bottom: 0;
}

/* Boton */

.cne-boton,
.cne-boton:link,
.cne-boton:visited {
    display: inline-block;
    border: 2px solid #0f69b4;
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 18px;
    text-align: center;
}

.cne-boton--primario,
.cne-boton--primario:link,
.cne-boton--primario:visited {
    background: #0f69b4;
    border-color: #004986;
    color: #fff;
}

.cne-boton--primario:hover,
.cne-boton--primario:focus {
    background: #1274c6;
    color: #fff;
}

/* Preguntas frecuentes (RQF-05) */

.faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.wrap-content .faq__pregunta {
    background: #e7f0f7;
    border: 0;
    color: #46547b;
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    padding: 10px 15px;
}

.faq__respuesta {
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.5;
}

.faq__respuesta p {
    margin: 0 0 8px;
}

.faq__respuesta p:last-child {
    margin-bottom: 0;
}

.faq__respuesta p a {
    text-decoration: underline;
}

.faq__enlace {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.faq__enlace:hover {
    text-decoration: underline;
}

.faq__final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #e1e1e2;
    padding: 16px 20px;
}

.faq__final p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

/* Politicas de Privacidad (RQF-04): columna de lectura de 8/12 */

.privacidad {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 770px;
}

.privacidad__seccion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacidad h2 {
    color: #475156;
    line-height: 1.3;
    margin: 0;
}

.privacidad__fecha {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #6f7071;
}

.privacidad__texto,
.privacidad__recuadro {
    font-size: 16px;
    line-height: 1.5;
}

.privacidad__texto p,
.privacidad__texto ul,
.privacidad__texto ol {
    margin: 0 0 20px;
}

.privacidad__texto > :last-child,
.privacidad__recuadro > :last-child {
    margin-bottom: 0;
}

.privacidad__texto ul {
    list-style: none;
    padding: 0;
}

.privacidad__texto ul li {
    position: relative;
    padding-left: 19px;
}

.privacidad__texto ul li + li {
    margin-top: 8px;
}

.privacidad__texto ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background: #0f69b4;
}

.privacidad__texto a,
.privacidad__recuadro a {
    color: #0062a9;
    text-decoration: underline;
}

.privacidad__recuadro {
    background: #e7f0f7;
    padding: 16px 20px;
}

.privacidad__recuadro p {
    margin: 0 0 8px;
}

/* Mapa del Sitio (RQF-03) */

.mapa {
    column-gap: 30px;
}

.mapa--3 {
    column-count: 3;
}

.mapa--2 {
    column-count: 2;
}

.mapa__bloque {
    break-inside: avoid;
    padding-bottom: 30px;
}

.mapa h2 {
    color: #475156;
    line-height: 1.3;
    margin: 0 0 6px;
}

.mapa h2 a {
    color: inherit;
}

.mapa ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mapa ul ul {
    padding-left: 15px;
}

.mapa li {
    font-size: 16px;
    line-height: 1.5;
}

.mapa li a {
    display: inline-block;
    position: relative;
    padding: 5px 0 5px 16px;
    margin-top: 6px;
    color: #0062a9;
}

.mapa li a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: #0f69b4;
    font-weight: 700;
}

.mapa li a:hover {
    text-decoration: underline;
}

.mapa__grupo > a {
    font-weight: 700;
}

/* Tarificacion: buscador de documentos (RQF-01, RQF-02) */

.tarif h2 {
    color: #475156;
    line-height: 1.3;
    margin-top: 0;
}

.tarif__menu,
.tarif__menu:hover,
.tarif__menu:focus {
    background: #0f69b4;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-size: 12px;
    margin-right: 8px;
    padding: 4px 6px;
    vertical-align: 2px;
}

.tarif__contenido {
    margin-bottom: 20px;
}

.tarif__filtros {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
}

.tarif__campo label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #475156;
}

.tarif__campo select,
.tarif__filas select {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: #ebecec url('../imgs/tarificacion/caret.svg') no-repeat right 12px center;
    color: #475156;
    float: none;
}

.tarif__campo select {
    width: 100%;
    font-size: 16px;
    line-height: 1.5;
    padding: 6px 30px 6px 10px;
}

.tarif__campo select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.tarif__campo--proceso,
.tarif__campo--dimension {
    flex: 1 1 0;
    min-width: 0;
}

.tarif__filtros > .cne-boton,
.tarif__limpiar {
    flex: none;
}

.tarif__filtros .cne-boton {
    border-width: 2px;
}

.tarif__limpiar,
.tarif__limpiar:visited {
    padding-bottom: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #0062a9;
    text-decoration: underline;
}

.tarif__resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.45;
    color: #475156;
}

.tarif__resumen p {
    margin: 0;
}

.tarif__filas {
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
}

.tarif__filas select {
    display: inline-block;
    margin: 0 6px;
    padding: 3px 26px 3px 8px;
    background-position: right 8px center;
}

.tarif__error {
    margin-bottom: 20px;
    color: #e72034;
}

.tarif__resultados[aria-busy="true"] {
    opacity: 0.5;
}

/* En tableta la tabla no cabe: se desplaza ella, no la pagina */
.tarif__tabla-contenedor {
    position: relative; /* contiene los .sr-only de la tabla, que si no escapan del recorte */
    overflow-x: auto;
    margin-bottom: 20px;
}

.tarif__tabla {
    width: 100%;
    color: #475156;
}

.tarif__tabla th {
    background: #e7f0f7;
    color: #46547b;
    font-size: 14px;
    line-height: 1.45;
    padding: 10px;
    white-space: nowrap;
}

.tarif__tabla td {
    border-bottom: 1px solid #e1e1e2;
    padding: 12px 10px;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
}

.tarif__tabla th:nth-child(1) { width: 30%; }
.tarif__tabla th:nth-child(2) { width: 13%; }
.tarif__tabla th:nth-child(3) { width: 24%; }
.tarif__tabla th:nth-child(4) { width: 9%; }
.tarif__tabla th:nth-child(5) { width: 8%; }

.tarif__nombre a {
    color: #0062a9;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.tarif__nombre a:hover {
    text-decoration: underline;
}

.tarif__contexto {
    display: block;
    margin-top: 2px;
    color: #6f7071;
    font-size: 13px;
}

.tarif__tamano,
.tarif__fecha {
    white-space: nowrap;
}

.tarif__etiqueta {
    display: inline-block;
    padding: 2px 6px;
    background: #6f7071;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.tarif__etiqueta--pdf {
    background: #e72034;
}

.tarif__etiqueta--xlsx {
    background: #1d7a45;
}

.tarif__etiqueta--docx {
    background: #0f69b4;
}

.tarif__accion {
    text-align: right;
}

.tarif__descargar,
.tarif__descargar:visited {
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    background: #0f69b4;
    border: 2px solid #004986;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.tarif__descargar > span:first-child {
    padding: 6px 15px;
}

.tarif__descargar-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    background: #004986;
}

.tarif__descargar:hover,
.tarif__descargar:focus {
    background: #1274c6;
    color: #fff;
}

.tarif__paginacion ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 10px 0 0;
}

.tarif__paginacion a,
.tarif__paginacion span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: #fff;
    color: #0062a9;
    font-size: 14px;
    line-height: 1.45;
}

.tarif__paginacion a:hover {
    background: #e7f0f7;
}

.tarif__numero span {
    background: #0f69b4;
    border-color: #0f69b4;
    color: #fff;
}

.tarif__pagina-de {
    display: none;
}

@media (max-width: 991px) {
    .mapa--3 {
        column-count: 2;
    }

    .tarif__filtros {
        flex-wrap: wrap;
    }

    .tarif__campo--proceso,
    .tarif__campo--dimension {
        flex-basis: 220px;
    }
}

@media (max-width: 767px) {
    .pagina-informativa__contenido {
        padding-top: 16px;
        padding-bottom: 40px;
    }

    .migas ol {
        margin-bottom: 16px;
    }

    .pagina-informativa__intro {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .faq {
        gap: 16px;
        margin-bottom: 16px;
    }

    .wrap-content .faq__pregunta {
        font-size: 16px;
        line-height: 1.5;
        padding: 10px 12px;
    }

    .faq__respuesta {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.45;
    }

    .faq__respuesta p {
        margin-bottom: 6px;
    }

    .faq__enlace {
        margin-top: 6px;
    }

    .faq__final {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

    .faq__final .cne-boton {
        display: block;
    }

    .privacidad,
    .privacidad__seccion {
        gap: 16px;
    }

    .privacidad__texto,
    .privacidad__recuadro {
        font-size: 14px;
        line-height: 1.45;
    }

    .privacidad__texto p,
    .privacidad__texto ul,
    .privacidad__texto ol {
        margin-bottom: 16px;
    }

    .privacidad__texto ul li {
        padding-left: 16px;
    }

    .privacidad__texto ul li + li {
        margin-top: 6px;
    }

    .privacidad__texto ul li:before {
        top: 8px;
        width: 6px;
        height: 6px;
    }

    .privacidad__recuadro {
        padding: 12px 14px;
    }

    .mapa--3,
    .mapa--2 {
        column-count: 1;
    }

    .mapa li a {
        margin-top: 4px;
    }

    /* Tarificacion: filtros apilados y documentos como tarjetas */

    .tarif__filtros {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .tarif__campo--proceso,
    .tarif__campo--dimension {
        flex: none;
        width: auto;
    }

    .tarif__limpiar {
        padding-bottom: 0;
    }

    .tarif__resumen {
        margin-bottom: 8px;
    }

    .tarif__filas {
        display: none;
    }

    .tarif__tabla,
    .tarif__tabla tbody {
        display: block;
    }

    .tarif__tabla thead {
        display: none;
    }

    .tarif__tabla tr {
        display: grid;
        grid-template-columns: auto auto 1fr;
        grid-template-areas:
            "nombre nombre nombre"
            "fecha tamano formato"
            "descripcion descripcion descripcion"
            "accion accion accion";
        align-items: center;
        gap: 6px 0;
        padding: 14px 0;
        border-bottom: 1px solid #e1e1e2;
    }

    .tarif__tabla td {
        border: 0;
        padding: 0;
    }

    .tarif__nombre { grid-area: nombre; }
    .tarif__fecha { grid-area: fecha; }
    .tarif__tamano { grid-area: tamano; }
    .tarif__formato { grid-area: formato; padding-left: 8px !important; }
    .tarif__descripcion { grid-area: descripcion; }
    .tarif__accion { grid-area: accion; padding-top: 4px !important; }

    .tarif__fecha:after {
        content: '·';
        padding: 0 6px;
    }

    .tarif__descripcion:empty {
        display: none;
    }

    .tarif__descargar,
    .tarif__descargar:visited {
        display: flex;
    }

    .tarif__paginacion .tarif__extremo,
    .tarif__paginacion .tarif__numero {
        display: none;
    }

    .tarif__pagina-de {
        display: block;
    }

    .tarif__pagina-de span {
        border: 0;
        color: #475156;
    }
}
