﻿

#perfilModal {
    display: none;
}


@media (max-width: 768px) {

    a:focus, a:hover {
        color: #43474A;
        text-decoration: none;
    }

    #overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none; /* inactivo por defecto */
        transition: opacity .25s ease;
        z-index: 10000; /* debajo del modal */
    }

    #overlay.show {
        opacity: 1;
        pointer-events: all; /* bloquea click/scroll en el fondo */
    }

    #perfilModal {
        position: fixed;
        display: flex;
        bottom: 0;
        width: 100%;
        height: 300px;
        padding: 8px 24px 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        flex-shrink: 0;
        z-index: 10001;
        border-radius: 24px 24px 0 0;
        background: #FFF;
        box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.24), 0 -2px 16px 0 rgba(145, 158, 171, 0.20);
        /* Animación */
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.35s ease-out, opacity 0.35s ease-out;
        pointer-events: none; /* evita clics cuando está oculto */
    }

    /* Cuando se muestra */
    #perfilModal.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    #cont-flat-modal {
        display: flex;
        height: 24px;
        padding: 4px 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        align-self: stretch;
    }

    #btn-flat-modal {
        display: block;
        width: 32px;
        height: 4px;
        flex-shrink: 0;
        border-radius: 66px;
        background: #A9AEB3;
        border: none;
    }

    .title-modal {
        color: #43474A;
        font-family: "Open Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 21.6px;
        margin: 0;
    }

    .cont-texts-modal {
        margin: 8px 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .text-modal {
        color: #43474A;
        font-feature-settings: 'liga' off, 'clig' off;
        font-family: "Open Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 22.4px;
        margin: 0;
    }

    .cont-btns-modal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap:  8px;
        align-self: stretch;
    }


    /* Botones dentro del modal */
    .perfil-modal-button {
        display: flex;
        flex-direction: row;
        padding: 16px;
        align-items: center;
        gap: 12px;
        align-self: stretch;
        border-radius: 8px;
        background: #FAFBFC;
        box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.24), 0 4px 32px 0 rgba(145, 158, 171, 0.24);
        border: none;
    }

    .icon-modal {
        width: 36px;
        height: 36px;
    }

    .btn-text-modal {
        color:  #43474A;
        font-family: "Open Sans");
        font-size:  16px;
        font-style: normal;
        font-weight: 600;
        line-height: 21.6px;
    }
       
}