h2 {
    font-size: 32px !important;
    font-family: 'Inter';
    color: #333333;
    font-weight: 700 !important;
}

tr {
    background: none !important;
}

.mini-menu {
    display: none;
}

body {
    font-family: 'robotoregular', sans-serif, Helvetica, Arial;
    font-size: 14px;
    line-height: 1.42857143;
    color: black;
}

a {
    text-decoration: none;
}

a:hover,
a:focus,
.link:hover,
.link:focus {
    color: #456f74;
}

body #backtotop {
    background: #A5C6CA;
    border-color: #A5C6CA;
    color: #000;
}

body #backtotop:hover {
    background: #4c99a2;
    border-color: #4c99a2;
}

li::marker {
    content: "";
}

.accordion {

    a {
        color: #006db3 !important;
        background-color: #F0F9FF !important;
        font-weight: 700;
    }

}

.bs_grid .container .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Formularios General */
.d-flex.flex-wrap {
  margin-top: 20px;
}

/* Separación entre filtros */
.d-flex.flex-wrap .form-item {
  margin-bottom: 15px;
  padding-right: 10px;
}

/* Separación del botón respecto a los filtros */
.d-flex.flex-wrap .form-actions {
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 10px;
}

/* Botón Buscar */
.d-flex.flex-wrap .form-actions .btn-primary,
.d-flex.flex-wrap .form-actions .form-submit {
  background-color: #456f74;
  border-color: #456f74;
  color: #ffffff;
}

#navbar-top {
    .nav-link {
        font-family: 'robotoregular', sans-serif, Helvetica, Arial;
        font-size: 14px;
        line-height: 1.42857143;
        color: black;
    }

    .nav-item:hover {
        border-bottom: 2px solid #4F7791;
    }

    a:active,
    .link:active {
        color: black !important;
    }

    #block-pozuelo-theme-navegacionprincipalcultura,
    #block-pozuelo-theme-logotipoculturaheader {
        width: fit-content;
        padding-top: 26px;
    }

    .top-branding {
        flex-basis: 50%;
    }

    .region-top-header {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    #block-pozuelo-theme-logotipoculturaheader {
        background-color: #4c99a2;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    /*Inicio de buscador nuevo Google*/
    .top-search {
        width: 20%;
        margin: 0 auto;
        margin: -4px auto 65px auto;

        tr,
        td {
            border: none;
            background: none;
        }
    }

    .top-rrss {
        margin: -4px auto 65px auto;

        .views-field-field-logotipo img:hover {
            transform: scale(1.2);
        }
    }

    .search-box {
        width: 100%;
        height: 40px;
        margin: 0 auto;
        background-color: #ffffff;
        padding: 3px 4px;
        border-radius: 40px;
        margin-top: 12px;
        border: 1px solid #d1d5db;
    }

    #___gcse_0 {
        top: -40px;
        position: relative;
    }

    .gsc-control-cse {
        padding: 0px !important;
        border-width: 0px !important;
    }

    form.gsc-search-box,
    table.gsc-search-box {
        margin-bottom: 0px !important;
    }

    /* nuclear fix para el buscador HEADER */
    .search-box {
        position: relative !important;
    }

    .gsc-search-button {
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #gsc-i-id1,
    #gsc-i-id2 {
        padding-left: 33px !important;
        background: none !important;
        background-image: none !important;
        background-color: transparent !important;
        text-indent: 0px !important;
    }

    .gsc-input-box,
    .gsc-input {
        background: transparent !important;
        border: none !important;
    }

    .gsc-search-button-v2 {
        background-color: transparent !important;
        border: none !important;
        filter: invert(0.5) !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
    }

    .gsc-search-button-v2 svg {
        width: 18px !important;
        height: 18px !important;
    }

    #gsc-iw-id1,
    #gsc-iw-id2 {
        height: auto !important;
        padding: 0px !important;
        border-width: 0px !important;
        box-shadow: none !important;
    }

    #gs_tti50,
    #gs_tti51 {
        padding: 0px !important;
    }

    .gsib_b {
        display: none;
    }

    button.gsc-search-button {
        display: block;
        width: 13px !important;
        height: 13px !important;
        border-width: 0px !important;
        margin: 0px !important;
        padding: 10px 6px 10px 13px !important;
        outline: none;
        cursor: pointer;
        box-shadow: none !important;
        box-sizing: content-box !important;
    }

    .gsc-branding {
        display: none !important;
    }

    .gsc-control-cse,
    #gsc-iw-id1,
    #gsc-iw-id2 {
        background-color: transparent !important;
    }

    button.gsc-search-button.gsc-search-button-v2 {
        border-radius: 22px;
        background-color: transparent !important;
        padding: 4px !important;
    }

    input::placeholder {
        color: #9CA3AF;
    }

    input {
        color: #333333;
    }

    /* redes sociales top header */
    .block-views-blockduplicado-de-redes-sociales-top-header-block-3 {
        .view-content {
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
            align-items: center;
        }

        .views-row {
            width: fit-content;
        }
    }

    .container:nth-child(2) {
        position: relative;
        top: -40px;
    }

    .container:nth-child(2)>.container {
        border-bottom: 16px solid #4c99a2;
        padding: 0;
    }

    .region-escudo-cultura {
        width: fit-content;
        float: right;

        #block-pozuelo-theme-escudoculturaheader {
            .content {
                display: flex;
            }

            .content::before {
                content: url(/themes/custom/pozuelo_theme/img/btn-ayto-left.png);
                height: 40px;
            }

            .field--name-body {
                display: flex;
                flex-wrap: nowrap;
                background-color: #456f74;
                align-items: center;
                gap: 6px;
                padding: 0px 30px 0px 20px;
                border-top-right-radius: 20px;
                height: 40px;

                img {
                    width: 16px;
                    margin: 0 10px;
                }

                p {
                    margin: 0;
                }

                a {
                    color: white;
                    text-decoration: none;
                }

                a:hover {
                    text-decoration: underline;
                }
            }
        }
    }
    #block-pozuelo-theme-logotipoculturaheader .field--name-field-media-image img{
        width: 166px;
        height: auto;
    }
}

#navbar-main {
    padding: 0;
    top: -48px;

    .navbar-collapse {
        justify-content: center !important;
    }
}

.featured-top {
    position: relative;
    top: -48px;

    .block-content-slider_cultura {
        .enlace {
            cursor: pointer;
        }

        .paragraph--type--slider {
            display: flex;

            .field--name-field-enlace {
                display: none;
            }

            .field--name-field-imagen {
                flex-basis: 67%;
                margin: 0;
                background-color: #456f74;
            }

            .field--name-field-imagen:hover a img {
                transform: scale(1.10);
            }

            .field--name-field-contenido {
                flex-basis: 33%;
                background-color: #456f74;
                padding: 36px 20px 36px 24px;
            }

            h2 {
                color: #fff;
                font-size: 25px;
                font-weight: 500;
            }

            .field--name-field-texto {
                color: #fff;
                font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                font-size: 14px;
                line-height: 1.42857143;
            }

            img {
                width: 100%;
            }
        }

        .paragraph--type--slider:hover .field--name-field-contenido {
            background-color: #2A2E36
        }

        .slick__arrow {
            top: 50%;
            left: -39px;
            width: 107%;
        }

        .slick-arrow::before {
            color: #456f74;
            font-size: 36px;
            font-size: 2.25rem;
        }

        .slick--skin--fullscreen .slick-dots {
            bottom: 0px;
        }
    }
}

/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

#block-pozuelo-theme-navegacionprincipalheadercultura {
    ul {
        justify-content: center;
        flex-wrap: nowrap;
    }

    li {
        border: 0.5px solid #E9E9E9;
        text-align: center;
    }

    a {
        color: black;
        font-family: 'robotoregular', sans-serif, Helvetica, Arial;
        font-size: 14px;
        line-height: 1.42857143;
        text-decoration: none;
        padding: 22px 20px;
    }

    a:hover {
        color: #456f74;
        text-decoration: underline
    }


}

/* banners  e instagram*/

.banner-instagram {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;

    .banner {
        flex-basis: 100%;

        .view-banner-cultura-home {
            img {
                width: 100%;
                height: auto;
            }

            .view-content {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr 1fr;
                gap: 15px;

                .views-field-title {
                    margin-bottom: 10px;
                }

                a {
                    text-decoration: none;
                }

                a:hover {
                    text-decoration: underline;
                }

                a:hover .banner-select {
                    opacity: 0.5;
                }

                a:hover i {
                    opacity: 1;
                }

                .titulo {
                    font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                    font-weight: 500;
                    color: #456f74;
                    font-size: 16px;
                    margin-bottom: 10px;
                }

                .descripcion {
                    color: black;
                    font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                    font-size: 14px;
                    line-height: 1.42857143;
                }

                .views-row {
                    cursor: pointer;
                }

                i {
                    opacity: 0;
                    font-size: 70px;
                    color: white;
                    position: relative;
                    top: -250px;
                    left: 40%;
                    -webkit-transition: opacity 0.5s ease-in-out;
                    -moz-transition: opacity 0.5s ease-in-out;
                    -ms-transition: opacity 0.5s ease-in-out;
                    -o-transition: opacity 0.5s ease-in-out;
                    transition: opacity 0.5s ease-in-out;
                }

                .banner-select {
                    background-color: #4c99a2;
                    opacity: 0;
                    width: 100%;
                    height: 120px;
                    display: block;
                    position: relative;
                    top: -160px;
                    -webkit-transition: opacity 0.5s ease-in-out;
                    -moz-transition: opacity 0.5s ease-in-out;
                    -ms-transition: opacity 0.5s ease-in-out;
                    -o-transition: opacity 0.5s ease-in-out;
                    transition: opacity 0.5s ease-in-out;
                }

                .banner-cultura-pic {
                    height: 120px;
                    overflow: hidden;
                    margin-bottom: 15px;
                }
            }
        }

    }

    .instagram {
        flex-basis: 0%;
    }
}


/* =========================================================
   NOTICIAS HOME
   ========================================================= */
.block-views-blocknoticias-cultura-home-block-1 {
    padding-top: 12px;

    h2 {
        font-size: 21px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .view-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* let rows size to their content instead of forcing tall fractions */
        grid-template-rows: auto auto;
        /* ensure rows don't get extra height when an item spans multiple rows */
        grid-auto-rows: min-content;
        column-gap: 16px;
        align-items: start;
    }

    .views-row {
        margin: 0;
        padding: 0;
        /* make each grid item align to the top so they don't vertically center */
        align-self: start;
    }

    /* NOTICIA PRINCIPAL (IZQUIERDA) */
    .views-row:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 4; 
        
        /* NUEVO: Usamos flexbox en columna para separar imagen, título, etc. */
        display: flex;
        flex-direction: column;
        gap: 16px; /* Puedes subir o bajar este valor para dar más o menos espacio */

        .views-field-title {
            /* Reseteamos este margen porque el 'gap' de arriba ya se encarga de dar el espacio */
            margin: 0; 
        }
    }

    /* PRIMERA NOTICIA LATERAL (DERECHA) */
    .views-row:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: repeat(3, auto);
        gap: 8px;
        margin-bottom: 8px;
        height: auto;
        padding-bottom: 8px;

        .views-field-field-imagen,
        .views-field-field-image {
            grid-column: 1 / 2;
            grid-row: 1 / 4;
            border-radius: 8px;
        }

        .views-field-title {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }

        .views-field-created {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            position: static;
            margin-bottom: 4px;
        }
    }

    /* SEGUNDA NOTICIA LATERAL (DERECHA) */
    .views-row:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: repeat(3, auto);
        gap: 8px;
        margin-bottom: 8px;
        height: auto;
        padding-bottom: 8px;

        .views-field-field-imagen,
        .views-field-field-image {
            grid-column: 1 / 2;
            grid-row: 1 / 4;
        }

        .views-field-title {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
        }

        .views-field-created {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            position: static;
            margin-bottom: 4px;
        }
    }

    /* TERCERA NOTICIA LATERAL (DERECHA) */
    .views-row:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: repeat(3, auto);
        gap: 8px;
        margin-bottom: 8px;
        height: auto;
        padding-bottom: 8px;

        .views-field-field-imagen,
        .views-field-field-image {
            grid-column: 1 / 2;
            grid-row: 1 / 4;
        }

        .views-field-title {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 18px;
        }

        .views-field-created {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
            position: static;
            margin-bottom: 4px;
        }
    }



    img {
        width: 100%;
        height: auto;
        border-radius: 16px;
        
    }

    .views-field-title .field-content a {
        color: #456f74;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 18px;
    }

    .views-field-title .field-content a:hover {
        text-decoration: underline;
    }

    .views-field-created {
        line-height: 1.42857143;
        color: #333333;
        font-size: 14px;
    }

    .view-footer {
        margin: 0;
        text-align: center;

        a {
            color: #fff;
            background-color: #456f74;
            position: relative;
            display: flex;
            width: fit-content;
            font-size: 16px;
            font-weight: 600;
            border-radius: 8px;
            padding: 10px 24px;
            box-shadow: unset;
        }

        a:hover {
            color: #fff !important;
            background-color: #131F20;
            border-color: rgba(0, 0, 0, 0);
        }
    }
}

.block-views-blocklo-mas-visitado-cultura-home-block-1 {

    background: #F0F0F0;
    padding: 10px;
    margin-bottom: 20px;

    .view-content {
        display: grid;
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        align-items: center;

        .views-row {
            width: fit-content;
        }

        .views-field-field-enlace .field-content a {
            display: flex;
            flex-wrap: nowrap;
            color: #39737A;
            font-weight: bold;
            background-color: transparent;
            padding-left: 60px !important;
            align-items: center;

            .visitado-lototipo {
                margin-right: 15px;

                img {
                    width: 50px;
                    height: auto;
                }
            }
        }

        .views-field-field-enlace .field-content a:hover {
            color: black !important;
        }
    }

}

.site-footer {
    background: #456f74 !important;

    .block {
        border: none !important;
    }

    .site-footer__top .region {
        width: 34%;
        padding: 0 0.65%;
    }

    .block-views-blockcontacto-footer-block-1 {
        h2 {
            font-size: 16px;
            line-height: 24px;
            font-weight: 600;
            font-family: robotolighter;
            color: #FDFDFD;
            border: none;
            margin-bottom: 10px;
            text-transform: math-auto;
        }

        .views-row {
            display: flex;
            align-items: center;
        }

        .views-field-field-logotipo {
            margin-right: 6px;
        }

        .views-field-name .field-content {
            font-size: 14px;
            line-height: 20px;
            font-family: robotolighter;
            color: #FDFDFD;
        }
    }

    .bottom-search {
        margin-top: 22px;
        right: -22px;

        /* nuclear fix para el buscador FOOTER */
        .search-box {
            position: relative !important;
            display: block !important;
            width: 78% !important;
            float: right !important;
            background-color: #ffffff;
            height: 40px;
            padding: 3px 4px;
            border-radius: 40px;
            border: 1px solid #ddd;
            box-sizing: border-box;
        }

        .gsc-search-button {
            position: absolute !important;
            left: 10px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            z-index: 100 !important;
            width: 30px !important;
            height: 30px !important;
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .gsc-search-button-v2 {
            background-color: transparent !important;
            border: none !important;
            filter: invert(0.5) !important;
            width: 100% !important;
            height: 100% !important;
            display: flex !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        .gsc-search-button-v2 svg {
            width: 18px !important;
            height: 18px !important;
        }

        #gsc-i-id1,
        #gsc-i-id2 {
            /* Espacio para la lupa */
            background: none !important;
            background-image: none !important;
            background-color: transparent !important;
            text-indent: 0px !important;
        }

        .gsc-input-box,
        .gsc-input {
            background: transparent !important;
            border: none !important;
        }

        .gsc-branding,
        .gsib_b {
            display: none !important;
        }

        #___gcse_1 {
            bottom: 40px;
            position: relative;
        }

        .gsc-control-cse,
        #gsc-iw-id1,
        #gsc-iw-id2 {
            background-color: transparent !important;
            padding: 0px !important;
            border-width: 0px !important;
            box-shadow: none !important;
        }

        form.gsc-search-box,
        table.gsc-search-box {
            margin-bottom: 0px !important;
        }

        button.gsc-search-button.gsc-search-button-v2 {
            border-radius: 22px;
            background-color: #456F74 !important;
            padding: 4px !important;
            color: #ffffff !important;
            border: none !important;
        }

        button.gsc-search-button:hover,
        button.gsc-search-button.gsc-search-button-v2:hover {
            background-color: #4A7351 !important;
            color: #ffffff !important;
        }

        input::placeholder {
            color: #9CA3AF;
        }

        input {
            color: #000;
            background: transparent;
        }

    }

    .block-views-blockredes-sociales-top-header-block-2 {
        padding-right: 15px !important;
        margin-top: 0px !important;

        img {
            width: 25px;
            height: auto;
        }

        .views-row {
            padding: 0 5px;
        }
    }

    .site-footer__bottom {
        border-top: 1px solid #1570EF;
    }

    .menu--pie-de-pagina-cultura {
        .nav {
            justify-content: center;
        }

        a {
            text-decoration: none;
            font-family: 'Inter', sans-serif;
            font-size: 12px;
        }

        .nav-link {
            color: white;
        }

        a:hover {
            text-decoration: underline;
            color: #4c99a2;
        }
    }

    #block-pozuelo-theme-estandares {
        p {
            text-align: center;
            font-size: 14px;
            font-family: robotolighter;
            font-weight: 400;
            line-height: 20px;
            color: white;
        }
    }

    .region-footer-third {
        right: -19px;
    }

    #block-pozuelo-theme-culturapozuelo {
        margin: 0;

        p {
            margin: 0;
            text-align: center;
        }
    }

    .block-views-blockcontacto-footer-block-2 {
        margin: 0;

        .views-row {
            display: flex;
            align-items: center;
            justify-content: center;

            .views-field-field-logotipo {
                margin-right: 5px;
            }
        }
    }

    .block-views-blockredes-sociales-top-header-block-2 {
        .view-content {
            display: flex;
            justify-content: flex-end;

            .views-row {
                width: fit-content;

                .views-field-field-imagen img:hover {
                    transform: scale(1.2);
                }
            }
        }
    }

    .site-footer__bottom {
        display: none;
    }
}

/* =========================================================
   A UN CLIC
   ========================================================= */
.a-un-clic {

    a:hover,
    a:focus,
    .link:hover,
    .link:focus {
        color: #000 !important;
    }

    margin-bottom: 50px;

    h2 {
        margin-bottom: 10px;
    }

    .view-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
    }

    .views-row a {
        width: 100%;
        border-radius: 8px;
        padding: 12px 20px;
        color: #000000;
        background-color: #A5C6CA;
        border-color: #A5C6CA;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        display: block;
        text-align: center;
        border: 1px solid #A5C6CA;
    }

    .views-row a:hover {
        border-color: #000000;
    }

    .views-row a::after {
        content: url(/themes/custom/pozuelo_theme/img/arrow-up-right.png);
        position: relative;
        top: 4px;
        margin-left: 3px;
    }
}

.block-system-breadcrumb-block {
    margin-top: 30px;

    a {
        color: #456f74;
    }
}

.node--type-pagina-interna-cultura {
    .node__content {

        a:hover,
        a:focus,
        .link:hover,
        .link:focus {
            color: #000 !important;
        }

        #block-pozuelo-theme-titulodepaginasinternas {
            min-height: 300px;
            background-repeat: no-repeat;
            background-size: cover;
            display: flex;
            align-items: flex-end;
            padding-left: 38px;

            .container {
                padding: 0;
            }
        }

        .title-in-page {
            font-family: 'Inter';
            color: #fff;
            font-weight: normal;
            font-size: 40px;
            margin: 0;
        }

        .block-views-blockdestacados-block-1 {
            margin: 30px 0;

            .slick-track {
                padding-bottom: 10px;
            }

            .slick__slide {
                margin: 0 30px;
                border-bottom: 1px solid #e0e3e4;
                -webkit-box-shadow: 0 2px 7px rgba(145, 145, 145, 0.35);
                box-shadow: 0 2px 7px rgba(145, 145, 145, 0.35);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }

            .views-field-title .field-content {
                margin-top: 0px;
                font-family: arial;
                font-size: 18px;
                font-weight: 700;
                min-height: 40px;
                padding: 0 14px;
                width: fit-content;
                display: block;
            }

            .views-field-field-descripcion .field-content {
                font-family: 'Inter';
                font-size: 16px;
                line-height: 20px;
                color: #333333;
                padding: 0 14px;
                width: fit-content;
                display: block;
            }

            .views-field-field-enlace .field-content {
                text-align: center;
                margin: 25px 0;
            }

            .views-field-field-enlace .field-content a {
                background-color: #006DB3;
                color: white;
                border: 1px solid white;
                text-align: center;
                padding: 12px;
                border-radius: 24px;
                font-size: 15px;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                line-height: 24px;
                width: 90%;
                display: block;
                margin: 0 auto;
            }

            .views-field-field-enlace .field-content a::after {
                content: " >";
                font-size: 15px;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                line-height: 24px;
            }

            .views-field-field-enlace .field-content a:hover {
                background-color: white;
                color: #006DB3 !important;
                border: 1px solid #006DB3;
            }

            .slick-arrow::before {
                color: #006DB3;
            }
        }

        .block-menu {
            margin-bottom: 30px;

            .nav {
                display: flex;
                flex-direction: row;
                gap: 15px;

                .nav-item {
                    border-radius: 16px;
                    background-color: #A5C6CA;
                    font-size: 16px;
                    font-weight: 600;
                    line-height: 24px;
                    color: #000000;
                    text-align: center;
                    display: flex;
                    align-items: center;
                    justify-content: space-around;
                    min-height: 170px;
                    flex-basis: 24%;
                }

                .secundario {
                    flex-basis: 100%;

                    i {
                        display: none;
                    }
                }

                .nav-link {
                    color: #000000;
                    display: -webkit-box;
                    line-clamp: 4;
                    -webkit-line-clamp: 4;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    padding: 0px 20px;
                }

                .nav-link:hover {
                    color: #000000;
                }

                .dropdown-item {
                    width: fit-content;
                }

                .dropdown {
                    a {
                        color: #000000;
                        font-size: 16px;
                        font-weight: 600;
                        line-height: 24px;
                        padding: 20px 0;
                        text-decoration: none;
                        white-space: break-spaces;
                        display: flex;
                        flex-direction: column;
                    }

                    a:hover {
                        color: #003e66;
                        text-decoration: none;
                    }
                }

                .menu-item--expanded {
                    flex-direction: column;
                }

                .dropdown-menu {
                    outline: 1px solid #E1E5E8;
                    border-radius: 16px;
                    inset: unset !important;
                    margin: 0px;
                    transform: unset !important;
                    position: relative !important;
                }

                .dropdown-item {
                    width: fit-content;
                    flex-basis: 25%;
                }

                .dropdown-item:focus,
                .dropdown-item:hover {
                    background-color: unset;
                }

                .dropdown-item a {
                    color: #000000;
                    font-size: 16px;
                    font-weight: 600;
                    line-height: 24px;
                    padding: 12px 0;
                    text-decoration: none;
                    white-space: break-spaces;
                    display: inline-flex;
                }

                .dropdown-item::before {
                    content: "•";
                    position: relative;
                    left: -3px;
                    font-size: 24px;
                    top: 3px;
                }



                .nav-item a span {
                    display: block;
                    padding: 4px 0px;
                }

                .nav-item a i {
                    font-size: 24px;
                }
                a.dropdown-toggle::after {
                    order: 2;
                    content: ">";
                    transform: rotate(90deg);
                    transition: transform 0.3s ease;
                    border: unset;
                }
            }
        }
    }
}

.organismos {
    margin-bottom: 30px;
    padding: 30px;
    background-color: #F9FAFB;
    border-radius: 8px;

    .field-content {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .views-field-name .field-content {
        font-weight: 700;
    }

    .views-field-field-telefono .field-content::before {
        content: url(/themes/custom/pozuelo_theme/img/llamar.png);
        top: 2px;
        position: relative;
    }

    .views-field-field-correo-electronico .field-content a,
    .views-field-field-enlace .field-content a {
        color: #000;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
    }

    a:hover,
    a:focus {
        color: #000 !important;
    }
}

/* =========================================================
   PÁGINA INTERNA FINAL
   ========================================================= */
.node--type-pagina-interna-final-cultura .node__content {
    .organismos {
        width: 100%;
    }

    .layout--twocol-section {
        flex-wrap: nowrap;
        gap: 30px;
    }

    .layout__region--first {
        flex: 0 1 25% !important;

        .block-menu {
            ul {
                flex-direction: column;
            }

            margin: 0 0 30px 0;
            padding: 30px 25px 15px 25px;
            -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
            -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);

            i {
                display: none;
            }

            a {
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 400;
                font-size: 16px;
                padding: 7px 10px 5px 10px;
                color: #333333;
                display: flex;
                white-space: break-spaces;
            }

            a::before {
                content: "•";
                position: relative;
                left: -3px;
                font-size: 9px;
                top: 4px;
            }

            a.active {
                color: #36826D;
            }

            a:hover {
                color: #000;
            }

            h2 {
                display: none;
                left: -15px;
                position: relative;
            }

            h2 a {
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
                color: #36826D;
                text-decoration: none;
            }

            h2 a::before {
                display: none;
            }

            .dropdown-menu {
                display: block;
                border: none;
            }

            .dropdown-item.active,
            .dropdown-item:active {
                background-color: unset;
            }

            .dropdown-item {
                white-space: normal;
            }

            .dropdown-toggle::after {
                display: none;
            }

            .dropdown-item:focus,
            .dropdown-item:hover {
                color: unset;
                background-color: unset;
            }

            a:focus,
            a:hover {
                text-decoration: underline;
            }
        }
    }

    .layout__region--second {
        flex: 0 1 75% !important;

        .block-field-blocknodepagina-interna-final-culturatitle {
            background-color: #456f74;
            padding: 20px;

            h1 {
                color: #fff;
                margin: 0;
                font-size: 22px;
                font-weight: 600;
            }
        }

        .field--name-field-enlace {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            align-items: center;
            gap: 60px;
            margin: 40px 0 10px;
            padding-bottom: 40px;
            border-bottom: 1px solid #dcdcdc;

            .field__item {
                display: flex;
                align-items: flex-start;
                gap: 15px;

                &::before {
                    content: ">";
                    flex: 0 0 auto;

                    color: #456f74;
                    font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                    text-decoration: none;
                }

                a {
                    color: #456f74;
                    font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                    text-decoration: none;

                    &:hover,
                    &:focus {
                        color: #284144;
                        text-decoration: underline;
                    }
                }
            }
        }

        .block-field-blocknodepagina-interna-final-culturabody {
            .field--type-image {
                float: unset;
            }
        }

        /* =========================================================
           AGENDA CULTURAL COMPLETA, TEATRO MIRA Y ACTIVIDADES INFANTILES
           Vista: agenda_home / block_3, block_5 y block_7
           ========================================================= */

        /* Filtros. */
        :is(
            .block-views-exposed-filter-blockagenda-home-block-3,
            .block-views-exposed-filter-blockagenda-home-block-5,
            .block-views-exposed-filter-blockagenda-home-block-7
        ) {
            margin: 20px 0 32px;

            form {
                width: 100%;

                > .d-flex {
                    display: grid !important;
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                    column-gap: 20px;
                    row-gap: 16px;
                    align-items: end;
                    width: 100%;
                }

                .js-form-item {
                    width: 100% !important;
                    max-width: 100% !important;
                    min-width: 0;
                    margin: 0 !important;
                    padding: 0 !important;
                }

                label {
                    display: block;
                    margin-bottom: 6px;

                    color: #333333;
                    font-family: 'Inter', sans-serif;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                }

                .form-control,
                .form-select {
                    display: block;
                    box-sizing: border-box;
                    width: 100%;
                    height: 42px;
                    margin: 0;
                    padding: 8px 12px;

                    color: #333333;
                    background-color: #ffffff;
                    border: 1px solid #cbd3dc;
                    border-radius: 6px;
                    box-shadow: none;

                    font-family: 'Inter', sans-serif;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;

                    &:focus {
                        border-color: #456f74;
                        outline: 2px solid rgba(69, 111, 116, 0.2);
                        outline-offset: 1px;
                        box-shadow: none;
                    }
                }

                .form-actions {
                    grid-column: 1 / -1;
                    width: 100%;
                    margin: 6px 0 0;
                    padding: 0;

                    .js-form-submit {
                        min-height: 42px;
                        margin: 0;
                        padding: 9px 22px;

                        color: #ffffff;
                        background-color: #456f74;
                        border: 1px solid #456f74;
                        border-radius: 6px;
                        box-shadow: none;

                        font-family: 'Inter', sans-serif;
                        font-size: 14px;
                        font-weight: 600;
                        line-height: 20px;
                        text-decoration: none;

                        &:hover,
                        &:focus {
                            color: #ffffff;
                            background-color: #2f555a;
                            border-color: #2f555a;
                            text-decoration: none;
                        }
                    }
                }
            }
        }

        /* Listado de eventos. */
        :is(
            .block-views-blockagenda-home-block-3,
            .block-views-blockagenda-home-block-5,
            .block-views-blockagenda-home-block-7
        ) {
            margin: 0 0 50px;

            .view-agenda-home {
                width: 100%;

                .view-content {
                    margin-right: 0;
                    margin-left: 0;
                }

                .views-view-responsive-grid {
                    --views-responsive-grid--layout-gap: 24px;

                    grid-template-columns:
                        repeat(3, minmax(0, 1fr)) !important;
                    column-gap: 24px !important;
                    row-gap: 32px !important;
                    width: 100%;
                }

                .views-view-responsive-grid__item {
                    min-width: 0;
                }

                .views-view-responsive-grid__item-inner {
                    display: flex;
                    flex-direction: column;
                    min-width: 0;
                    height: 100%;
                }

                /* Imagen del evento. */
                .views-field-field-imagen {
                    margin-bottom: 12px;

                    .field-content {
                        /*
                        * Views imprime el contenedor aunque el campo esté vacío.
                        * Se reserva la proporción para alinear las tarjetas.
                        */
                        display: block;
                        width: 100%;
                        overflow: hidden;
                        aspect-ratio: 325 / 160;
                        background-color: #f3f5f7;
                        border-radius: 16px;
                    }

                    img {
                        display: block;
                        width: 100%;
                        height: 100% !important;
                        max-width: 100%;
                        object-fit: cover;
                        object-position: center;
                        border-radius: 16px;
                    }
                }

                /* Fecha. */
                .views-field-nothing {
                    margin-bottom: 8px;

                    color: #475467;
                    font-family: 'Inter', sans-serif;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 20px;
                    /* text-transform: lowercase; */
                }

                /* Título. */
                .views-field-title {
                    margin-bottom: 8px;

                    a {
                        display: -webkit-box;
                        overflow: hidden;
                        overflow-wrap: anywhere;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 3;
                        line-clamp: 3;

                        color: #456f74;
                        font-family: 'Inter', sans-serif;
                        font-size: 16px;
                        font-weight: 600;
                        line-height: 22px;
                        text-decoration: none;

                        &:hover,
                        &:focus {
                            color: #284144;
                            text-decoration: underline;
                        }
                    }
                }

                /* Ubicación. */
                .views-field-field-ubicacion {
                    margin-bottom: 6px;

                    .field-content {
                        color: #475467;
                        font-family: 'Inter', sans-serif;
                        font-size: 14px;
                        font-weight: 400;
                        line-height: 20px;

                        &:not(:empty)::before {
                            content: "\f041";
                            margin-right: 5px;

                            font-family: "Font Awesome 6 Free";
                            font-weight: 900;
                        }
                    }
                }

                /* Tipo de evento. */
                .views-field-field-tipo-de-evento {
                    margin-top: auto;
                    padding-top: 2px;

                    a {
                        color: #456f74;
                        font-family: 'Inter', sans-serif;
                        font-size: 14px;
                        font-weight: 600;
                        line-height: 20px;
                        text-decoration: none;

                        &:hover,
                        &:focus {
                            color: #284144;
                            text-decoration: underline;
                        }
                    }
                }

                /* Mensaje sin resultados. */
                .view-empty {
                    margin: 30px 0;

                    color: #475467;
                    font-family: 'Inter', sans-serif;
                    font-size: 16px;
                    line-height: 24px;
                }

                /* Paginador. */
                .pagination {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    gap: 6px;
                    margin: 40px 0 0;
                    padding: 0;

                    .page-item {
                        margin: 0;

                        .page-link {
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            min-width: 40px;
                            min-height: 40px;
                            padding: 8px 12px;

                            color: #456f74;
                            background-color: #ffffff;
                            border: 1px solid transparent;
                            border-radius: 50%;
                            box-shadow: none;

                            font-family: 'Inter', sans-serif;
                            font-size: 14px;
                            font-weight: 600;
                            line-height: 20px;
                            text-decoration: none;

                            &:hover,
                            &:focus {
                                color: #284144;
                                background-color: #ffffff;
                                border-color: #456f74;
                                box-shadow: none;
                                text-decoration: none;
                            }
                        }

                        &.active {
                            .page-link {
                                color: #ffffff;
                                background-color: #456f74;
                                border-color: #456f74;
                            }
                        }

                        &.disabled {
                            .page-link {
                                color: #98a2b3;
                                background-color: transparent;
                                border-color: transparent;
                            }
                        }

                        &.pager__item--first,
                        &.pager__item--previous,
                        &.pager__item--next,
                        &.pager__item--last {
                            .page-link {
                                border-radius: 8px;
                            }
                        }
                    }

                    a[rel="prev"],
                    a[rel="next"],
                    a[title*="primera"],
                    a[title*="Primera"],
                    a[title*="última"],
                    a[title*="Última"] {
                        border-radius: 8px;
                    }
                }
            }
        }
    }
}

/* ==========================================================================
   CULTURA - EVENTO INDIVIDUAL
   Tipo de contenido: eventos
   ========================================================================== */

.node--type-eventos {

    /* Título del evento. */
    .block-field-blocknodeeventostitle {
        margin: 24px 0 0;
        padding: 16px 20px;

        background-color: #456f74;

        h1 {
            margin: 0;

            color: #ffffff;
            font-family: 'Inter', sans-serif;
            font-size: 22px;
            font-weight: 600;
            line-height: 30px;
            overflow-wrap: anywhere;
        }
    }

    /*
     * En la ficha individual no se reserva placeholder.
     * Si no existe imagen, desaparece el bloque.
     */
    .block-field-blocknodeeventosfield-imagen {
        margin: 0 0 24px;
        overflow: hidden;

        &:not(:has(img)) {
            display: none;
        }

        img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;

            object-fit: cover;
            object-position: center;
        }
    }

    /* Ocultar bloques de metadatos vacíos. */
    .block-field-blocknodeeventosfield-fecha-de-fin:not(:has(time)) {
        display: none;
    }

    .block-field-blocknodeeventosfield-ubicacion:not(:has(.field__item)) {
        display: none;
    }

    /* Metadatos comunes. */
    .block-field-blocknodeeventosfield-fecha-de-inicio,
    .block-field-blocknodeeventosfield-fecha-de-fin,
    .block-field-blocknodeeventosfield-ubicacion,
    .block-field-blocknodeeventosfield-tipo-de-evento {
        margin: 0 0 12px;

        .field__label {
            margin-bottom: 4px;

            color: #333333;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 700;
            line-height: 20px;
        }

        .field__item,
        time {
            color: #333333;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
        }

        a {
            color: #456f74;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 600;
            line-height: 20px;
            text-decoration: none;

            &:hover,
            &:focus {
                color: #284144;
                text-decoration: underline;
            }
        }
    }

    /*
     * Tipo de evento destacado, tanto si el Twig nuevo
     * ya lo imprime como texto como si todavía queda un enlace cacheado.
     */
    .block-field-blocknodeeventosfield-tipo-de-evento {
        .field__item,
        a {
            color: #456f74;
            font-weight: 600;
        }
    }

    /* Cuerpo del evento. */
    .block-field-blocknodeeventosbody {
        margin-top: 16px;

        .field--name-body {
            color: #333333;
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            line-height: 24px;

            p {
                margin-bottom: 14px;
            }

            ul,
            ol {
                margin-bottom: 16px;
                padding-left: 24px;
            }

            li {
                margin-bottom: 6px;
            }

            h2 {
                margin: 24px 0 12px;

                color: #333333;
                font-size: 24px !important;
                font-weight: 700;
                line-height: 32px;
            }

            h3 {
                margin: 20px 0 10px;

                color: #333333;
                font-size: 20px;
                font-weight: 700;
                line-height: 28px;
            }

            a {
                color: #456f74;
                text-decoration: underline;

                &:hover,
                &:focus {
                    color: #284144;
                }
            }
        }
    }
}

/* =========================================================
   AGENDAS CULTURA, TEATRO MIRA y ACTIVIDADES INFANTILES: RESPONSIVE
   ========================================================= */

/* Tablet: dos columnas de eventos. */
@media (min-width: 576px) and (max-width: 991.98px) {
    .node--type-pagina-interna-final-cultura .node__content {
        .layout__region--second {
            :is(
                .block-views-blockagenda-home-block-3,
                .block-views-blockagenda-home-block-5,
                .block-views-blockagenda-home-block-7
            ) {
                .view-agenda-home {
                    .views-view-responsive-grid {
                        grid-template-columns:
                            repeat(2, minmax(0, 1fr)) !important;
                    }
                }
            }
        }
    }
}

/* Móvil: filtros y eventos en una columna. */
@media (max-width: 575.98px) {
    .node--type-pagina-interna-final-cultura .node__content {
        .layout__region--second {
            :is(
                .block-views-exposed-filter-blockagenda-home-block-3,
                .block-views-exposed-filter-blockagenda-home-block-5
            ) {
                form {
                    > .d-flex {
                        grid-template-columns: minmax(0, 1fr);
                    }

                    .form-actions {
                        grid-column: auto;

                        .js-form-submit {
                            width: 100%;
                        }
                    }
                }
            }

            :is(
                .block-views-blockagenda-home-block-3,
                .block-views-blockagenda-home-block-5,
                .block-views-blockagenda-home-block-7
            ) {
                .view-agenda-home {
                    .views-view-responsive-grid {
                        grid-template-columns:
                            minmax(0, 1fr) !important;
                        row-gap: 28px !important;
                    }

                    .pagination {
                        gap: 4px;

                        .page-item {
                            .page-link {
                                min-width: 36px;
                                min-height: 36px;
                                padding: 7px 10px;
                            }
                        }
                    }
                }
            }
        }
    }
}

.block-views-blockagenda-home-block-1,
.block-views-blockagenda-home-block-2 {
    margin: 25px 0;

    .view-agenda-home {
        img {
            width: 100%;
            height: auto;
            border-radius: 16px;
        }

        .views-field-title a {
            color: #000;
            text-decoration: none;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 18px;
            line-height: 24px;
            display: -webkit-box;
            line-clamp: 3;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .views-field-title a:hover {
            color: black;
        }

        .views-field-title {
            margin: 10px 0;
        }

        .views-field-body,
        .views-field-body p,
        .views-field-field-ubicacion {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            font-family: 'Inter', sans-serif;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
            color: #475467;
        }

        .views-field-nothing {
            font-family: 'Inter', sans-serif;
            font-weight: 400;
            font-size: 14px;
            line-height: 20px;
            color: #475467;
            margin-bottom: 10px;
            /* text-transform: lowercase; */
        }

        .views-field-field-ubicacion .field-content::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f041";
            margin-right: 5px;
        }

        .view-footer {
            a {
                display: flex;
                width: fit-content;
                padding: 10px 24px;

                color: #ffffff;
                background-color: #36585c;
                border-color: #36585c;
                border-radius: 8px;
                box-shadow: unset;

                font-size: 16px;
                font-weight: 600;
                text-decoration: none;

                &:hover,
                &:focus {
                    color: #ffffff !important;
                    background-color: #131f20;
                }
            }
        }

        .views-field-field-tipo-de-evento {
            margin: 10px 0 30px 0;
        }

        .views-field-field-tipo-de-evento a {
            color: #000;
            text-decoration: none;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 14px;
            line-height: 20px;
        }

        .views-field-field-tipo-de-evento a:hover {
            color: black;
        }

        .views-exposed-form {

            label,
            .fieldset-legend {
                font-family: 'Inter';
                font-size: 16px;
                line-height: 22px;
                color: #333333;
                font-weight: 700;
            }

            .form-control,
            .form-select {
                display: block;
                width: 100%;
                height: 34px;
                padding: 6px 12px;
                font-size: 14px;
                line-height: 1.42857143;
                color: #555555;
                background-color: #fff;
                background-image: none;
                border: 1px solid #456F74;
                border-radius: 4px;
                -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
                -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
                -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
                transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
            }

            .flex-wrap {
                gap: 10px;
            }

            #edit-created-wrapper {
                legend {
                    background-color: #f5f5f5;
                    border-color: #ddd;
                }
            }

            .js-form-submit {
                color: #fff;
                background-color: #456F74;
                border-color: transparent;
                padding: 6px 24px;
                font-size: 14px;
                line-height: 1.42857143;
                border-radius: 28px;
                text-decoration: none;
            }

            .js-form-submit:hover {
                background-color: #000;
                color: white;
                border: 1px solid #000;
            }
        }
    }
}

.field.field--name-field-imagen-comercio img.image-style-focal-point {
    width: 100% !important;
}

/* =========================================================
   CALENDARIO DE EVENTOS DE PORTADA
   Vista: agenda_de_eventos
   ========================================================= */
.block-content-contenedor_de_agenda {
    margin: 50px 0;

    .agenda-de-eventos {
        display: grid;
        grid-template-columns: 48% 10% 40%;
        gap: 10px;

        .block-views-blockagenda-de-eventos-block-4 .content {
            max-height: 340px;
            overflow: hidden;
        }

        .view-display-id-block_4 {
            .views-row {
                margin-bottom: 20px;
                border-bottom: 1px solid rgba(0, 109, 179, 0.3);
                padding-bottom: 19px;
            }

            .views-field-title,
            .views-field-field-fecha-de-fin-agenda {
                margin: 5px 0;
            }

            .views-field-field-categoria-de-la-actividad .field-content {
                color: #616a7a;
                font-weight: 600;
                font-family: 'Inter';
                font-size: 16px;
                line-height: 22px;
            }

            a {
                color: #456f74;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
                text-decoration: none;
            }

            a:hover,
            a:focus {
                color: #456f74;
            }

            .views-field-field-fecha-de-inicio-agenda .field-content,
            .views-field-field-fecha-de-fin-agenda .field-content {
                color: #616a7a;
                line-height: 30px;
                font-family: 'Inter';
                font-size: 16px;
            }

            .views-field-field-ubicacion .field-content {
                color: #456f74;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
            }

            .views-field-field-fecha-de-fin-agenda,
            .views-field-field-ubicacion {
                display: flex;
                align-items: center;
            }

            .views-field-field-fecha-de-fin-agenda::before {
                content: url(/themes/custom/pozuelo_theme/img/calendar2-week.svg);
                margin-right: 4px;
                top: 1px;
                position: relative;
            }

            .views-field-field-ubicacion::before {
                content: url(/themes/custom/pozuelo_theme/img/geo-alt.svg);
                margin-right: 4px;
                top: 1px;
                position: relative;
            }

            .view-content {
                margin: 30px 0 0 0;
            }

            .views-row {
                padding-left: 0;
            }

            .calendar-pager {
                display: none;
            }
        }

        .dia-de-hoy {
            box-sizing: border-box;
            background-color: #eff1f5;
            border-radius: 16px;
            height: 341px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .hoy {
                color: #161f2b;
                font-size: 16px;
                margin: 0;
            }

            .mes {
                color: #161f2b;
                font-size: 86px;
                font-weight: 600;
            }
        }

        .view-display-id-block_3>.calendar-pager {
            display: none !important;
        }

        .view-display-id-block_3 {
            box-sizing: border-box;
            height: 341px;
            min-height: 341px;
            padding: 13px;

            border-radius: 16px;
            box-shadow: 0px 0px 0px 2px rgba(239, 241, 245, 1);

            .calendar-pager {
                display: flex;
                justify-content: center;

                .calendar-pager__items {
                    width: 100%;
                    justify-content: space-between;
                }

                .pager__item--current {
                    color: #161f2b;
                    font-size: 16px;
                    top: 8px;
                    position: relative;
                }
            }

            .calendar-calendar {
                th.days {
                    color: #161f2b;
                    border: none;
                    background-color: unset;
                    font-weight: bold;
                    padding: 15px;
                }

                tr {
                    border: none;
                }

                .mini-day-on {
                    color: #374254 !important;
                    text-decoration: none;
                    font-size: 16px;
                    text-align: center;
                }

                .mini-day-on,
                .mini-day-off {
                    color: #374254 !important;
                    text-decoration: none;
                    font-size: 16px;
                    width: 36px;
                    height: 36px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    /*margin-right: 17px;*/
                }

                .mini-day-on a {
                    width: 36px;
                    height: 36px;
                    padding-top: 6px !important;
                }

                tr td.has-events:not(.today) {
                    a {
                        color: #ffffff !important;
                        border-color: #456f74 !important;
                        background-color: #456f74;
                        border-radius: 100%;
                        padding: 0;
                        margin-right: -3px;
                    }
                }

                td.today {

                    a,
                    div.mini-day-off {
                        border: 1px solid #c1c1c1;
                        border-radius: 100%;
                        padding: 0;
                    }
                }

                tr td.today,
                tr.odd td.today,
                tr.even td.today {
                    background-color: unset;
                }

                tr td.has-events a.selected {
                    color: #ffffff !important;
                    border-color: #87c7b6 !important;
                    background-color: #87c7b6;
                    border-radius: 100%;
                    padding: 0;
                }
            }
        }
    }
}

.view-id-agenda_de_eventos {
    .views-row {
        display: grid;
        grid-template-columns: 45% 1fr;
        padding-left: 0;
    }

    .views-field-field-imagen {
        grid-column: 1;
        grid-row: 1 / 6;
        margin-right: 5px;
        img {
            width: 100%;
            height: auto;
            border-radius: 16px;
        }
    }
}

/* =========================================================
   BOTONES DE ACCESO — CULTURA
   Usado en "Todas las noticias", "Toda la agenda", etc.
   ========================================================= */

/* Botones de acceso de Cultura:
   Todas las noticias, Toda la agenda, etc. */
a.btn.btn-default.todas-noticias {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 10px 24px;

    color: #ffffff !important;
    background-color: #456f74 !important;
    border: 1px solid #456f74 !important;
    border-radius: 8px !important;
    box-shadow: none !important;

    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.42857143;
    text-align: center;
    text-decoration: none !important;
}

a.btn.btn-default.todas-noticias:hover,
a.btn.btn-default.todas-noticias:focus,
a.btn.btn-default.todas-noticias:active {
    color: #ffffff !important;
    background-color: #131F20 !important;
    border-color: #131F20 !important;
    text-decoration: none !important;
}

a.btn.btn-default.todas-noticias svg {
    flex: 0 0 auto;
    margin-left: 8px;
}

a.btn.btn-default.todas-noticias svg path {
    stroke: #ffffff !important;
}

.view-noticias-cultura-home {
    > .view-footer {
        display: flex;
        justify-content: flex-start;
        text-align: left;

        > .view-footer {
            display: flex;
            justify-content: flex-start;
            width: 100%;
            text-align: left;
        }
    }
}

.view-banner-cultura-home .views-field-title{
    font-size: 16px; 
   color: #456f74;
}

.node--type-tramite, .node--type-centros-educativos{
    .layout--twocol-section {
        flex-wrap: nowrap;
        gap: 30px;
    }

    #main-wrapper {
        padding: 0.5rem 0px;
    }

    .layout__region--first {
        flex: 0 1 25% !important;

        .block-menu {
            margin: 0 0 30px 0;
            padding: 30px 25px 15px 25px;
            -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
            -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
            box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);

            i {
                display: none;
            }

            a {
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 400;
                font-size: 16px;
                padding: 0px 10px 0px 10px;
                color: #333333;
                display: flex;
                white-space: break-spaces;
            }
            ul {
                flex-direction: column;
            }

            ul li{
                line-height: 18px;
            }

            ul li::before{
                top: 18px;
                content: "•";
                position: relative;
                left: 0px;
                font-size: 9px;
                color: black;
                
            }

            ul ul li::before {
                content: "•";
                position: relative;
                left: 0px;
                font-size: 9px;
                top: 16px;
                color: black;
                line-height: 10px;
            }
            


            a.active {
                color: #36826D;
                background-color: #F0F9FF;
            }

            h2 {
                display: none;
                left: -15px;
                position: relative;
                margin: 0;
            }

            h2 a {
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
                color: #36826D;
                text-decoration: none;
                margin: 0;
            }

            h2 a::before {
                display: none;
            }

            .dropdown-menu {
                display: block;
                border: none;
                padding: 0;
            }

            .dropdown-item.active,
            .dropdown-item:active {
                background-color: unset;
            }

            .dropdown-item {
                white-space: normal;
                padding-top: 0;
                padding-bottom: 0;
            }

            .dropdown-toggle::after {
                display: none;
            }

            .dropdown-item:focus,
            .dropdown-item:hover {
                color: unset;
                background-color: unset;
            }

            .dropdown-item a:hover,
            .dropdown-item a:focus {
                text-decoration: underline;
            }

            .dropdown-item a::before {
                display: inline-block;
                /* Esto "desconecta" el pseudo-elemento de la línea de texto del padre */
                text-decoration: none;
            }

        }

        .block-field-blocknodepagina-interna-finalfield-organismo,
        .block-field-blocknoderevista-municipal-vive-pozuelofield-organismo {
            margin-bottom: 30px;
            padding: 30px;
            background-color: #F9FAFB;
            border-radius: 8px;

            .content {
                font-size: 16px;
                margin-bottom: 10px;
            }

            .field--name-field-direccion,
            .field--name-field-telefono,
            .field--name-field-correo-electronico {
                display: flex;
                margin-bottom: 6px;
            }

            .field--name-field-direccion::before {
                content: url(/themes/custom/pozuelo_theme/img/menu/landmark.svg);
                top: 2px;
                position: relative;
                margin-right: 5px;
            }

            .field--name-field-telefono::before {
                content: url(/themes/custom/pozuelo_theme/img/menu/eye.svg);
                top: 2px;
                position: relative;
                margin-right: 5px;
            }

            .field--name-field-correo-electronico::before {
                content: url(/themes/custom/pozuelo_theme/img/menu/at-sign.svg);
                top: 2px;
                position: relative;
                margin-right: 5px;
            }

            .field--name-name {
                font-size: 20px;
                font-weight: 700;
                margin-bottom: 6px;
            }

            a {
                color: #36826D;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
            }

            a:hover,
            a:focus {
                color: #36826D !important;
            }
        }
    }

    .layout__region--second {
        flex: 0 1 75% !important;
        a {
            color: #36826D !important;
        }
        .block-field-blocknodetramitetitle {
            background-color: #456f74;
            padding: 20px;

            h1 {
                color: #fff;
                margin: 0;
                font-size: 22px;
                font-weight: 600;
            }

            margin-bottom: 10px;
        }

        .field--name-field-enlace {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            align-items: center;
            gap: 14px;
            margin: 40px 0 10px 0;
            border-bottom: 1px solid #dcdcdc;
            padding-bottom: 40px;

            .field__item a {
                font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                font-size: 14px;
                font-weight: 400;
                color: #006DB3;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 15px;
            }

            .field__item a:hover,
            a:focus {
                color: #003e66;
                text-decoration: underline;
            }

            .field__item a::before {
                content: ">"
            }
        }

        .field--name-field-image {
            float: none;
        }

        /* img{
            width: 100%;
            height: auto;
        } */
        .block-field-blocknodepagina-interna-finalfield-documentacion-relacionada,
        .block-field-blocknodepagina-interna-finalfield-enlaces-relacionados,
        .block-field-blocknodepagina-interna-finalfield-tramites-relacionados {
            margin: 25px 0;

            a {
                font-family: 'robotoregular', sans-serif, Helvetica, Arial;
                font-size: 16px;
                font-weight: 400;
                color: #006DB3;
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 15px;
                line-height: 16px;
            }

            a:hover,
            a:focus {
                color: #003e66;
            }
        }

        .field--name-body {
            .pull-right {
                float: right;
            }

            .pull-left {
                float: left;
            }

            .pull-left img {
                margin-right: 30px;
                margin-top: 6px;
                margin-bottom: 6px;
                float: left;
            }

            .pull-right img {
                margin-left: 12px;
                margin-top: 6px;
                margin-bottom: 6px;
            }

            td {
                background-color: white;
            }

            th {
                color: #3b3b3b;
                background-color: white;
                border: 1px solid #bbb;
            }
        }
    }
}

#block-pozuelo-theme-page-title {
    color: white;
    background-color: #456f74;
    padding: 20px;
    font-size: 18px;
}

.layout__region--second {
    flex: 0 1 75% !important;

    .block-field-blocknodecentros-educativostitle {
        background-color: #456f74;
        padding: 20px;

        h1 {
            color: #fff;
            margin: 0;
            font-size: 22px;
            font-weight: 600;
        }
    }
}

.node--type-pagina-interna-cultura #main-wrapper {
    position: relative;
/*    top: -40px; */
}

/* =========================================================
   AGENDA GENERAL Y VARIANTES DEL SIDEBAR
   Listado: agenda_de_eventos / block_2
   Calendario: agenda_de_eventos / block_1

   Este bloque no debe aplicarse a la portada de Cultura,
   que utiliza block_4 para el listado y block_3 para el calendario.
   ========================================================= */
.sidebar_first {
    .agenda-de-eventos,
    .block-views-blockagenda-de-eventos-block-1 {
        display: grid;
        grid-template-columns: 48% 10% 40%;
        gap: 10px;

        .view-display-id-block_2 {
            .views-row {
                display: grid;
                grid-template-columns: 45% 1fr;
                padding-left: 0;
            }

            .views-field-field-imagen {
                grid-column: 1;
                grid-row: 1 / 6;
                margin-right: 5px;
            }

            .views-row > div:not(.views-field-field-imagen) {
                grid-column: 2;
            }
        }
    }

    .block-views-blockagenda-de-eventos-block-2 {
        display: block;
    }

    .agenda-de-eventos,
    .block-views-blockagenda-de-eventos-block-1,
    .block-views-blockagenda-de-eventos-block-2 {

        .columna1 {


            .field--name-body a {
                top: 10px;
                position: relative;
                display: flex;
                width: fit-content;
                font-size: 16px;
                font-weight: 600;
                background-color: #EFF8FF;
                color: #006DB3;
                border-radius: 8px;
                padding: 10px 24px;
                box-shadow: unset;
            }
        }

        .block-views-blockagenda-de-eventos-block-2 .content {
            max-height: 366px;
            overflow: hidden;
        }

        .view-display-id-block_2 {
            .views-row {
                margin-bottom: 20px;
                border-bottom: 1px solid rgba(0, 109, 179, 0.3);
                padding-bottom: 10px;
            }


            .views-field-field-imagen {
                img {
                    width: 100%;
                    height: auto;
                    border-radius: 16px;
                }

            }

            .views-field-title,
            .views-field-field-fecha-de-fin-agenda {
                margin: 5px 0;
            }

            .views-field-field-categoria-de-la-actividad .field-content {
                color: #616a7a;
                font-weight: 600;
                font-family: 'Inter';
                font-size: 16px;
                line-height: 22px;
            }

            a {
                color: #006DB3;
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
            }

            a:hover,
            a:focus {
                color: #003e66;
            }

            .view-footer a {
                display: flex;
                width: fit-content;
                font-size: 16px;
                font-weight: 600;
                background-color: #EFF8FF;
                color: #006DB3;
                border-radius: 8px;
                padding: 10px 24px;
                box-shadow: unset;
            }

            .view-footer a:hover {
                color: #006db3;
            }

            a.btn:hover,
            a.btn:focus {
                background-color: #EFF8FF;
            }

            .views-field-field-fecha-de-inicio-agenda .field-content,
            .views-field-field-fecha-de-fin-agenda .field-content {
                color: #616a7a;
                line-height: 30px;
                font-family: 'Inter';
                font-size: 16px;
            }

            .views-field-field-ubicacion .field-content {
                text-decoration: none;
                font-family: 'Inter', sans-serif;
                font-weight: 600;
                font-size: 16px;
                line-height: 24px;
            }

            .views-field-field-fecha-de-fin-agenda,
            .views-field-field-ubicacion {
                display: flex;
                align-items: center;
            }

            .views-field-field-fecha-de-fin-agenda::before {
                content: url(/themes/custom/pozuelo_theme/img/calendar2-week.svg);
                margin-right: 4px;
                top: 1px;
                position: relative;
            }

            .views-field-field-ubicacion::before {
                content: url(/themes/custom/pozuelo_theme/img/geo-alt.svg);
                margin-right: 4px;
                top: 1px;
                position: relative;
            }

            .calendar-pager {
                display: none;
            }
        }

        .dia-de-hoy {
            box-sizing: border-box;
            background-color: #eff1f5;
            border-radius: 16px;
            height: 366px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .hoy {
                color: #161f2b;
                font-size: 16px;
                margin: 0;
            }

            .mes {
                color: #161f2b;
                font-size: 86px;
                font-weight: 600;
            }
        }

        .view-display-id-block_1>.calendar-pager {
            display: none !important;
        }

        .view-display-id-block_1 {
            border-radius: 16px;
            box-shadow: 0px 0px 0px 2px rgba(239, 241, 245, 1);
            /* padding: 13px; */
            min-height: 365px;

            .calendar-pager {
                display: flex;
                justify-content: center;

                .calendar-pager__items {
                    width: 100%;
                    justify-content: space-between;
                }

                .pager__item--current {
                    color: #161f2b;
                    font-size: 16px;
                    top: 8px;
                    position: relative;
                }
            }

            .calendar-calendar {
                th.days {
                    color: #161f2b;
                    border: none;
                    background-color: unset;
                    font-weight: bold;
                    padding: 15px;
                }

                tr {
                    border: none;
                }

                .mini-day-on {
                    color: #374254 !important;
                    text-decoration: none;
                    font-size: 16px;
                    text-align: center;
                }

                .mini-day-on,
                .mini-day-off {
                    color: #374254 !important;
                    text-decoration: none;
                    font-size: 16px;
                    width: 36px;
                    height: 36px;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    /*margin-right: 17px;*/
                }

                .mini-day-on a {
                    width: 36px;
                    height: 36px;
                    padding-top: 6px !important;
                }

                tr td.has-events:not(.today) {
                    a {
                        color: #ffffff !important;
                        border-color: #006db3 !important;
                        background-color: #006db3;
                        border-radius: 100%;
                        padding: 0;
                        margin-right: -3px;
                    }
                }

                td.today {

                    a,
                    div.mini-day-off {
                        border: 1px solid #c1c1c1;
                        border-radius: 100%;
                        padding: 0;
                    }
                }

                tr td.today,
                tr.odd td.today,
                tr.even td.today {
                    background-color: unset;
                }

                tr td.has-events a.selected {
                    color: #ffffff !important;
                    border-color: #87c7b6 !important;
                    background-color: #87c7b6;
                    border-radius: 100%;
                    padding: 0;
                }
            }
            
        }

    }

    .block-views-blockagenda-de-eventos-block-1 {
        display: flex;
        border: none;
        background-color: white !important;

        .content {
            width: 100%;
        }
    }
}

.desplazamiento {
    display: none;
}

#main.container {
    margin-top: -40px;
}

/* Contenedor general */
.view-exposiciones .view-content {
  display: block;
  margin: 0;
}

.view-exposiciones .views-row {
  position: relative;
  padding: 15px 15px 18px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Línea inferior */
.view-exposiciones .views-row::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 18px;
  background-color: #c8d2d4;
}

/* Tipo de evento */
.view-exposiciones .views-field-field-tipo-de-evento {
  margin-bottom: 7px;
  color: #292929;
  font-size: 15px;
  line-height: 1.2;
}

/* Título */
.view-exposiciones .views-field-title {
  margin-bottom: 12px;
}

/* Sin sombreado */
.view-exposiciones .views-field-title .field-content {
  display: inline;
  padding: 0;
  background: none;
}

.view-exposiciones .views-field-title a {
  color: #456f74;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
}

.view-exposiciones .views-field-title a:hover,
.view-exposiciones .views-field-title a:focus {
  color: #34575b;
  text-decoration: underline;
}

/* Fecha y ubicación */
.view-exposiciones .views-field-nothing,
.view-exposiciones .views-field-field-ubicacion {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 24px;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.3;
}

.view-exposiciones .views-field-nothing {
  margin-bottom: 5px;
  color: #292929;
}

.view-exposiciones .views-field-field-ubicacion {
  color: #456f74;
}

/* Iconos */
.view-exposiciones .views-field-nothing::before,
.view-exposiciones .views-field-field-ubicacion::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background-color: #333;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;

  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* Icono calendario */
.view-exposiciones .views-field-nothing::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v13a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1ZM4 10v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V10H4Zm2-4H5a1 1 0 0 0-1 1v1h16V7a1 1 0 0 0-1-1h-1v1a1 1 0 1 1-2 0V6H8v1a1 1 0 1 1-2 0V6Zm1 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 17a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1a3 3 0 0 1 3 3v13a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3h1V3a1 1 0 0 1 1-1ZM4 10v10a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V10H4Zm2-4H5a1 1 0 0 0-1 1v1h16V7a1 1 0 0 0-1-1h-1v1a1 1 0 1 1-2 0V6H8v1a1 1 0 1 1-2 0V6Zm1 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 17a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm5 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z'/%3E%3C/svg%3E");
}

/* Icono ubicación */
.view-exposiciones .views-field-field-ubicacion::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 1 7 7c0 5.12-5.33 11.38-6.4 12.58a.8.8 0 0 1-1.2 0C10.33 20.38 5 14.12 5 9a7 7 0 0 1 7-7Zm0 2a5 5 0 0 0-5 5c0 3.45 3.28 8.06 5 10.18C13.72 17.06 17 12.45 17 9a5 5 0 0 0-5-5Zm0 2.5A2.5 2.5 0 1 1 12 11a2.5 2.5 0 0 1 0-5Zm0 2a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z'/%3E%3C/svg%3E");

  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 1 7 7c0 5.12-5.33 11.38-6.4 12.58a.8.8 0 0 1-1.2 0C10.33 20.38 5 14.12 5 9a7 7 0 0 1 7-7Zm0 2a5 5 0 0 0-5 5c0 3.45 3.28 8.06 5 10.18C13.72 17.06 17 12.45 17 9a5 5 0 0 0-5-5Zm0 2.5A2.5 2.5 0 1 1 12 11a2.5 2.5 0 0 1 0-5Zm0 2a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z'/%3E%3C/svg%3E");
}

.layout--twocol-section--25-75 {
  display: flex;
  align-items: flex-start;
  gap: 30px;

  .layout__region--first {
    flex: 0 0 25% !important;
    max-width: 25%;
    margin-right: 0;

    .block-menu {
      margin: 0 0 30px;
      padding: 22px 18px;
      background-color: #fff;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);

      h2 {
        display: none;
      }

      .navbar-nav {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
      }

      .nav-item {
        display: block;
        width: 100%;
        margin: 0;
      }

      .nav-link {
        display: block;
        width: 100%;
        padding: 7px 8px;
        color: #333;
        font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        text-decoration: none;
        white-space: normal;
      }

      .nav-link::before {
        content: "· ";
      }

      .nav-link:hover,
      .nav-link:focus {
        color: #3090c4;
      }

      .nav-link.active,
      .nav-link.is-active {
        color: #087f6d;
        background-color: transparent;
      }
    }

    .block-views-blockvistas-organismos-block-4 {
      h2 {
        margin: 0 0 16px;
        color: #333;
        font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        font-size: 28px;
        font-weight: 700;
        line-height: 34px;
      }
    }
  }

  .layout__region--second {
    flex: 1 1 0 !important;
    min-width: 0;

    .block-field-blocknodepagina-interna-final-culturatitle {
      display: block;
      margin: 0 0 16px;
      padding: 14px 16px;
      background-color: #47767a;

      .content {
        margin: 0;
      }

      .field--name-title {
        display: block;
      }

      h1 {
        display: block;
        margin: 0;
        padding: 0;
        color: #fff;
        font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 26px;
      }
    }

    .block-views-blocknoticias-cultura-home-block-2 {
      margin: 0;
    }

    .view-noticias-cultura-home {
      .view-content {
        display: block;
        margin: 0;
      }

      .views-row {
        display: grid;
        grid-template-columns: 245px minmax(0, 1fr);
        grid-template-areas:
          "image date"
          "image title"
          "image body";
        column-gap: 12px;
        row-gap: 3px;
        width: 100%;
        min-height: 165px;
        margin: 0;
        padding: 16px 8px;
        border-top: 1px solid #999;
      }

      .views-row:last-child {
        border-bottom: 1px solid #999;
      }

      .views-field-field-image {
        grid-area: image;
        align-self: start;
        overflow: hidden;
        border-radius: 16px;

        .field-content {
          display: block;
          width: 100%;
          height: 138px;
        }

        img {
          display: block;
          width: 100%;
          height: 138px;
          object-fit: cover;
          border-radius: 16px;
          transition: transform 0.3s ease;
        }
      }

      .views-row:hover {
        .views-field-field-image img {
          transform: scale(1.05);
        }
      }

      .views-field-created {
        grid-area: date;
        align-self: end;
        margin: 0;
        font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 18px;
        color: #3090c4;
        text-transform: none;

        time {
          color: #3090c4;
          font-family: inherit;
          font-size: 12px;
          font-weight: 400;
          line-height: 18px;
          text-transform: none;
        }
      }

      .views-field-title {
        grid-area: title;
        margin-top: 4px;
        padding-top: 4px;

        a {
          display: block;
          color: #1d1d1d;
          font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
          font-size: 26px;
          font-weight: normal !important;
          line-height: 30px;
          text-decoration: none;
          transition: all 0.3s ease;
        }

        a:hover,
        a:focus {
          color: #3090c4;
          text-decoration: none;
        }
      }

      .views-field-body {
        grid-area: body;
        align-self: start;
        min-width: 0;
        margin: 0;

        .field-content {
          display: -webkit-box;
          overflow: hidden;
          margin: 0;
          color: #475467;
          font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
          font-size: 14px;
          font-weight: 400;
          line-height: 20px;
          text-overflow: ellipsis;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          line-clamp: 2;
        }

        p {
          margin: 0;
          color: #475467;
          font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
          font-size: 14px;
          font-weight: 400;
          line-height: 20px;
        }
      }

      .pagination {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-top: 25px;
      }

    .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 6px 10px;

  font-family: 'robotoregular', sans-serif, Helvetica, Arial;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  color: #333333;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 50%;

  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Página actual */
.page-item.active .page-link {
  color: #333333;
  background-color: #fff;
  border-color: #456f74;
  cursor: default;
  pointer-events: none;
}

/* Resto de páginas al pasar el ratón */
.page-item:not(.active) .page-link:hover,
.page-item:not(.active) .page-link:focus {
  color: #fff;
  background-color: #456f74;
  border-color: #456f74;
  cursor: pointer;
}

/* Elimina el sombreado de Bootstrap al enfocar */
.page-link:focus {
  box-shadow: none;
}

    }
  }
}

/* =========================================================
   AGENDA DE PORTADA — CULTURA
   Listado: agenda_de_eventos / block_4
   Calendario: agenda_de_eventos / block_3
   ========================================================= */

#block-pozuelo-theme-contenedordeagendacultura {
    .agenda-de-eventos {
        display: grid;
        grid-template-columns: minmax(0, 48%) minmax(90px, 10%) minmax(0, 40%);
        grid-template-areas:
            "eventos hoy calendario"
            "controles hoy calendario";
        column-gap: 10px;
        row-gap: 0;
        align-items: stretch;

        > .block-views-blockagenda-de-eventos-block-4 {
            grid-area: eventos;
            min-width: 0;
        }

        > .fondo {
            grid-area: controles;
        }

        > .dia-de-hoy {
            grid-area: hoy;
            margin-top: 30px;
        }

        > .block-views-blockagenda-de-eventos-block-3 {
            grid-area: calendario;
            min-width: 0;
            margin-top: 30px;
        }
    }

    /* Se cargan cuatro eventos, pero se muestran dos de cada vez. */
    .block-views-blockagenda-de-eventos-block-4 {
        .content {
            max-height: 366px;
            overflow: hidden;
        }
    }

    /* Fila inferior: botón a la izquierda y controles a la derecha. */
    .fondo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 10px;
        margin-bottom: 32px;

        > div:first-child {
            flex: 0 0 auto;
        }

        a.btn.todas-noticias {
            margin: 0;
        }

        .desplazamiento {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
            margin-left: auto;
            position: static;
            float: none;

            .arriba,
            .abajo {
                color: #456f74;
                border: 1px solid #456f74;
                border-radius: 8px;
                padding: 4px 10px;

                font-size: 20px;
                font-weight: 900;
                line-height: 1.4;

                cursor: pointer;
            }

            .arriba {
                margin-right: 16px;
                transform: rotate(-90deg);
            }

            .abajo {
                transform: rotate(90deg);
            }

            .arriba:hover,
            .abajo:hover {
                color: #131f20;
                border-color: #131f20;
            }
        }
    }

    /* =========================================================
    DÍA ACTUAL Y CALENDARIO

    Ambos elementos comparten la misma altura para quedar
    alineados por su borde inferior en escritorio.
    ========================================================= */

    .dia-de-hoy {
        box-sizing: border-box;
        height: 341px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        background-color: #eff1f5;
        border-radius: 16px;
        text-align: center;

        .hoy {
            margin: 0;

            color: #161f2b;
            font-size: 16px;
            line-height: 22px;
        }

        .mes {
            margin: 20px 0 0;

            color: #161f2b;
            font-size: 86px;
            font-weight: 600;
            line-height: 1;
        }
    }

    /* Oculta el segundo paginador que Calendar genera debajo
       de la tabla, manteniendo visible el del encabezado. */
    .view-display-id-block_3 > nav.calendar-pager {
        display: none !important;
    }

    .view-display-id-block_3 {
        box-sizing: border-box;
        height: 341px;
        min-height: 341px;
        padding: 13px;

        display: flex;
        flex-direction: column;

        border-radius: 16px;
        box-shadow: 0 0 0 2px rgba(239, 241, 245, 1);

        /* Encabezado con mes y flechas. */
        > .view-header {
            flex: 0 0 auto;

            .calendar-pager {
                display: flex;
                justify-content: center;

                .calendar-pager__items {
                    width: 100%;
                    justify-content: space-between;
                }

                .pager__item--current {
                    position: relative;
                    top: 8px;

                    color: #161f2b;
                    font-size: 16px;
                }
            }
        }

        /* La tabla ocupa el espacio restante del recuadro. */
        > .view-content {
            flex: 1 1 auto;
            display: flex;
            min-height: 0;
            margin: 0;
        }

        .calendar-calendar,
        .month-view,
        table.mini {
            width: 100%;
            height: 100%;
        }

        table.mini {
            margin: 0;
        }

        .calendar-calendar {
            th.days {
                padding: 15px;

                color: #161f2b;
                background-color: transparent;
                border: 0;

                font-weight: 700;
            }

            tr {
                border: 0;
            }

            .mini-day-on,
            .mini-day-off {
                display: inline-flex;
                align-items: center;
                justify-content: center;

                width: 36px;
                height: 36px;

                color: #374254 !important;
                font-size: 16px;
                text-align: center;
                text-decoration: none;
            }

            .mini-day-on a {
                display: inline-flex;
                align-items: center;
                justify-content: center;

                width: 36px;
                height: 36px;
                padding: 0 !important;
            }

            tr td.has-events:not(.today) {
                a {
                    margin-right: -3px;
                    padding: 0;

                    color: #ffffff !important;
                    background-color: #456f74;
                    border-color: #456f74 !important;
                    border-radius: 50%;
                }
            }

            td.today {
                a,
                div.mini-day-off {
                    padding: 0;

                    border: 1px solid #c1c1c1;
                    border-radius: 50%;
                }
            }

            tr td.today,
            tr.odd td.today,
            tr.even td.today {
                background-color: transparent;
            }

            tr td.has-events a.selected {
                padding: 0;

                color: #ffffff !important;
                background-color: #87c7b6;
                border-color: #87c7b6 !important;
                border-radius: 50%;
            }
        }
    }
}

/* Tablet. */
@media (min-width: 576px) and (max-width: 991.98px) {
    #block-pozuelo-theme-contenedordeagendacultura {
        .agenda-de-eventos {
            grid-template-columns: 20% minmax(0, 1fr);
            grid-template-areas:
                "eventos eventos"
                "controles controles"
                "hoy calendario";
            row-gap: 20px;
        }
    }
}

@media (max-width: 991.98px) {
    #block-pozuelo-theme-contenedordeagendacultura {
        .dia-de-hoy,
        .view-agenda-de-eventos.view-display-id-block_3 {
            height: auto;
            min-height: 0;
        }

        .dia-de-hoy {
            min-height: 220px;
        }

        .view-agenda-de-eventos.view-display-id-block_3 {
            padding: 13px;

            .calendar-calendar,
            .month-view,
            table.mini {
                height: auto;
            }
        }
    }
}

/* Móvil. */
@media (max-width: 575.98px) {
    #block-pozuelo-theme-contenedordeagendacultura {
        .agenda-de-eventos {
            grid-template-columns: minmax(0, 1fr);
            grid-template-areas:
                "eventos"
                "controles"
                "calendario";
            row-gap: 20px;

            > .dia-de-hoy {
                display: none;
            }
        }

        .block-views-blockagenda-de-eventos-block-4 {
            .content {
                max-height: 366px;
            }
        }

        .fondo {
            margin-bottom: 16px;
        }
    }
}

.cookiesjsr-banner {
    width: 100%;
}

.avisos-custom{
    background-color: #4c99a2;
    border-color: transparent;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    cursor: pointer;
}

article[data-history-node-id="27958"]
.field--name-body img {
  width: 100%;
}