:root {
    --color-oscuro: #009D45;
    --color-claro: #79BA4C;
    --amarillo-oscuro: #fcdb05;
    --color-gris: #D9D9D9;
}

@font-face {
    font-family: "Arial";
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arial";
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}


/*clase hidden*/
.hidden {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-gris);
}

a {
    text-decoration: none;
}

h1, h3 {
    font-size: calc(1.5rem + 1vw);
}

h2 {
    font-size: calc(1rem + 1vw);
}

h1, h2, h3 {
    font-family: "Arial", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: "Arial", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
}

img {
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.contenedor-noticias {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto;
    justify-content: center;
}

.noticia {
    max-width: 250px;
    padding: 6px;
    border-radius: 12px;
    background-color: white;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.fecha {
    position: absolute;
    color: var(--amarillo-oscuro);
    background-color: #777b;
    padding: 4px;
    border-radius: 10px;
    top: 10px;
    right: 12px;
}

.noticia img {
    border-radius: 5px;
    height: 250px;
    width: 238px;
}

.noticia h3 {
    font-size: 16px;
    margin: 0;
    padding: 0 4px;
}

hr {
    width: 90%;
    margin: 0 auto;
    border: none;
    border-bottom: 0.5px solid #666;
    margin-bottom: 20px;
}

.btn-tarjeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 8px;
}

.btn-tarjeta svg {
    width: 34px;
    height: 32px;
}

.boton {
    padding: 5px 10px;
    background-color: var(--color-oscuro);
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 16px;
    width: 35%;
}

.boton:hover {
    background-color: var(--color-claro);
    text-decoration: none;
    color: white;
}


.dropdown {
    position: absolute;
    top: 42px;
    left: 6px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    min-width: 180px;
    z-index: 80;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

    .dropdown ul {
        list-style: none;
        margin: 0;
        padding: 6px 0;
    }

    .dropdown li {
        padding: 10px 14px;
        font-family: "Arial", sans-serif;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.15s;
    }

        .dropdown li:hover {
            background: #f2f2f2;
        }


    .dropdown::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 18px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #fff;
        filter: drop-shadow(0 -1px 0 rgba(0,0,0,0.03));
    }

/*swiper*/

.swiper {
    padding: 20px 12px;
}

.swiper-wrapper {
    align-items: stretch;
    display: flex;
    justify-content: center;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}
.card-swiper {
    width: 100%;
    max-width: 360px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    height: 150px;
    background-color: var(--color-claro);
    position: relative;
}
.card-swiper img{
    width: 80px;
    height: 80px;
    position: absolute;
    z-index: 1;
    bottom: -12px;
    right: -30px;
    rotate: 28deg;
    animation: movimiento 1s infinite ease-in;
}
@media (max-width: 480px) {
    .card-swiper img{
        right: -25px;
    }
}
@keyframes movimiento {
    0%{
        rotate: 20deg;
    }
    25%{
        rotate: 30deg;
    }
    50%{
        rotate: 45deg;
    }
    75%{
        rotate: 30deg;
    }
    100%{
        rotate: 20deg;
    }
}
.card-body{
    color: #fff;
}
.card-body ul{
    text-align: start;
    list-style: none;
    padding: 5px;
    max-height: 100px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
}
.card-body li{
    font-size: calc(16px + .2vw );
}

.hr-eventos {
    position: absolute;
    bottom: 8px;
    height: 0.5px;
    background-color: white;
    border: none;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}

.swiper-button-prev,
.swiper-button-next {
    color: #0a5ea8;
}

@media (min-width: 768px) {
    .swiper {
        padding: 24px;
    }
}

.eve-diaro {
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 200;
    display: flex;
}

/*Destalles*/

.contenedor {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}


.imagen-principal {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 20px 0;
}
.imagen-principal img {
    border-radius: 20px;
    aspect-ratio: 16/9;
    object-fit: contain;
    max-height: 400px;
}
@media (max-width : 480px) {
    .imagen-principal img {
        aspect-ratio: initial;
    }
}
.galeria {
    display: block;
}

.carrusel-imagenes {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
}

.carrusel-imagenes img {
    width: 100px;
    aspect-ratio: 3/2;
    object-fit: contain;
    margin: 0;
}

.carrusel-imagenes img:hover {
    cursor: pointer;
    scale: 1.05;
    transition: scale 0.4s ease;
}

.swiper-h4 {
    margin: 8px;
    color: white;
}

.swiper-p {
    margin: 0 0 8px;
}

/* Filtro */
.filtros .area-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    max-width: 1080px;
    font-family: "Arial", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.filter-button {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 4px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
    transition: all 0.18s ease;
    color: #3a3a3a;
    width: 220px;
}

    .filter-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

    .filter-button.active {
        background: linear-gradient(to right, var(--amarillo-oscuro), var(--color-oscuro));
        color: white;
        border-color: #e2c6f0;
        box-shadow: 0 8px 24px rgba(123,31,162,0.06);
        font-style: italic;
    }

@media (max-width: 768px) {
    .filtros {
        position: relative;
    }

        .filtros .area-filters {
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: max-content;
            grid-template-rows: repeat(2, auto);
            gap: 8px 10px;
            align-items: center;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            touch-action: pan-x;
            padding: 10px 8px;
            scroll-padding-inline-start: 8px;
            justify-content: start
        }

            .filtros .area-filters::before {
                content: "";
                display: block;
                width: 8px;
                height: 1px;
                grid-row: 1 / span 2;
            }

            .filtros .area-filters::-webkit-scrollbar {
                display: none;
                height: 0;
            }
}
    .filter-button {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: 72px;
        padding: 8px 12px;
        scroll-snap-align: start;
        align-self: center;
    }
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.noticias-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

    .noticias-loading p {
        margin-top: 12px;
        font-size: 14px;
        color: #666;
    }

.noticias-loading--inline {
    padding: 16px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
    border-top-color: #79ba4c;
    animation: giro 0.8s linear infinite;
}

@keyframes giro {
    to {
        transform: rotate(360deg);
    }
}
