/*=========================================
=           BOTON JERSHON
=========================================*/

.jershon-float{

    width: 70px;
    height: 70px;

    border-radius: 50%;
    overflow: hidden;

    background: #032D63;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0,0,0,.25);

    transition: transform .30s ease;

}

.jershon-float:hover{

    transform: scale(1.08);

}

.jershon-float img{

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

}


/*=========================================
=             MODAL
=========================================*/

.jershon-modal{

    position: fixed;

    inset: 0;

    background: transparent;

    display: none;

    justify-content: flex-end;

    align-items: flex-end;

    padding: 20px;

    z-index: 999999;

}

.jershon-box{

    width: 380px;

    max-width: 95%;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    animation: popup .30s ease;

    box-shadow: 0 20px 50px rgba(0,0,0,.30);

}

@keyframes popup{

    from{

        opacity: 0;

        transform: scale(.90);

    }

    to{

        opacity: 1;

        transform: scale(1);

    }

}

/*=========================================
=             HEADER
=========================================*/

.jershon-header{

    background: #032D63;

    color: #fff;

    padding: 18px 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.jershon-header h2{

    margin: 0;

    font-size: 22px;

    font-weight: 700;

}

.jershon-header button{

    background: none;

    border: none;

    color: #fff;

    font-size: 32px;

    cursor: pointer;

    transition: .3s;

}

.jershon-header button:hover{

    transform: rotate(90deg);

}

/*=========================================
=              BODY
=========================================*/

.jershon-body{

    padding: 25px;

}

.jershon-body h3{

    margin-top: 0;

    margin-bottom: 10px;

    color: #032D63;

    font-size: 24px;

}

.jershon-body p{

    color: #666;

    line-height: 1.6;

    margin-bottom: 20px;

}

/*=========================================
=            BOTONES
=========================================*/

.jershon-option{

    width: 100%;

    padding: 15px 18px;

    margin-top: 12px;

    border: none;

    border-radius: 10px;

    background: #f4f4f4;

    cursor: pointer;

    text-align: left;

    font-size: 15px;

    transition: .25s;

}

.jershon-option:hover{

    background: #179f54;

    color: #fff;

    transform: translateX(5px);

}

/*=========================================
=              MOVIL
=========================================*/

@media(max-width:768px){

    .jershon-float{

        width: 60px;

        height: 60px;

    }

    .jershon-box{

        width: 95%;

    }

}

/*=========================================
=          CHAT JERSHON
=========================================*/

.jershon-chat{

    max-height: 350px;

    overflow-y: auto;

    padding: 10px;

    margin-bottom: 15px;

}


/* MENSAJES */

.jershon-msg{

    padding: 12px 15px;

    border-radius: 15px;

    margin-bottom: 10px;

    max-width: 85%;

    line-height: 1.4;

    font-size: 15px;

}


/* MENSAJE JERSHON */

.jershon-bot{

    background: #f1f1f1;

    color: #333;

    border-bottom-left-radius: 3px;

}


/* MENSAJE USUARIO */

.jershon-user{

    background: #032D63;

    color: #fff;

    margin-left: auto;

    border-bottom-right-radius: 3px;

}


/* INPUT */

.jershon-input{

    display:flex;

    gap:10px;

    margin-top:15px;

}


.jershon-input input{

    flex:1;

    padding:12px;

    border-radius:10px;

    border:1px solid #ddd;

    outline:none;

    font-size:15px;

}


.jershon-input button{

    background:#179f54;

    color:white;

    border:none;

    border-radius:10px;

    padding:0 18px;

    cursor:pointer;

}


.jershon-input button:hover{

    background:#128043;

}


/* BOTONES DINAMICOS */

.jershon-btn{

    width:100%;

    padding:13px;

    margin-top:10px;

    border:none;

    border-radius:10px;

    background:#032D63;

    color:white;

    cursor:pointer;

    transition:.3s;

}


.jershon-btn:hover{

    background:#179f54;

}

/*=========================================
=        FOTO HEADER JERSHON
=========================================*/

.jershon-title{

    display:flex;

    align-items:center;

    gap:12px;

}


.jershon-title img{

    width:45px;

    height:45px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid #179f54;

}


.jershon-title h2{

    margin:0;

    color:#fff;

}

/*=========================================
=      CONTENEDOR JERSHON
=========================================*/

.jershon-container{

    position: fixed;

    right:20px;
    bottom:20px;

    width:220px;

    display:flex;
    flex-direction:column;
    align-items:center;

    z-index:99999;

}


/*=========================================
=      BURBUJA
=========================================*/

.jershon-tooltip{

    position: relative;

    width: 220px;

    box-sizing: border-box;

    background: #fff;
    color: #032D63;

    padding: 10px 16px;

    border-radius: 30px;

    font-weight: 600;
    font-size: 15px;

    margin-bottom: 10px;

    text-align: center;

    box-shadow: 0 8px 20px rgba(0,0,0,.20);

    transition: opacity .3s ease;

    animation: flotar 2s ease-in-out infinite;

}


/* Pico de la burbuja */

.jershon-tooltip::after{

    content:"";

    position:absolute;

    left:50%;

    transform:translateX(-50%);

    bottom:-8px;

    border-left:8px solid transparent;

    border-right:8px solid transparent;

    border-top:8px solid #fff;

}


@keyframes flotar{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

}