
/* =========================================================
   PÁGINAS DOÑANA Y ENTORNO
   Referencia visual: antigua Doñana Actual
   ========================================================= */

.entorno-title-strip {
    background: #ffffff;

    border-bottom: 1px solid #d6dddd;
}

.entorno-title-strip h1 {
    margin: 0;

    padding: 25px 0 23px;

    color: #142f33;

    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
}


.entorno-background {
    padding: 52px 0 62px;

    background: #eeeeee;
}


/* =========================================================
   ESTRUCTURA PRINCIPAL
   ========================================================= */

.entorno-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2.15fr)
        minmax(290px, .95fr);

    gap: 28px;

    align-items: start;
}


/* =========================================================
   ARTÍCULO
   ========================================================= */

.entorno-main-card {
    min-width: 0;

    padding: 18px 18px 30px;

    background: #ffffff;

    border: 1px solid #e2e5e5;

    box-shadow:
        0 3px 12px rgba(20, 55, 60, .04);
}


.entorno-main-image {
    margin: 0 0 18px;

    overflow: hidden;
}

.entorno-main-image img {
    width: 100%;
    height: auto;

    display: block;
}


/* ENTRADILLA */

.entorno-intro {
    margin: 0 0 22px;

    color: #30494d;

    font-size: 16px;
    line-height: 1.75;
}

.entorno-intro p {
    margin: 0;
}


/* TEXTO */

.entorno-richtext {
    color: #202b2d;

    font-size: 16px;
    line-height: 1.78;
}

.entorno-richtext p {
    margin: 0 0 19px;
}

.entorno-richtext h2 {
    margin: 30px 0 18px;

    color: #101a1c;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.entorno-richtext h3 {
    margin: 27px 0 15px;

    color: #122c31;

    font-size: 24px;
    font-weight: 800;
}

.entorno-richtext h4 {
    margin: 24px 0 12px;

    color: #122c31;

    font-size: 20px;
}

.entorno-richtext a {
    color: #008080;

    font-weight: 500;

    text-decoration: none;
}

.entorno-richtext a:hover {
    text-decoration: underline;
}


/* IMÁGENES DEL CONTENIDO IMPORTADO */

.entorno-richtext img {
    max-width: 100%;
    height: auto;

    display: block;
}

.entorno-richtext figure {
    margin: 25px 0;
}

.entorno-richtext .richtext-image {
    max-width: 100%;
    height: auto;
}

.entorno-richtext .richtext-image.full-width {
    width: 100%;
}

.entorno-richtext .richtext-image.left {
    float: left;

    max-width: 48%;

    margin: 5px 24px 16px 0;
}

.entorno-richtext .richtext-image.right {
    float: right;

    max-width: 48%;

    margin: 5px 0 16px 24px;
}

.entorno-richtext::after {
    content: "";

    display: block;
    clear: both;
}


/* LISTAS */

.entorno-richtext ul,
.entorno-richtext ol {
    margin: 0 0 20px;

    padding-left: 26px;
}

.entorno-richtext li {
    margin-bottom: 7px;
}


/* =========================================================
   COLUMNA LATERAL
   ========================================================= */

.entorno-sidebar {
    display: flex;
    flex-direction: column;

    gap: 28px;
}


/* TIEMPO */

.entorno-weather {
    display: block;

    padding: 18px 20px 16px;

    background: #008080;
    color: #ffffff;

    text-decoration: none;

    border: 1px solid rgba(0,0,0,.04);
}

.entorno-weather h2 {
    margin: 0 0 20px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    text-align: center;

    text-transform: uppercase;
}


.entorno-weather-current {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    padding-bottom: 18px;
}

.entorno-weather-icon {
    color: #ffd04d;

    font-size: 50px;
    line-height: 1;
}

.entorno-weather-current div {
    display: flex;
    flex-direction: column;
}

.entorno-weather-current strong {
    color: #ffffff;

    font-size: 45px;
    font-weight: 600;
    line-height: 1;
}

.entorno-weather-current div span {
    margin-top: 7px;

    color: #ffffff;

    font-size: 15px;
}


.entorno-weather-days {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 5px;

    padding: 18px 0 14px;

    border-top:
        1px solid rgba(255,255,255,.25);
}

.entorno-weather-days div {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;
}

.entorno-weather-days strong {
    color: #ffffff;

    font-size: 11px;
}

.entorno-weather-days span {
    color: #ffd04d;

    font-size: 29px;
    line-height: 1;
}

.entorno-weather-days small {
    color: #ffffff;

    font-size: 11px;
}


.entorno-weather-more {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 12px;

    border-top:
        1px solid rgba(255,255,255,.25);

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* CAJAS SIDEBAR */

.entorno-side-box {
    padding: 0 18px 14px;

    background: #ffffff;

    border: 1px solid #e1e5e5;
}


.entorno-side-title {
    position: relative;

    margin: 0 -18px 8px;

    padding: 10px 16px;

    color: #ffffff;

    background: #008080;

    font-size: 16px;
    font-weight: 800;

    text-transform: none;
}


/* NOTICIAS RECIENTES */

.entorno-recent-list {
    display: flex;
    flex-direction: column;
}

.entorno-recent-list a {
    padding: 14px 1px;

    color: #16282b;

    border-bottom: 1px solid #e5e9e9;

    font-size: 14px;
    line-height: 1.35;

    text-decoration: none;
}

.entorno-recent-list a:last-child {
    border-bottom: 0;
}

.entorno-recent-list a:hover {
    color: #008080;
}


/* CATEGORÍAS */

.entorno-category-list {
    display: flex;
    flex-direction: column;
}

.entorno-category-list a {
    padding: 13px 2px;

    color: #17292c;

    border-bottom: 1px solid #e5e9e9;

    font-size: 14px;

    text-decoration: none;
}

.entorno-category-list a:last-child {
    border-bottom: 0;
}

.entorno-category-list a:hover {
    color: #008080;
}


/* =========================================================
   TE LO HAS PERDIDO
   ========================================================= */

.entorno-missed {
    margin-top: 42px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #e0e5e5;
}


.entorno-missed-heading {
    margin-bottom: 18px;

    border-bottom: 2px solid #008080;
}

.entorno-missed-heading span {
    display: inline-block;

    padding: 9px 17px;

    background: #008080;
    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}


.entorno-missed-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


.entorno-missed-card {
    min-width: 0;

    text-decoration: none;
}


.entorno-missed-image {
    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #dfe7e7;
}

.entorno-missed-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .3s ease;
}

.entorno-missed-card:hover img {
    transform: scale(1.04);
}


.entorno-missed-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.78),
            rgba(0,0,0,.05) 70%
        );
}


.entorno-missed-content {
    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 13px;

    color: #ffffff;
}

.entorno-missed-category {
    display: inline-block;

    margin-bottom: 7px;
    padding: 4px 7px;

    background: #008080;
    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.entorno-missed-content h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.08;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}

.entorno-missed-content small {
    color: #ffffff;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .entorno-layout {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(260px, .85fr);
    }

}


@media (max-width: 850px) {

    .entorno-layout {
        grid-template-columns: 1fr;
    }

    .entorno-sidebar {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .entorno-weather {
        grid-column: 1 / -1;
    }

    .entorno-missed-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 560px) {

    .entorno-title-strip h1 {
        font-size: 26px;
    }

    .entorno-background {
        padding: 28px 0 40px;
    }

    .entorno-main-card {
        padding: 12px 12px 24px;
    }

    .entorno-sidebar {
        grid-template-columns: 1fr;
    }

    .entorno-richtext {
        font-size: 15px;
    }

    .entorno-richtext h2 {
        font-size: 25px;
    }

    .entorno-missed-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   DOÑANA ACTUAL · LEGIBILIDAD MÓVIL
   ========================================================= */

@media (max-width: 760px) {

    .entorno-richtext {
        font-size: 17px !important;
        line-height: 1.75 !important;
    }

    .entorno-richtext p,
    .entorno-richtext li {
        font-size: inherit !important;
    }

    .entorno-richtext h2 {
        font-size: 27px !important;
    }

    .entorno-richtext h3 {
        font-size: 22px !important;
    }

    .entorno-richtext img,
    .entorno-richtext iframe,
    .entorno-richtext video {
        max-width: 100% !important;
    }
}

