/* =========================================
LINO ASSISTANT
========================================= */

.lino-chat-wrapper{
      position: fixed;
    bottom: 25px;
    right: 25px;
     z-index: 999998 !important;
}

/* BURBUJA */

.lino-toggle{
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    background: #f7f2e9;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    cursor: pointer;
    position: relative;
    transition: .3s;
    overflow: hidden;
}

.lino-toggle:hover{
    transform: translateY(-4px);
}

.lino-toggle img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lino-notification{
    width: 14px;
    height: 14px;
    background: #c6a56a;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
    border: 2px solid white;
}

/* CHAT */

.lino-chat{
    width: 380px;
    height: 620px;
    background: #fff;
    position: absolute;
    bottom: 95px;
    right: 0;
    border-radius: 28px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    border: 1px solid rgba(0,0,0,.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s ease;
    z-index: 1000000 !important;
}

.lino-chat.active{
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* HEADER */

.lino-header{
    padding: 20px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf7f2;
}

.lino-header-info{
    display: flex;
    align-items: center;
    gap: 14px;
}

.lino-header-info img{
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.lino-header-info h3{
    margin: 0;
    font-size: 18px;
    color: #222;
}

.lino-header-info span{
    font-size: 13px;
    color: #8a8a8a;
}

.lino-close{
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

/* MENSAJES */

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

.lino-message{
    max-width: 88%;
    padding: 16px 18px;
    border-radius: 22px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.lino-message.bot{
    background: #f7f2e9;
    color: #333;
}

.lino-message.user{
    background: #c6a56a;
    color: white;
    margin-left: auto;
}

/* BOTONES */

.lino-quick-buttons{
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lino-quick-buttons button{
    border: 1px solid #dbc49a;
    background: white;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 13px;
    cursor: pointer;
    transition: .3s;
}

.lino-quick-buttons button:hover{
    background: #c6a56a;
    color: white;
}

/* INPUT */

.lino-input-area{
    padding: 16px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    gap: 10px;
    background: white;
}

.lino-input-area input{
    flex: 1;
    height: 52px;
    border-radius: 16px;
    border: 1px solid #e4e4e4;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
}

.lino-input-area button{
    width: 52px;
    border-radius: 16px;
    border: none;
    background: #c6a56a;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

/* MOBILE */

@media(max-width:768px){

    .lino-chat{
        width: calc(100vw - 24px);
        height: 82vh;
        right: -10px;
        bottom: 90px;
    }

    .lino-toggle{
        width: 70px;
        height: 70px;
    }
}



/* =========================================
ANIMACIONES
========================================= */

@keyframes linoFloat{

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-6px);
    }

    100%{
        transform: translateY(0px);
    }
}

@keyframes linoBreath{

    0%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.04);
    }

    100%{
        transform: scale(1);
    }
}


/* =========================================
MOBILE
========================================= */

@media(max-width:768px){

    .lino-chat-button{
        width: 68px;
        height: 68px;
    }

    .lino-avatar-wrap img{
        width: 50px;
        height: 50px;
    }

    .lino-floating-message{
        max-width: 200px;
        font-size: 12px;
    }
}
/* =========================================
LINO FLOATING BUTTON
========================================= */

.lino-floating-wrapper{
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;

}
.lino-chat-button{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.lino-chat-button:hover{
    transform: translateY(-4px) scale(1.03);
}

/* =========================================
IMAGEN
========================================= */

.lino-chat-button img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.lino-avatar{
    width: 62px;
    height: 62px;
    object-fit: contain;
    position: relative;
    z-index: 2;

    animation: linoFloat 3s ease-in-out infinite;
}

@keyframes linoFloat{
    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-6px);
    }

    100%{
        transform: translateY(0px);
    }
}

.lino-pulse{
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(216,154,158,.45);
    animation: linoPulse 2.4s infinite;
}

@keyframes linoPulse{

    0%{

        transform: scale(1);
        opacity: 1;

    }

    100%{

        transform: scale(1.35);
        opacity: 0;

    }

}


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

.lino-floating-message{

    background: #d89a9e;

    color: #fff;

    font-size: 13px;
    font-weight: 500;

    padding: 10px 14px;

    border-radius: 14px;

    margin-bottom: 12px;

    max-width: 220px;

    text-align: center;

    line-height: 1.4;

    box-shadow: 0 8px 25px rgba(0,0,0,0.12);

    opacity: 1;

    transition: all .3s ease;

}



@keyframes linoMessage{

    0%{
        opacity: 0;
        transform: translateY(10px);
    }

    10%{
        opacity: 1;
        transform: translateY(0);
    }

    80%{
        opacity: 1;
    }

    100%{
        opacity: 0;
    }

}


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

.lino-action-btn{

    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px;

    background: #d4b07b;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}

.lino-action-btn:hover{

    transform: translateY(-2px);

}

.lino-action-btn.secondary{

    margin-top: 10px;

    background: #b38b59;
}

/* =========================================
LINO PRODUCTS
========================================= */

.lino-product-grid{

    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;

}

.lino-product-card{

    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;

}

.lino-product-card img{

    width: 100%;
    height: 140px;
    object-fit: cover;

}

.lino-product-card h4{

    font-size: 14px;
    padding: 10px;
    margin: 0;

}

.lino-product-card button{

    width: 100%;
    border: none;
    padding: 12px;
    background: #d4b37f;
    color: #fff;
    cursor: pointer;

}

.lino-quick-btn{
    pointer-events: auto !important;
}

.lino-messages{
    pointer-events: auto !important;
}

body.lino-open .lino-chat-button,
body.lino-open .lino-toggle{
    pointer-events: none;
    opacity: 0.3;
}

/* =========================
CATÁLOGO VISUAL
========================= */

.lino-catalog{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:12px;
}

.lino-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    cursor:pointer;
    transition:.3s;
}

.lino-card:hover{
    transform:translateY(-4px);
}

.lino-card img{
    width:100%;
    height:110px;
    object-fit:cover;
}

.lino-card-name{
    padding:10px;
    font-size:13px;
    text-align:center;
}

/* =========================
TYPING
========================= */

.lino-typing .dots::after{
    content:"";
    animation: dots 1.2s infinite;
}

@keyframes dots{
    0%{content:""}
    33%{content:"."}
    66%{content:".."}
    100%{content:"..."}
}
.lino-catalog-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:12px;
}

.lino-card{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #eee;
}

.lino-card img{
    width:100%;
    height:120px;
    object-fit:cover;
}

.lino-card-title{
    padding:10px;
    font-size:13px;
    text-align:center;
}


/* =========================
BURBUJA VIVA
========================= */

.lino-bubble {
    position: fixed;
    bottom: 22px;
    right: 22px;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: radial-gradient(circle at 30% 30%, #fff, #f2f2f2);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 12px 30px rgba(0,0,0,0.18);

    animation: floatSoft 4s ease-in-out infinite;

    cursor: pointer;
    z-index: 10000;
}
/* 🔥 CLAVE: estructura vertical */
.lino-bubble-inner {
    display: flex;
    flex-direction: column;   /* 👈 ESTO ES LO IMPORTANTE */
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* imagen arriba */
.lino-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

/* texto abajo */
.lino-bubble-text {
    font-size: 10px;
    text-align: center;
    color: #333;

    max-width: 90px;

    line-height: 1.2;
}

/* “vida” */
@keyframes breathe {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-6px); }
    100% { transform: scale(1) translateY(0); }
}


/* =========================
CHAT
========================= */

.lino-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 360px;
    height: 520px;

    background: #fff;
    border-radius: 18px;

    display: none;
    flex-direction: column;

    box-shadow: 0 25px 60px rgba(0,0,0,0.25);

    z-index: 9999;
}

.lino-chat.active {
    display: flex;
}

/* HEADER */
.lino-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px;
    background: #fafafa;
}

/* slot burbuja */
#linoBubbleSlot {
    width: 60px;
    height: 60px;
    position: relative;
}

/* burbuja dentro del chat */
.lino-bubble.in-chat {
    position: absolute;
    top: 5px;
    right: 5px;

    width: 45px;
    height: 45px;

    animation: none;
}

/* mensajes */
.lino-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.lino-message {
    font-size: 13px;
    padding: 8px 10px;
    margin: 6px 0;
    border-radius: 10px;
    max-width: 75%;
}

.lino-message.bot {
    background: #f3f3f3;
}

.lino-message.user {
    background: #dff0ff;
    align-self: flex-end;
}


.lino-bubble.in-chat .lino-bubble-text {
    display: none;   /* 🔥 oculta mensajes rotativos */
}

/* =========================================
LINO TYPING
========================================= */

.lino-typing{

    display:flex;
    align-items:center;
    gap:6px;

}

.lino-typing span{

    width:8px;
    height:8px;

    border-radius:50%;

    background:#caa76a;

    animation:linoTyping 1.2s infinite;

}

.lino-typing span:nth-child(2){

    animation-delay:.2s;

}

.lino-typing span:nth-child(3){

    animation-delay:.4s;

}

@keyframes linoTyping{

    0%,80%,100%{

        transform:scale(.6);
        opacity:.4;

    }

    40%{

        transform:scale(1);
        opacity:1;

    }

}