.anuncios-header {
    text-align: center;
    margin-bottom: 30px;
}


.acciones-toolbar {

    display: flex;
    justify-content: space-between; 
    align-items: center;
    
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--input-border, #eee);
    

    flex-wrap: wrap; 
    gap: 15px;
}


.filtro-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filtro-wrapper label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.select-orden {
    padding: 0 10px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}

.select-orden:focus {
    border-color: #69aeb6;
}


.btn-retirar {
    background: transparent;
    border: 1px solid var(--input-border, #d62424);
    color: var(--text-color, #333);
    padding: 10px 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed, 0.3s);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-retirar:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card-bg, #ffffff);
    padding: 35px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.modal-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    transition: color var(--transition-speed, 0.3s);
}

.cerrar-modal:hover {
    color: #ff4757;
}

.form-modal {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-local label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color, #333);
    font-size: 1rem;
}

.modal-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border, #ccc);
    border-radius: 8px;
    background-color: var(--input-bg, #f7f7f7);
    color: var(--text-color, #333);
    font-size: 1rem;
    transition: all var(--transition-speed, 0.3s);
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: var(--secondary-color, #3a7bd5);
    box-shadow: 0 0 0 3px rgba(105, 166, 175, 0.2);
    background-color: #ffffff;
}

.btn-rojo-modal {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(to right, #ff6b6b, #ff8e8e);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed, 0.3s);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-rojo-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ff8e8e, #ff6b6b);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-rojo-modal:hover::before {
    left: 0;
}

.btn-rojo-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #eee;
}

.btn-volver:hover {
    text-decoration: none;
    color: var(--primary-color);
    background-color: #e2f0f1; 
    transform: translateX(-5px); 
}

.feed-anuncios {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.mensaje-cargando {
    text-align: center;
    color: var(--primary-color, #69aeb6);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 40px;
}

.badge-acciones {
    display: inline-block;
    color: var(--text-color, #333);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.anuncio-card {
    background: var(--card-bg, #ffffff);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light, rgba(0,0,0,0.1));
    border-top: 4px solid var(--primary-color, #69aeb6);
    transition: transform var(--transition-speed, 0.3s), box-shadow var(--transition-speed, 0.3s);
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.anuncio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-medium, rgba(0,0,0,0.15));
}

.anuncio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--input-border, #ddd);
}

.ref {
    background: rgba(105, 174, 182, 0.1);
    color: var(--primary-color, #69aeb6);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.anuncio-body h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    color: var(--text-color, #333);
    font-weight: 600;
}

.anuncio-body p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
    text-align: left;
}

.anuncio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color, #f5f9ff);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: auto;
}

.anuncio-footer span {
    font-size: 0.95rem;
    color: #444;
}

.botones-contacto {
    display: flex;
    gap: 12px;
}

.btn-tel, .btn-mail {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all var(--transition-speed, 0.3s);
    text-align: center;
}

.btn-tel {
    background: transparent;
    color: var(--primary-color, #69aeb6);
    border: 1px solid var(--primary-color, #69aeb6);
}

.btn-tel:hover {
    background: rgba(105, 174, 182, 0.1);
}

.btn-mail {
    background: linear-gradient(to right, var(--primary-color, #69aeb6), var(--secondary-color, #3a7bd5));
    color: var(--text-color, #333) !important;
    border: none;
    box-shadow: 0 4px 10px rgba(105, 174, 182, 0.3);
}

.btn-mail:hover {
    box-shadow: 0 6px 15px rgba(105, 174, 182, 0.5);
    transform: translateY(-2px);
}

.btn-enviar-modal {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(to right, var(--primary-color, #69aeb6), var(--secondary-color, #3a7bd5));
    color: var(--text-color, #333);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition-speed, 0.3s);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(105, 174, 182, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-enviar-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color, #3a7bd5), var(--primary-color, #69aeb6));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-enviar-modal:hover::before {
    left: 0;
}

.btn-enviar-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(105, 174, 182, 0.4);
}

.nav-back-container {
    display: flex;
    justify-content: center; 
    width: 100%;             
    margin-bottom: 20px;    
}

/* --- ESTILOS PAGINACIÓN --- */
.paginacion-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-pag {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-pag:hover:not(.disabled) {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.btn-pag.active {
    background-color: #69aeb6; /* Tu color corporativo */
    color: white;
    border-color: #69aeb6;
    font-weight: bold;
}

.btn-pag.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
    border-color: #eee;
}

@media screen and (max-width: 768px) {
    .acciones-toolbar {
        flex-direction: column-reverse;
        align-items: flex-end;
    }
    
    .anuncio-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .botones-contacto {
        width: 100%;
        flex-direction: column;
    }

    .btn-tel, .btn-mail {
        width: 100%;
    }

    .btn-volver {
        width: 100%; 
        justify-content: center;
        box-sizing: border-box;
    }
}