/* ============================================================
   cards.css — Tarjetas de mascotas, chats y publicaciones
   ============================================================ */

/* ---- Tarjeta de mascota (index.php) ---- */
.card-mascota {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    transition: 0.3s;
    background: white;
    height: 100%;
}

.card-mascota:hover {
    transform: translateY(-5px);
}

.img-contenedor {
    height: 180px;
    object-fit: cover;
    width: 100%;
    background: #eee;
}

.card-body-fijo {
    height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.badge-estado {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 5px;
}

.nombre-animal {
    font-size: 0.95rem;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* ---- Tarjeta de chat (mensajes_lista.php) ---- */
.chat-card {
    border-radius: 15px;
    border: none;
    transition: 0.2s;
    background: white;
}

.chat-card:active {
    background-color: #f1f1f1;
}

.foto-mascota-lista {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
}

.foto-perfil-mini {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.badge-notif {
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
}

.msg-preview {
    font-size: 0.85rem;
}

.sent-icon {
    color: #007bff;
    font-weight: bold;
    margin-right: 3px;
}

/* ---- Tarjeta mis publicaciones (mis_publicaciones.php) ---- */
.card-busqueda {
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.img-lista {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* ---- Perfil mini (detalle.php) ---- */
.perfil-mini {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}