#secAdopciones {
    margin-top: 30px;
}

.contFotoEspecialista {
    width: 30%;
    overflow: hidden;     /* Evita que sobresalga */
}

.atajoSecEsp {
    gap:15%;
}

.descAdopciones {
    padding-top: 10px;
    width: 70%;
    margin: 3px 0;   /* Reduce la separación vertical */
    line-height: 1;  /* Opcional: compacta más el texto */
    overflow-y: auto;
    padding-right: 5px; /* <<< Esto simula el margin-left del scrollbar */
}


/* Tamaño del scroll */
.descAdopciones::-webkit-scrollbar {
    width: 8px;
}

/* Fondo del canal */
.descAdopciones::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

/* Barra desplazable */
.descAdopciones::-webkit-scrollbar-thumb {
    background: #5d4594; /* color cálido estilo veterinaria */
    border-radius: 10px;
    
}



.fotoEsp {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nomEsp {
    font-size: 1.7em;
}

.matriculaEsp {
    font-size: 1.2em;
}

.espProf {
    font-size: 1.3em;
}

.contAdopciones {
    width: 50%;
    max-width: 700px;
    height: 280px;
    background-color: #9fa5c8a1;
    display: flex;
    flex-direction: row;
    margin: 30px auto;
    -moz-border-radius:8px;
    -webkit-border-radius:8px;
    -o-border-radius: 8px;
    border-radius:8px;
    padding: 30px;
}

.formCargaAdop {
    width: 40%;
}

.formCargaAdop2 {
    background-color: #9fa5c87a;
}

#formPublicacion {
    display: none;
}

.enviarCanAdop {
    display: flex;
    flex-direction: row;
    gap: 30px;
    height: 30px;
    justify-content: center;
}

.enviarAdop {
    padding: 0px 10px;
    background-color: #ffc765;
    border: none;
}

.enviarAdop:hover {
    background-color: #ffb641;
    transform: scale(1.05);
    font-weight: bold;
}

.cancelarAdop {
    height: 100%;
    display: flex;
    align-items: center;
}

.publiAdop {
    position: relative;
    left: calc(100% - 60px);
    transform: translateX(-100%);
    bottom: 10px;
}


.acepRechAdop {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.acepAdop, 
.delAdop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px ;
    height: 50px ;
    padding: 0%;
}

.noPublicaciones {
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

/* =========================
   ADOPCIONES MENU MOBILE
   ========================= */

.adopciones-mobile {
    display: none;
}

@media (min-width: 769px) {
    .adopciones-vermas-btn {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Ocultar cabecera desktop */
    .publiAdop {
        display: none;
    }

    

    /* =========================
       MENU MOBILE
       ========================= */

    .adopciones-mobile {
        display: block;
        margin: 15px;
        background-color: #ffc765;
        border-radius: 8px;
        padding: 10px 15px;
        color: #f0f0f0;
    }

    .adopciones-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .adopciones-mobile-title {
        font-size: 1.8em;
        font-weight: bold;
    }

    .adopciones-mobile-btn {
        background: none;
        border: none;
        font-size: 1.6em;
        cursor: pointer;
        color: #f0f0f0;
    }

    .adopciones-mobile-content {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        align-items: flex-end;
    }

    .adopciones-mobile-content.show {
        display: flex;
    }

    .adopciones-mobile-link {
        text-decoration: none;
        font-size: 1.5em;
        color: #f0f0f0;
        margin-right: 30px;
        text-align: right;
        width: 100%;
    }

    .adopciones-mobile-publicar {
        margin-top: 10px;
        background-color: rgb(76, 153, 66);
        border: none;
        width: 60%;
        margin: 10px auto;
        font-weight: bold;
    }

    /* =========================
       CARDS ADOPCIONES MOBILE
       ========================= */

    .contAdopciones {
        width: 90%;
        height: auto;              /* <<< clave */
        min-height: unset;         /* elimina altura forzada */
        flex-direction: column;
        padding: 15px;
    }

    .contFotoEspecialista {
        width: 100%;
        height: 200px;
    }

    .descAdopciones {
        padding-top: 10px;
        width: 100%;
        margin: 3px 0;
        line-height: 1.2;
        overflow: hidden;          /* <<< sin scroll inicialmente */
        padding-right: 0;
    }

    /* Ocultar descripción y teléfono al inicio */
    .descAdopciones .matriculaEsp,
    .descAdopciones .espProf {
        display: none;
    }

    /* Botón VER MÁS */
    .adopciones-vermas-btn {
        background: none;
        border: none;
        color: #5d4594;
        font-weight: bold;
        padding: 5px 0;
        cursor: pointer;
        text-align: left;
    }


    

    /* Estado expandido */
    .contAdopciones.adopciones-expandida .descAdopciones {
        overflow: visible;         /* <<< elimina scroll */
    }

    .contAdopciones.adopciones-expandida .matriculaEsp,
    .contAdopciones.adopciones-expandida .espProf {
        display: block;
    }

.formCargaAdop {
    width: 95%;
}

.botoneraAdop {
    display: none;
}


}


@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* =========================
       MENU ADOPCIONES TABLET
       (MISMO QUE MOBILE)
       ========================= */

    .adopciones-mobile {
        display: block;
        margin: 15px;
        background-color: #ffc765;
        border-radius: 8px;
        padding: 10px 15px;
        color: #f0f0f0;
    }

    .adopciones-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .adopciones-mobile-title {
        font-size: 1.8em;
        font-weight: bold;
    }

    .adopciones-mobile-btn {
        background: none;
        border: none;
        font-size: 1.6em;
        cursor: pointer;
        color: #f0f0f0;
    }

    .adopciones-mobile-content {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        align-items: flex-end;
    }

    .adopciones-mobile-content.show {
        display: flex;
    }

    .adopciones-mobile-link {
        text-decoration: none;
        font-size: 1.5em;
        color: #f0f0f0;
        margin-right: 30px;
        text-align: right;
        width: 100%;
    }

    .adopciones-mobile-publicar {
        margin-top: 10px;
        background-color: rgb(76, 153, 66);
        border: none;
        width: 40%;
        margin: 10px auto;
        font-weight: bold;
    }

    /* =========================
       OCULTAR VERSION DESKTOP
       ========================= */

    .botoneraAdop {
        display: none;
    }

    .publiAdop {
        display: none;
    }
    
    .contAdopciones {
        width: 90%;
        height: auto;              /* <<< clave */
        min-height: unset;         /* elimina altura forzada */
        flex-direction: row;
        padding: 15px;
    }

.formCargaAdop {
    width: 70%;
}


}