/* ------ Hero Inicial ------ */
.img-escudoZpt {
    width: 60%;
    height: auto;
}

.titulo-instrumento {
    font-size: 35px;
    font-weight: bold;
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: black;
    -webkit-text-stroke: 1px #282828;
    text-shadow: 0px 0.8px 0.8px #282828;
    letter-spacing: 4px;
}

/*------ AVISOS ------*/
.avisos-cont {
    width: 100%;
}

.avisos-cont_slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.aviso-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.4s ease;
}

.aviso-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.175);
    backdrop-filter: blur(4px);
}

.aviso-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.294);
}

.titulo-aviso {
    color: #2e2e2e;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.texto-aviso {
    color: #444;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.texto2-aviso {
    color: #2e2e2e;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-aviso {
    display: inline-block;
    background: #8c1f3b;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: medium;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-aviso:hover {
    background: #a5324f;
}

.avisos-cont_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: background 0.3s;
}

.avisos-cont_arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.avisos-cont_arrow_left {
    left: 15px;
}
.avisos-cont_arrow_right {
    right: 15px;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
}
.swiper-pagination-bullet-active {
    background: #8c1f3b !important;
    opacity: 1;
}

@media (max-width: 1151px) {
    .titulo-aviso {
        font-size: 1.5rem;
    }
    .texto-aviso {
        font-size: 1rem;
    }
    .texto2-aviso {
        font-size: 1.1rem;
    }
}

@media (max-width: 1081px) {
    .avisos-cont_slider {
        width: 90%;
    }
}

@media (max-width: 992px) {
    .avisos-cont_slider {
        height: 400px;
    }

    .aviso-content {
        padding: 1.5rem;
        max-width: 85%;
    }

    .titulo-aviso {
        font-size: 1.3rem;
    }

    .texto-aviso {
        font-size: 0.95rem;
    }

    .avisos-cont_arrow {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 926px) {
    .aviso-content {
        padding: 1.5rem;
        max-width: 80%;
    }
}

@media (max-width: 736px) {
    .aviso-content {
        padding: 1.5rem;
        max-width: 75%;
    }
}

@media (max-width: 676px) {
    .avisos-cont_slider {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .avisos-cont_slider {
        height: 500px;
    }

    .avisos-cont_arrow {
        font-size: 1rem;
    }

    .aviso-content {
        padding: 1rem;
        max-width: 75%;
    }

    .titulo-aviso {
        font-size: 1.1rem;
    }

    .texto-aviso,
    .texto2-aviso {
        font-size: 0.9rem;
    }

    .btn-aviso {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 481px) {
    .avisos-cont {
        padding: 10px 10px;
    }

    .avisos-cont_slider {
        height: 400px;
    }

    .avisos-cont_arrow {
        font-size: 0.8rem;
    }

    .aviso-content {
        padding: 0.8rem;
        max-width: 70%;
    }

    .titulo-aviso {
        font-size: 1rem;
    }

    .texto-aviso,
    .texto2-aviso {
        font-size: 0.7rem;
    }

    .btn-aviso {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/*------ DESCRIPCIÓN DEL SITIO ------*/
#descripcion-sitio {
    width: 100%;
    font-family: "Gotham-Book", sans-serif !important;

    h2 {
        font-size: xx-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: x-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }
}

.seccion-descripcion {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.info-descripcion {
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    padding: 2rem 2rem 0 2rem;

    p {
        text-align: justify;
    }
}

.tarjeta {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e6e6e6;
    transition: all 0.25s ease;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.tarjeta:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border-color: #d2d2d2;
}

.tarjeta .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    background-color: #f0dce2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    i {
        color: #b33358;
    }
}

.tarjeta .icon-wrapper img {
    max-width: 65%;
    height: auto;
}

.tarjeta h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #8c1f3b;
}

.tarjeta p {
    font-size: 0.93rem;
    color: #555;
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 767px) {
    .tarjeta {
        padding: 1.2rem;
    }

    .tarjeta h5 {
        font-size: 1rem;
    }

    .tarjeta p {
        font-size: 0.88rem;
    }
}

@media (max-width: 560px) {
    .col-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .info-descripcion {
        p {
            text-align: center;
        }
    }
}

/*------ QUE ES ------*/
#que-es {
    width: 100%;
    font-family: "Gotham-Book", sans-serif !important;

    br {
        margin-bottom: 0.3rem;
    }

    h2 {
        font-size: xx-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }

    .img-que-es {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8%;
    }

    .bloque:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.seccion-que-es {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.bloque {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(172, 172, 172, 0.25);
    background: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;

    h2 {
        font-size: xx-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }
}

.bloque-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    padding: 2rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(106, 96, 61, 0.5);
    background: #fff;
    border-radius: 20px 20px 4px 4px;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;

    h2 {
        font-size: xx-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }
}

.bloque-texto {
    flex: 1;
    text-align: justify;

    .negritas {
        font-weight: bolder;
        font-size: 17px;
    }
}

.bloque-imagen {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        width: 350px;
        height: auto;
        object-fit: contain;
        border-radius: 30px;
    }
}

@media (max-width: 1100px) {
    .bloque-imagen img {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .seccion-que-es {
        gap: 1.5rem;
    }

    .bloque,
    .bloque-timeline {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .bloque {
        margin-bottom: 2rem !important;
    }

    .bloque-timeline-2 {
        flex-direction: column-reverse !important;
    }

    .bloque:nth-child(even) {
        flex-direction: column !important;
    }

    .bloque-imagen img {
        width: 400px;
    }
}

@media (max-width: 620px) {
    .bloque-imagen img {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .bloque,
    .bloque-timeline {
        padding: 2rem;
        gap: 2rem;
    }

    .bloque {
        margin-bottom: 1rem !important;
    }

    .bloque-imagen img {
        width: 200px;
    }

    .bloque-texto h2 {
        font-size: x-large;
        margin-bottom: 0.5rem;
    }

    .bloque-texto p,
    .bloque-texto li {
        font-size: 0.95rem;
    }
}

/*------ PROCESO POEL ------*/
#proceso {
    width: 100%;
    font-family: "Gotham-Book", sans-serif !important;
    align-items: center;

    .negritas {
        font-weight: bolder;
        font-size: 17px;
    }
}

.seccion-proceso {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.intro-proceso {
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    padding: 2rem;

    h2 {
        font-size: xx-large;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1rem;
    }

    p {
        text-align: justify;
    }
}

.diagrama h2 {
    text-align: center;
    font-size: x-large;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.diagrama-proceso {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1500px;
    padding: 0;

    .diagrama-img img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-width: 700px;
    }

    .diagrama-texto {
        flex: 1;
        align-items: center;

        .fases-proceso {
            gap: 1rem;
            width: 100%;
            padding: 1rem 1.2rem;
            margin-bottom: 1rem;
            box-shadow: 0 4px 10px rgba(106, 96, 61, 0.5);
            border-radius: 30px;
            transition: all 0.3s ease;
        }

        .fase-5 {
            background-color: #c4899a;
        }

        .fase-4 {
            background-color: #d4a0ae;
        }

        .fase-3 {
            background-color: #e0b7c2;
        }

        .fase-2 {
            background-color: #ebced6;
        }

        .fase-1 {
            background-color: #f5e5ea;
        }

        h4 {
            font-size: large;
            font-weight: 700;
            text-align: center;
            margin-bottom: 0.5rem;
        }

        p {
            text-align: justify;
            margin-bottom: 0 !important;
        }
    }
}

@media (max-width: 1300px) {
    .diagrama-proceso {
        flex-direction: column;
    }

    .diagrama-texto {
        order: 2;
    }

    .diagrama-img {
        order: 1;
        width: 100%;
        flex: unset;
        text-align: center;
    }
}

/*------ CALENDARIO ------*/

#calendario {
    width: 100%;
    padding: 20px 0 50px;
}

.intro-calendario {
    text-align: center;
    font-family: "Gotham-Book", sans-serif !important;

    h2 {
        font-size: xx-large;
        font-weight: 700;
    }

    p {
        font-size: 16px;
        line-height: 1.4rem;
    }
}

.calendario-container {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    flex-wrap: wrap;
}

.calendario-swiper {
    flex: 2;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 700px;
}

.calendario-swiper .swiper-wrapper {
    align-items: center;
}

.calendario-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    background: transparent;
}

.grid-calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.dia,
.dia-header {
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
}

.dia-header {
    font-weight: bold;
    color: #555;
}

.dia.con-evento {
    background-color: #a5324f;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.dia.vacío {
    background-color: transparent;
    cursor: default;
}

.swiper-button-prev,
.swiper-button-next {
    color: #be9511;
}

.panel-detalle {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    overflow-y: auto;
    min-width: 260px;
    max-width: 450px;
    max-height: 620px;
    font-family: "Gotham-Book", sans-serif !important;

    .titulo-panel {
        font-size: large;
        font-weight: bold;
        text-align: center;
    }

    .subtitulo-panel {
        font-size: large;
        font-weight: bold;
        text-align: center;
    }
}

.debug-msg {
    color: #666;
    font-size: 13px;
}

@media (max-width: 1230px) {
    .calendario-swiper {
        flex: none;
        width: 100%;
        max-width: 600px;
    }

    .panel-detalle {
        flex: none;
        width: 100%;
        max-width: 400px;
        max-height: none;
        margin-top: 1rem;
        margin-right: 2rem;
    }
}

@media (max-width: 1176px) {
    .calendario-container {
        flex-direction: column;
        align-items: center;
    }

    .calendario-swiper {
        flex: none;
        width: 100%;
        max-width: 700px;
    }

    .panel-detalle {
        flex: none;
        width: 100%;
        max-width: 700px;
        max-height: none;
        margin-top: 0.5rem;
        margin-right: 0rem;
    }
}

@media (max-width: 600px) {
    body {
        margin: 0.5rem;
    }

    .calendario-swiper {
        padding: 0.5rem;
    }

    .panel-detalle {
        padding: 0.75rem;
    }

    svg text {
        font-size: 10px;
    }

    .dia-rect {
        rx: 6;
        ry: 6;
    }

    .grid-calendario {
        transform: scale(0.75);
        transform-origin: center center;
    }
}

@media (max-width: 400px) {
    .grid-calendario {
        transform: scale(0.65);
        transform-origin: center center;
    }
}
