/* Home: layout visual para avisos y noticias */
.aviso-home-section {
    padding: 1.4rem 0 1.4rem;
    background: #f3f4f9;
}

.aviso-home-main-title {
    text-align: center;
    font-family: Ubuntu, sans-serif;
    font-weight: 200;
    color: #0d1e50;
    font-size: clamp(2.8rem, 2.5vw, 4rem);
    margin-bottom: 1rem;
}

.aviso-home-subsection {
    margin-top: 1.2rem;
    background: linear-gradient(180deg, #0c3a95 0%, #0b2f7c 100%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    padding: 1rem 0 1.2rem;
}

/* Fondo full-width, contenido centrado */
.aviso-home-subsection .aviso-home-sub-title,
.aviso-home-subsection .aviso-home-multi-carousel {
    margin-left: auto;
    margin-right: auto;
}

.aviso-home-subsection .aviso-home-multi-carousel {
    width: 75vw;
    max-width: 75vw;
}

.aviso-home-sub-title {
    text-align: center;
    font-family: Ubuntu, sans-serif;
    font-weight: 200;
    color: #ffffff;
    font-size: clamp(2.8rem, 2.5vw, 4rem);
    margin-bottom: 1rem;
}

.aviso-home-multi-carousel {
    position: relative;
}

.aviso-home-multi-carousel .carousel-item {
    min-height: 210px;
}

.aviso-home-banner-card {
    display: block;
    position: relative;
    min-height: 188px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1d4f9e;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.aviso-home-banner-card img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.aviso-home-banner-card .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.7rem 0.8rem;
    background: linear-gradient(to top, rgba(3, 19, 56, 0.88), rgba(3, 19, 56, 0.12));
    transition: background 0.28s ease;
}

.aviso-home-banner-card h4 {
    margin: 0 0 0.15rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.aviso-home-banner-card p {
    margin: 0 0 0.15rem;
    font-size: 0.82rem;
    line-height: 1.25;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.aviso-home-banner-card span {
    font-size: 0.76rem;
    font-weight: 600;
}

.aviso-home-read-more {
    margin-top: 0.15rem;
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aviso-home-read-more:hover {
    text-decoration: underline;
}

.aviso-home-banner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 26px rgba(11, 40, 105, 0.28);
}

.aviso-home-banner-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

.aviso-home-banner-card:hover .overlay {
    background: linear-gradient(to top, rgba(2, 15, 45, 0.92), rgba(2, 15, 45, 0.22));
}

.aviso-home-banner-card:hover .aviso-home-read-more {
    transform: translateX(3px);
    opacity: 0.95;
}

.aviso-modal-desc {
    white-space: pre-wrap;
    line-height: 1.6;
}

.aviso-modal-image-wrap {
    display: flex;
    justify-content: center;
}

#avisoModalImagen {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.aviso-home-arrow {
    width: 38px;
    height: 38px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dbe2ef;
    opacity: 1;
}

.aviso-home-arrow.carousel-control-prev {
    left: -6px;
}

.aviso-home-arrow.carousel-control-next {
    right: -6px;
}

.aviso-home-arrow .carousel-control-prev-icon,
.aviso-home-arrow .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
    filter: invert(28%) sepia(14%) saturate(976%) hue-rotate(188deg) brightness(87%) contrast(90%);
}

.aviso-home-indicators {
    margin-bottom: -0.6rem;
}

.aviso-home-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    border: 0;
    opacity: 0.45;
}

.aviso-home-indicators .active {
    opacity: 1;
}

@media (max-width: 768px) {
    .aviso-home-subsection .aviso-home-multi-carousel {
        width: 94vw;
        max-width: 94vw;
    }

    .aviso-home-arrow {
        display: none;
    }

    .aviso-home-banner-card,
    .aviso-home-banner-card img {
        min-height: 170px;
        height: 170px;
    }
}
