/* =================================================
   1. GLOBAL
================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Botones base */
.btn-ver,
.btn-editar,
.btn-marcar,
.btn-aceptar,
.btn-rechazar,
.toggle-detalle,
#peludoSearchBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

/* =================================================
   2. MI CUENTA – MENÚ
================================================= */

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation ul,
.woocommerce-MyAccount-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-navigation a {
    color: #E5634E;
    text-decoration: underline;
    font-weight: 500;
}

/* =================================================
   3. MIS PELUDOS
================================================= */

.peludos-tabla {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 14px;
}

.peludos-tabla thead th {
    background: #fff;
    padding: 12px;
    font-weight: 600;
}

.peludos-tabla tbody tr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.peludos-tabla td {
    padding: 14px;
    vertical-align: middle;
}

.peludo-thumb {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}

/* Acciones en una sola fila */
.peludos-tabla .acciones {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

/* Botones Ver / Editar pequeños */
.peludos-tabla .btn-ver {
    background: #E5634E;
    color: #fff !important;
    padding: 6px 12px;
    font-size: 0.75rem;
}

.peludos-tabla .btn-editar {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 0.75rem;
}

.peludos-tabla .btn-ver:hover {
    background: #d45540;
}

.peludos-tabla .btn-editar:hover {
    background: #f3f3f3;
}

/* Buscador */
.peludos-buscador {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.peludos-buscador input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

/* Botón Buscar */
#peludoSearchBtn {
    background: #E5634E;
    color: #fff;
    padding: 8px 18px;
    font-size: 0.8rem;
}

#peludoSearchBtn:hover {
    background: #d45540;
}

/* =================================================
   4. SOLICITUDES – LISTA DE PELUDOS
================================================= */

.solicitudes-tabla {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
}

.solicitudes-tabla tbody tr {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.solicitudes-tabla td {
    padding: 16px;
    vertical-align: middle;
}

/* Contador discreto */
.solicitudes-tabla td:nth-child(3) {
    text-align: center;
}

.solicitudes-tabla td:nth-child(3) span {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: #f1f1f1;
    color: #666;
    border-radius: 999px;
    font-weight: 600;
}

/* Botón Ver solicitudes fino */
.solicitudes-tabla .btn-ver {
    background: #E5634E;
    color: #fff !important;
    padding: 6px 14px;
    font-size: 0.75rem;
}

.solicitudes-tabla .btn-ver:hover {
    background: #d45540;
}

/* =================================================
   5. SOLICITUDES – DETALLE
================================================= */

.woocommerce-account .solicitudes-detalle-tabla {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce-account .solicitudes-detalle-tabla thead th {
    padding: 14px 16px;
    background: #f7f7f7;
    font-weight: 600;
    color: #666;
}

.woocommerce-account .solicitudes-detalle-tabla tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-account .solicitudes-detalle-tabla td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Usuario */
.usuario-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estado */
.estado-label {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.estado-pendiente .estado-label {
    background: #fde68a;
    color: #92400e;
}

.estado-aceptada .estado-label {
    background: #bbf7d0;
    color: #166534;
}

.estado-rechazada .estado-label {
    background: #fecaca;
    color: #991b1b;
}

/* Acciones */
.acciones-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Ver formulario */
.toggle-detalle {
    background: #E5634E;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
}

.toggle-detalle:hover {
    background: #d45540;
}

/* Aceptar / Rechazar */
.acciones-inline {
    display: flex;
    gap: 6px;
}

/* Aceptar */
.btn-aceptar {
    background: #22c55e;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
}

/* Rechazar */
.btn-rechazar {
    background: #ef4444;
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
}

/* =================================================
   6. FILA DESPLEGABLE – FORMULARIO
================================================= */

.fila-detalle td {
    background: #fafafa;
    padding: 12px 16px;
}

/* Eliminar espacios gigantes */
.detalle-info,
.detalle-info p {
    margin: 0 !important;
}

/* =================================================
   7. FORMULARIO ADOPTANTE
================================================= */

.formulario-ficha {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.formulario-dato {
    margin-bottom: 10px;
}

.formulario-pregunta {
    font-weight: 600;
}

.formulario-respuesta {
    color: #555;
}

/* =================================================
   8. RESPONSIVE
================================================= */

@media (max-width: 768px) {

    .peludos-tabla thead,
    .solicitudes-tabla thead,
    .solicitudes-detalle-tabla thead {
        display: none;
    }

    .peludos-tabla tr,
    .solicitudes-tabla tr,
    .solicitudes-detalle-tabla tr {
        display: block;
        padding: 12px;
    }

    .peludos-tabla td,
    .solicitudes-tabla td,
    .solicitudes-detalle-tabla td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
    }

    .acciones-col {
        margin-top: 10px;
    }

    .acciones-inline {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   FIX REAL DEL ESPACIO ABISMAL
========================================= */

/* La fila del formulario deja de comportarse como tabla */
.solicitudes-detalle-tabla .fila-detalle td {
    padding: 0 !important;
    border: none !important;
}

/* Card interna controla TODO el espaciado */
.detalle-card {
    display: flex;
    flex-direction: column;
    gap: 8px;                 /* 👈 separación real */
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 12px;
}

/* Texto SIN márgenes */
.detalle-info {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}

/* Acciones pegadas al texto */
.detalle-acciones {
    display: flex;
    gap: 10px;
    margin-top: 4px;          /* 👈 SOLO esto */
}

/* =========================
   BOTONES (FORZAR COLOR)
========================= */

.detalle-acciones .btn-aceptar {
    background: #22c55e !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 999px;
}

.detalle-acciones .btn-rechazar {
    background: #ef4444 !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 999px;
}

.detalle-bloque {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin: 16px auto;
    max-width: 900px;
    text-align: center;
}

.detalle-acciones {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.detalle-info {
    margin: 0 0 6px 0;
}

/* ===== FIX DEFINITIVO ESPACIADO BOTONES ===== */

.detalle-acciones-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;   /* 🔑 centrado horizontal */
    gap: 6px;              /* 🔑 espacio mínimo */
    margin: 0;
    padding: 0;
}

.detalle-info {
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.acciones-inline {
    display: flex;
    justify-content: center;  /* 🔑 botones centrados */
    gap: 8px;
    margin: 0;
}

/* Evitar que el formulario empuje visualmente */
.detalle-formulario {
    margin-top: 12px;
}

/* ===== FIX REAL ESPACIO DETALLE SOLICITUD ===== */

/* El td no añade aire */
.fila-detalle td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    vertical-align: top;
}

/* Acciones: centradas y compactas */
.detalle-acciones-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Texto sin margen */
.detalle-info {
    margin: 0 !important;
    line-height: 1.3;
    text-align: center;
}

/* Botones JUSTO debajo del texto */
.acciones-inline {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

/* Colores correctos desde inicio */
.btn-aceptar {
    background: #22c55e !important;
    color: #fff !important;
}

.btn-rechazar {
    background: #ef4444 !important;
    color: #fff !important;
}

/* El formulario NO empuja hacia arriba */
.detalle-formulario {
    margin-top: 16px;
}

/* ===============================
   FIX DEFINITIVO ESPACIO FORMULARIO
================================ */

/* Elimina margen inferior del formulario */
.fila-detalle .formulario-ficha {
    margin-bottom: 0 !important;
}

/* Elimina margen del último campo */
.fila-detalle .formulario-dato:last-child {
    margin-bottom: 0 !important;
}

/* Elimina márgenes por defecto de párrafos */
.fila-detalle p {
    margin-bottom: 6px;
}

/* Botones pegados al formulario y centrados */
.fila-detalle .detalle-acciones,
.fila-detalle .acciones-inline {
    margin-top: 6px !important;
    justify-content: center;
}

/* ===============================
   FIX DEFINITIVO ESPACIO FORMULARIO
================================ */

/* Elimina margen inferior del formulario */
.fila-detalle .formulario-ficha {
    margin-bottom: 0 !important;
}

/* Elimina margen del último campo */
.fila-detalle .formulario-dato:last-child {
    margin-bottom: 0 !important;
}

/* Elimina márgenes por defecto de párrafos */
.fila-detalle p {
    margin-bottom: 6px;
}

/* Botones pegados al formulario y centrados */
.fila-detalle .detalle-acciones,
.fila-detalle .acciones-inline {
    margin-top: 6px !important;
    justify-content: center;
}
/* ===============================
   SOLUCIÓN DEFINITIVA – OVERLAY
================================ */

/* Contenedor relativo */
.fila-detalle td {
    position: relative;
}

/* Botones flotantes */
.fila-detalle .acciones-inline {
    position: absolute;
    left: 50%;
    bottom: 20px; /* AJUSTABLE */
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
}

/* Evita que el formulario empuje visualmente */
.fila-detalle .formulario-ficha {
    padding-bottom: 80px; /* deja sitio para los botones */
}

/* ===============================
   SOLUCIÓN DEFINITIVA – OVERLAY
================================ */

/* Contenedor relativo */
.fila-detalle td {
    position: relative;
}

/* Botones flotantes */
.fila-detalle .acciones-inline {
    position: absolute;
    left: 50%;
    bottom: 20px; /* AJUSTABLE */
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
}

/* Evita que el formulario empuje visualmente */
.fila-detalle .formulario-ficha {
    padding-bottom: 80px; /* deja sitio para los botones */
}
/* ===============================
   FUERZA BRUTA – MARGEN NEGATIVO
================================ */

/* El td no debe añadir aire */
.fila-detalle td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Contenedor del formulario */
.fila-detalle .detalle-formulario {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* TEXTO previo (por si existe) */
.fila-detalle .detalle-formulario p {
    margin-bottom: 0 !important;
}

/* BOTONES: SUBIRLOS A LA FUERZA */
.fila-detalle .acciones-inline {
    margin-top: -80px !important;   /* 🔴 AJUSTA AQUÍ */
    padding-top: 0 !important;
    justify-content: center;
}

/* En pantallas pequeñas sube aún más */
@media (max-width: 768px) {
    .fila-detalle .acciones-inline {
        margin-top: -120px !important;
    }
}


/* ===== MENSAJE SOLICITUD ===== */
.mensaje-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 420px;
}

.mensaje-texto {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.mensaje-fecha {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Estado visual */
.estado-pendiente .mensaje-box {
    border-left: 4px solid #f5b942;
}

.estado-aceptada .mensaje-box {
    border-left: 4px solid #4caf50;
}

.estado-rechazada .mensaje-box {
    border-left: 4px solid #e53935;
}
/* ===== MENSAJES SOLICITUD ===== */
.mensaje-box {
    background: #fafafa;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 420px;
}

.mensaje-texto {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.mensaje-fecha {
    font-size: 0.75rem;
    color: #888;
}

.estado-pendiente .mensaje-box {
    border-left: 4px solid #f5b942;
}

.estado-aceptada .mensaje-box {
    border-left: 4px solid #4caf50;
}

.estado-rechazada .mensaje-box {
    border-left: 4px solid #e53935;
}


/* LISTA CHAT TIPO WHATSAPP */

.chat-lista {
    max-width: 720px;
    margin: 20px auto;
}

.chat-item {
    display:flex;
    align-items:center;
    padding:14px;
    border-bottom:1px solid #eee;
    transition:background .2s ease;
}

.chat-item:hover {
    background:#fafafa;
}

.chat-avatar {
    width:48px;
    height:48px;
    border-radius:50%;
    background:#F3F3F3;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    margin-right:14px;
}

.chat-info {
    flex:1;
}

.chat-peludo {
    font-weight:600;
    font-size:15px;
    color:#222;
}

.chat-sub {
    font-size:13px;
    color:#777;
    margin-top:2px;
}

.chat-accion {
    margin-left:10px;
}

.chat-boton {
    background:#E5634E;
    color:white;
    padding:6px 12px;
    border-radius:6px;
    font-size:13px;
    text-decoration:none;
}

.chat-boton:hover {
    background:#d3543f;
}

.adoptaya-chat{
display:flex;
gap:20px;
}

.chat-list{
width:250px;
border-right:1px solid #ddd;
}

.chat-item{
display:block;
padding:10px;
border-bottom:1px solid #eee;
text-decoration:none;
}

.chat-messages{
flex:1;
padding:20px;
}

.msg{
max-width:60%;
padding:10px;
margin-bottom:10px;
border-radius:10px;
}

.msg.mine{
background:#E5634E;
color:white;
margin-left:auto;
}

.msg.theirs{
background:#f1f1f1;
}

.chat-form{
display:flex;
gap:10px;
margin-top:20px;
}

.chat-form input{
flex:1;
padding:10px;
}

.adoptaya-chat{
display:flex;
gap:20px;
margin-top:20px;
}

.chat-list{
width:260px;
border-right:1px solid #eee;
}

.chat-item{
display:block;
padding:12px;
border-bottom:1px solid #eee;
text-decoration:none;
color:#333;
font-weight:500;
}

.chat-item:hover{
background:#f7f7f7;
}

.chat-messages{
flex:1;
display:flex;
flex-direction:column;
height:500px;
}

.messages-container{
flex:1;
overflow-y:auto;
padding:20px;
background:#fafafa;
}

.msg{
max-width:65%;
padding:12px 14px;
margin-bottom:10px;
border-radius:12px;
font-size:14px;
line-height:1.4;
}

.msg.mine{
background:#E5634E;
color:white;
margin-left:auto;
}

.msg.theirs{
background:#e9e9e9;
}

.chat-form{
display:flex;
border-top:1px solid #eee;
padding:10px;
gap:10px;
}

.chat-form input{
flex:1;
padding:10px;
border-radius:8px;
border:1px solid #ddd;
}

.chat-form button{
background:#E5634E;
color:white;
border:none;
padding:10px 16px;
border-radius:8px;
cursor:pointer;
}

.chat-user{
display:flex;
gap:10px;
align-items:center;
}

.chat-info{
display:flex;
flex-direction:column;
}

.chat-name{
font-weight:600;
display:flex;
align-items:center;
gap:6px;
}

.chat-preview{
font-size:12px;
color:#777;
}

.chat-badge{
background:#E5634E;
color:white;
border-radius:12px;
padding:2px 7px;
font-size:11px;
margin-left:6px;
}

.msg-row{
display:flex;
align-items:flex-end;
gap:6px;
margin-bottom:8px;
}

.msg-avatar img{
border-radius:50%;
}

.msg{
padding:8px 12px;
border-radius:12px;
max-width:60%;
}

.msg.mine{
background:#E5634E;
color:white;
margin-left:auto;
}

.msg.theirs{
background:#f1f1f1;
}

.chat-peludo{
width:42px;
height:42px;
object-fit:cover;
border-radius:8px;
margin-right:8px;
}

.chat-peludo-header{
width:40px;
height:40px;
object-fit:cover;
border-radius:6px;
margin-right:8px;
}

.msg-peludo{
width:28px;
height:28px;
border-radius:6px;
object-fit:cover;
}

.chat-header{
display:flex;
align-items:center;
gap:8px;
margin-bottom:10px;
}

.chat-peludo-link{
text-decoration:none;
font-weight:600;
color:#333;
}


==========================================================================

   INTERFAZ GENERAL Y COMPONENTES LIMPIOS (Desktop)

   ========================================================================== */

.mis-peludos-container {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    max-width: 100%;

    margin: 0 auto;

}



/* Buscador y Filtros */

.peludos-header-actions {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-bottom: 25px;

}



@media (min-width: 768px) {

    .peludos-header-actions {

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

    }

}



.peludos-filtros {

    display: flex;

    gap: 10px;

    padding: 5px 2px;

}



.peludos-filtros button {

    background: #f1f5f9;

    color: #475569;

    border: 1px solid #e2e8f0;

    padding: 8px 18px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow: none;

    transition: all 0.2s ease;

}



.peludos-filtros button.active {

    background: #334155;

    color: #ffffff;

    border-color: #334155;

}



/* Tabla base para ordenador */

.peludos-tabla {

    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);

}



.peludos-tabla th {

    background-color: #f8fafc;

    padding: 16px 20px;

    text-align: left;

    font-size: 13px;

    font-weight: 600;

    color: #475569;

    border-bottom: 2px solid #edf2f7;

}



.peludos-tabla td {

    padding: 16px 20px;

    vertical-align: middle;

    border-bottom: 1px solid #f1f5f9;

}



.peludo-thumb-wrapper {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    overflow: hidden;

    background: #f1f5f9;

    border: 2px solid #e2e8f0;

}



.peludo-thumb {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.estado-badge {

    display: inline-block;

    padding: 6px 14px;

    font-size: 13px;

    font-weight: 600;

    border-radius: 8px;

    text-align: center;

    line-height: 1;

}



.estado-badge.disponible { background-color: #e6fcf5; color: #0ca678; }

.estado-badge.adoptado { background-color: #fff5f5; color: #ff6b6b; }



.acciones {

    display: flex;

    gap: 8px;

    align-items: center;

}



.btn-ver, .btn-editar {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 36px;

    padding: 0 16px;

    font-size: 13px;

    font-weight: 600;

    border-radius: 6px;

    text-decoration: none;

    box-sizing: border-box;

}



.btn-ver { background-color: #e06653; color: #fff !important; }

.btn-editar { background-color: #fff; color: #475569 !important; border: 1px solid #cbd5e1; }





/* ==========================================================================

   ESTILO CARD PREMIUM DISPOSITIVOS MÓVILES (SOLUCIÓN DE SUPERPOSICIÓN)

   ========================================================================== */

@media screen and (max-width: 768px) {

    /* ==========================================================
   SOLICITUDES ADOPCIÓN → CARDS PREMIUM
========================================================== */

@media screen and (max-width:768px){

    /* TABLA -> CARDS */

    .solicitudes-detalle-tabla,
    .solicitudes-detalle-tabla tbody,
    .solicitudes-detalle-tabla tr,
    .solicitudes-detalle-tabla td{

        display:block !important;

        width:100% !important;

        box-sizing:border-box !important;
    }

    .solicitudes-detalle-tabla thead{

        display:none !important;
    }

    .solicitudes-detalle-tabla{

        background:transparent !important;

        border:none !important;
    }

    /* =========================
       CARD
    ========================= */

    .solicitudes-detalle-tabla tbody tr:not(.fila-detalle){

        background:#fff !important;

        border-radius:24px !important;

        padding:20px !important;

        margin-bottom:18px !important;

        box-shadow:
            0 8px 24px rgba(0,0,0,0.05) !important;

        border:1px solid #f1f5f9 !important;
    }

    /* RESET */

    .solicitudes-detalle-tabla td{

        border:none !important;

        padding:0 !important;

        margin:0 !important;

        background:transparent !important;
    }

    /* =========================
       USUARIO
    ========================= */

    .solicitudes-detalle-tabla td:first-child{

        display:flex !important;

        align-items:center !important;

        gap:12px !important;

        margin-bottom:14px !important;

        font-size:16px !important;

        font-weight:600 !important;

        color:#334155 !important;
    }

    .solicitudes-detalle-tabla td:first-child img{

        border-radius:50% !important;
    }

    /* =========================
       MENSAJE
    ========================= */

    .solicitudes-detalle-tabla td.toggle-detalle{

        background:#f8fafc !important;

        border-radius:16px !important;

        padding:14px !important;

        font-size:14px !important;

        line-height:1.6 !important;

        color:#475569 !important;

        margin-bottom:14px !important;
    }

    /* =========================
       ESTADO
    ========================= */

    .solicitudes-detalle-tabla td:nth-child(3){

        margin-bottom:16px !important;
    }

    .solicitudes-detalle-tabla td:nth-child(3)::before{

        display:inline-block !important;

        padding:6px 14px !important;

        border-radius:999px !important;

        font-size:12px !important;

        font-weight:600 !important;
    }

    /* PENDIENTE */

    .solicitudes-detalle-tabla td:nth-child(3):contains("pendiente")::before{

        content:"Pendiente";

        background:#fff7ed;

        color:#ea580c;
    }

    /* ACEPTADA */

    .solicitudes-detalle-tabla td:nth-child(3):contains("aceptada")::before{

        content:"Aceptada";

        background:#ecfdf5;

        color:#059669;
    }

    /* RECHAZADA */

    .solicitudes-detalle-tabla td:nth-child(3):contains("rechazada")::before{

        content:"Rechazada";

        background:#fef2f2;

        color:#dc2626;
    }

    /* ESCONDER TEXTO ORIGINAL */

    .solicitudes-detalle-tabla td:nth-child(3){

        font-size:0 !important;
    }

    /* =========================
       BOTONES
    ========================= */

    .solicitudes-detalle-tabla td:last-child{

        margin-top:12px !important;
    }

    .solicitudes-detalle-tabla td:last-child form{

        width:100% !important;
    }

    .solicitudes-detalle-tabla td:last-child{

        display:flex !important;

        gap:10px !important;

        flex-wrap:wrap !important;
    }

    .btn-aceptar,
    .btn-rechazar,
    .btn-ver{

        flex:1 !important;

        min-height:44px !important;

        border-radius:14px !important;

        font-size:14px !important;

        font-weight:600 !important;

        border:none !important;

        display:flex !important;

        align-items:center !important;

        justify-content:center !important;
    }

    /* ACEPTAR */

    .btn-aceptar{

        background:#E5634E !important;

        color:#fff !important;
    }

    /* RECHAZAR */

    .btn-rechazar{

        background:#fff5f5 !important;

        color:#dc2626 !important;

        border:1px solid #fecaca !important;
    }

    /* CHAT */

    .btn-ver{

        background:#f1f5f9 !important;

        color:#334155 !important;
    }

    /* =========================
       DETALLE EXPANDIDO
    ========================= */

    .fila-detalle td{

        margin-top:14px !important;

        padding:16px !important;

        background:#fff7f5 !important;

        border-radius:16px !important;

        font-size:14px !important;

        line-height:1.7 !important;
    }
}

    .mis-peludos-container {

        max-width: 380px !important; 

        margin: 0 auto !important;

        padding: 0 8px !important;

    }



    .mis-peludos-container table.peludos-tabla, 

    .mis-peludos-container .peludos-tabla tbody, 

    .mis-peludos-container .peludos-tabla tr,

    .mis-peludos-container .peludos-tabla td {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box !important;

    }

    

    .mis-peludos-container table.peludos-tabla,

    .mis-peludos-container .peludos-tabla tbody {

        background: transparent !important;

        border: none !important;

        box-shadow: none !important;

    }

    

    .mis-peludos-container .peludos-tabla thead {

        display: none !important;

    }

    

    /* La Tarjeta Base */

    .mis-peludos-container .peludos-tabla tbody tr {

        background-color: #ffffff !important; 

        border-radius: 24px !important; 

        margin-bottom: 16px !important; 

        padding: 20px !important; 

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important; 

        border: 1px solid #f1f5f9 !important;

        position: relative !important; 

    }

    

    /* Reset de celdas */

    .mis-peludos-container .peludos-tabla td {

        background: transparent !important;

        border: none !important;

        padding: 0 !important;

        margin: 0 !important;

        text-align: left !important;

    }



    .mis-peludos-container .peludos-tabla td::before {

        display: none !important;

    }



    /* 1. FOTO DE PERFIL (Fijada a la izquierda) */

    .mis-peludos-container .peludos-tabla td[data-label="Foto"] {

        position: absolute !important;

        top: 20px !important;

        left: 20px !important;

        width: 80px !important;

        height: 80px !important;

    }



    .mis-peludos-container .peludo-thumb-wrapper {

        width: 80px !important; 

        height: 80px !important;

        min-height: 80px !important;

        max-height: 80px !important;

        min-width: 80px !important;

        max-width: 80px !important;

        border-radius: 50% !important; 

        border: 1px solid #e2e8f0 !important;

        box-shadow: none !important;

    }



    /* 2. EL NOMBRE (A la derecha de la foto) */

    .mis-peludos-container .peludos-tabla td[data-label="Nombre"] {

        padding-left: 100px !important;

        margin-bottom: 8px !important;

    }



    .mis-peludos-container .peludos-tabla td[data-label="Nombre"] strong {

        font-size: 19px !important; 

        color: #1e293b !important;

        font-weight: 700 !important;

        display: block !important;

    }



  ==========================================================================

   INTERFAZ GENERAL Y COMPONENTES LIMPIOS (Desktop)

   ========================================================================== */

.mis-peludos-container {

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    max-width: 100%;

    margin: 0 auto;

}



/* Buscador y Filtros */

.peludos-header-actions {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-bottom: 25px;

}



@media (min-width: 768px) {

    .peludos-header-actions {

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

    }

}



.peludos-filtros {

    display: flex;

    gap: 10px;

    padding: 5px 2px;

}



.peludos-filtros button {

    background: #f1f5f9;

    color: #475569;

    border: 1px solid #e2e8f0;

    padding: 8px 18px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow: none;

    transition: all 0.2s ease;

}



.peludos-filtros button.active {

    background: #334155;

    color: #ffffff;

    border-color: #334155;

}



/* Tabla base para ordenador */

.peludos-tabla {

    width: 100%;

    border-collapse: collapse;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);

}



.peludos-tabla th {

    background-color: #f8fafc;

    padding: 16px 20px;

    text-align: left;

    font-size: 13px;

    font-weight: 600;

    color: #475569;

    border-bottom: 2px solid #edf2f7;

}



.peludos-tabla td {

    padding: 16px 20px;

    vertical-align: middle;

    border-bottom: 1px solid #f1f5f9;

}



.peludo-thumb-wrapper {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    overflow: hidden;

    background: #f1f5f9;

    border: 2px solid #e2e8f0;

}



.peludo-thumb {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.estado-badge {

    display: inline-block;

    padding: 6px 14px;

    font-size: 13px;

    font-weight: 600;

    border-radius: 8px;

    text-align: center;

    line-height: 1;

}



.estado-badge.disponible { background-color: #e6fcf5; color: #0ca678; }

.estado-badge.adoptado { background-color: #fff5f5; color: #ff6b6b; }



.acciones {

    display: flex;

    gap: 8px;

    align-items: center;

}



.btn-ver, .btn-editar {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    height: 36px;

    padding: 0 16px;

    font-size: 13px;

    font-weight: 600;

    border-radius: 6px;

    text-decoration: none;

    box-sizing: border-box;

}



.btn-ver { background-color: #e06653; color: #fff !important; }

.btn-editar { background-color: #fff; color: #475569 !important; border: 1px solid #cbd5e1; }





/* ==========================================================================

   ESTILO CARD PREMIUM DISPOSITIVOS MÓVILES (SOLUCIÓN DE SUPERPOSICIÓN)

   ========================================================================== */
/* MENSAJES SOLICITUDES */

.solicitudes-detalle-tabla td.toggle-detalle{

    color:#475569 !important;

    font-size:14px;

    line-height:1.6;
}
@media screen and (max-width: 768px) {

    

    .mis-peludos-container {

        max-width: 380px !important; 

        margin: 0 auto !important;

        padding: 0 8px !important;

    }



    .mis-peludos-container table.peludos-tabla, 

    .mis-peludos-container .peludos-tabla tbody, 

    .mis-peludos-container .peludos-tabla tr,

    .mis-peludos-container .peludos-tabla td {

        display: block !important;

        width: 100% !important;

        box-sizing: border-box !important;

    }

    

    .mis-peludos-container table.peludos-tabla,

    .mis-peludos-container .peludos-tabla tbody {

        background: transparent !important;

        border: none !important;

        box-shadow: none !important;

    }

    

    .mis-peludos-container .peludos-tabla thead {

        display: none !important;

    }

    

    /* La Tarjeta Base */

    .mis-peludos-container .peludos-tabla tbody tr {

        background-color: #ffffff !important; 

        border-radius: 24px !important; 

        margin-bottom: 16px !important; 

        padding: 20px !important; 

        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important; 

        border: 1px solid #f1f5f9 !important;

        position: relative !important; 

    }

    

    /* Reset de celdas */

    .mis-peludos-container .peludos-tabla td {

        background: transparent !important;

        border: none !important;

        padding: 0 !important;

        margin: 0 !important;

        text-align: left !important;

    }



    .mis-peludos-container .peludos-tabla td::before {

        display: none !important;

    }



    /* 1. FOTO DE PERFIL (Fijada a la izquierda) */

    .mis-peludos-container .peludos-tabla td[data-label="Foto"] {

        position: absolute !important;

        top: 20px !important;

        left: 20px !important;

        width: 80px !important;

        height: 80px !important;

    }



    .mis-peludos-container .peludo-thumb-wrapper {

        width: 80px !important; 

        height: 80px !important;

        min-height: 80px !important;

        max-height: 80px !important;

        min-width: 80px !important;

        max-width: 80px !important;

        border-radius: 50% !important; 

        border: 1px solid #e2e8f0 !important;

        box-shadow: none !important;

    }



    /* 2. EL NOMBRE (A la derecha de la foto) */

    .mis-peludos-container .peludos-tabla td[data-label="Nombre"] {

        padding-left: 100px !important;

        margin-bottom: 8px !important;

    }



    .mis-peludos-container .peludos-tabla td[data-label="Nombre"] strong {

        font-size: 19px !important; 

        color: #1e293b !important;

        font-weight: 700 !important;

        display: block !important;

    }



    /* 3. ALINEACIÓN AUTOMÁTICA EN COLUMNAS (Animal, Edad, Sexo) */

    .mis-peludos-container .peludos-tabla td[data-label="Animal"],

    .mis-peludos-container .peludos-tabla td[data-label="Edad"],

    .mis-peludos-container .peludos-tabla td[data-label="Sexo"] {

        display: inline-flex !important;

        flex-direction: column !important; /* Etiqueta arriba, valor abajo de forma natural */

        width: auto !important;

        margin-left: 0 !important;

        padding-left: 100px !important;

        vertical-align: top !important;

    }

    

    /* El truco: quitamos el margen izquierdo sobrante a las columnas siguientes */

    .mis-peludos-container .peludos-tabla td[data-label="Edad"],

    .mis-peludos-container .peludos-tabla td[data-label="Sexo"] {

        padding-left: 20px !important; /* Espacio de separación entre ellas */

    }



    /* Mini Títulos Superiores */

    .mis-peludos-container .peludos-tabla td[data-label="Animal"]::after { content: "Animal" !important; }

    .mis-peludos-container .peludos-tabla td[data-label="Edad"]::after { content: "Edad" !important; }

    .mis-peludos-container .peludos-tabla td[data-label="Sexo"]::after { content: "Sexo" !important; }



    .mis-peludos-container .peludos-tabla td[data-label="Animal"]::after,

    .mis-peludos-container .peludos-tabla td[data-label="Edad"]::after,

    .mis-peludos-container .peludos-tabla td[data-label="Sexo"]::after {

        display: block !important;

        font-size: 11px !important;

        font-weight: 600 !important;

        color: #94a3b8 !important;

        margin-bottom: 4px !important;

        text-transform: capitalize !important;

    }



    /* Valores reales de los datos */

    .mis-peludos-container .peludos-tabla td[data-label="Animal"] span,

    .mis-peludos-container .peludos-tabla td[data-label="Edad"] span,

    .mis-peludos-container .peludos-tabla td[data-label="Sexo"] span {

        display: block !important;

        font-size: 13px !important;

        color: #475569 !important;

        font-weight: 500 !important;

    }



    /* 4. REEMPLAZO DE TEXTO POR ICONO DE SEXO (Macho / Hembra) */

   /* 4. ICONOS DE SEXO REALES */

.sexo-icon{

    display:inline-block !important;

    width:22px !important;

    height:22px !important;

    background-size:contain !important;

    background-repeat:no-repeat !important;

    background-position:center !important;

    vertical-align:middle !important;
}

/* MACHO */

.sexo-icon.macho{

    background-image:url('https://adoptaya.es/wp-content/uploads/2026/icono_macho.png');
}

/* HEMBRA */

.sexo-icon.hembra{

    background-image:url('https://adoptaya.es/wp-content/uploads/2026/icono_hembra.png');
}



    /* 5. EL BADGE DE ESTADO */

    .mis-peludos-container .peludos-tabla td[data-label="Estado"] {

        padding-left: 100px !important;

        margin-top: 14px !important;

        width: auto !important;

    }



    .mis-peludos-container .estado-badge {

        padding: 5px 14px !important;

        font-size: 12px !important;

        border-radius: 30px !important;

        display: inline-block !important;

    }



    /* 6. BOTONES DE ACCIÓN (Sin la palabra "Acciones") */

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"] {

        margin-top: 18px !important;

        border-top: 1px solid #f1f5f9 !important;

        padding-top: 14px !important;

    }

    

    /* Nos aseguramos de desterrar por completo el pseudo-elemento "Acciones" */

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"]::before,

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"]::after {

        display: none !important;

        content: "" !important;

    }



    .mis-peludos-container .acciones {

        display: flex !important;

        gap: 12px !important;

        width: 100% !important;

    }



    .mis-peludos-container .btn-ver, 

    .mis-peludos-container .btn-editar {

        flex: 1 !important;

        height: 42px !important; 

        font-size: 14px !important;

        border-radius: 12px !important; 

    }

} 

    /* 4. REEMPLAZO DE TEXTO POR ICONO DE SEXO (Macho / Hembra) */

   /* 4. ICONOS DE SEXO REALES */

.sexo-icon{

    display:inline-block !important;

    width:22px !important;

    height:22px !important;

    background-size:contain !important;

    background-repeat:no-repeat !important;

    background-position:center !important;

    vertical-align:middle !important;
}

/* MACHO */

.sexo-icon.macho{

    background-image:url('https://adoptaya.es/wp-content/uploads/2026/icono_macho.png');
}

/* HEMBRA */

.sexo-icon.hembra{

    background-image:url('https://adoptaya.es/wp-content/uploads/2026/icono_hembra.png');
}



    /* 5. EL BADGE DE ESTADO */

    .mis-peludos-container .peludos-tabla td[data-label="Estado"] {

        padding-left: 100px !important;

        margin-top: 14px !important;

        width: auto !important;

    }



    .mis-peludos-container .estado-badge {

        padding: 5px 14px !important;

        font-size: 12px !important;

        border-radius: 30px !important;

        display: inline-block !important;

    }



    /* 6. BOTONES DE ACCIÓN (Sin la palabra "Acciones") */

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"] {

        margin-top: 18px !important;

        border-top: 1px solid #f1f5f9 !important;

        padding-top: 14px !important;

    }

    

    /* Nos aseguramos de desterrar por completo el pseudo-elemento "Acciones" */

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"]::before,

    .mis-peludos-container .peludos-tabla td[data-label="Acciones"]::after {

        display: none !important;

        content: "" !important;

    }



    .mis-peludos-container .acciones {

        display: flex !important;

        gap: 12px !important;

        width: 100% !important;

    }



    .mis-peludos-container .btn-ver, 

    .mis-peludos-container .btn-editar {

        flex: 1 !important;

        height: 42px !important; 

        font-size: 14px !important;

        border-radius: 12px !important; 

    }

} 
/* ===================================
   MINI FOTO PELUDO SOLICITUDES
=================================== */

.peludo-info-wrapper{

    display:flex;

    align-items:center;

    gap:14px;
}

.peludo-mini-thumb{

    width:56px;

    height:56px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

    border:2px solid #f1f5f9;
}

.peludo-info-text strong{

    display:block;

    font-size:15px;

    font-weight:600;

    color:#334155;
}

.peludo-estado{

    margin-top:4px;
}
/* ===================================
   LISTADO SOLICITUDES PREMIUM
=================================== */

.peludo-listado-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    padding:18px;

    background:#fff;

    border-radius:22px;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.04);

    border:1px solid #f1f5f9;
}

.peludo-listado-left{

    display:flex;

    align-items:center;

    gap:14px;
}

.peludo-mini-thumb{

    width:64px;

    height:64px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;
}

.peludo-listado-info{

    display:flex;

    flex-direction:column;
}

.peludo-listado-nombre{

    font-size:16px;

    color:#334155;

    font-weight:600;
}

.peludo-listado-estado{

    margin-top:4px;
}

.peludo-listado-right{

    display:flex;

    align-items:center;

    gap:16px;
}

.peludo-solicitudes-count{

    font-size:14px;

    color:#64748b;

    font-weight:500;
}

/* MOBILE */

@media(max-width:768px){

    .peludo-listado-card{

        flex-direction:column;

        align-items:flex-start;
    }

    .peludo-listado-right{

        width:100%;

        justify-content:space-between;
    }
}
.solicitudes-tabla{

    border-collapse:separate !important;

    border-spacing:0 18px !important;

    background:transparent !important;
}

.solicitudes-tabla td{

    border:none !important;

    background:transparent !important;

    padding:0 !important;
}

.solicitud-row{

    background:transparent !important;
}