/* ============================
   Villaviudas Avisos — CSS
   ============================ */

/* --- Modal --- */
.vv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.vv-modal-content {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    animation: vvFadeIn 0.25s ease;
}

@keyframes vvFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.vv-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.vv-modal-close:hover {
    background: #f0eded;
    color: #1c1b1b;
}

.vv-aviso-modal-body p {
    margin-bottom: 16px;
}

.vv-aviso-modal-body a {
    color: #9c0404;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --- Slider responsive --- */
@media (max-width: 1024px) {
    .vv-aviso-slide { flex: 0 0 calc(50% - 10px) !important; }
}

@media (max-width: 640px) {
    .vv-aviso-slide { flex: 0 0 100% !important; }
    .vv-modal { padding: 12px; }
    .vv-modal-content { padding: 24px 20px; }
    .vv-slider-arrow { display: none !important; }
}

/* --- Modal responsive --- */
@media (max-width: 480px) {
    .vv-modal-content {
        padding: 20px 16px;
        border-radius: 4px;
        max-height: 85vh;
    }
    .vv-modal-close {
        top: 8px;
        right: 8px;
    }
}

/* --- Slider dots --- */
.vv-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e4beb8;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.vv-slider-dot.active {
    background: #9c0404;
}

/* --- Grid avisos --- */
.vv-avisos-grid .vv-aviso-card {
    cursor: pointer;
}

/* --- Pagination --- */
.vv-pagination {
    flex-wrap: wrap;
    justify-content: center;
}
