/* ==========================================================
   CALI TECH - BOTONES DE BENEFICIOS, MODAL INFORMATIVO Y CHATBOT
   ========================================================== */

/* ---------- BOTONES DENTRO DE LAS FRANJAS DE BENEFICIOS ---------- */
.promo{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.promo:hover{
    transform: translateY(-4px);
    border-color: #c6dcee;
    box-shadow: 0 26px 46px -26px rgba(10, 20, 36, 0.6);
}
.promo-top{
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}
.promo-top > div:last-child{
    min-width: 0;
}
.btn-promo{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--azul);
    background: linear-gradient(135deg, rgba(71, 253, 238, 0.22), rgba(20, 107, 158, 0.14));
    border: 1px solid rgba(20, 107, 158, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.15s, box-shadow 0.25s;
}
.btn-promo svg{
    width: 16px;
    height: 16px;
    flex: none;
}
.btn-promo:hover{
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
    box-shadow: 0 12px 22px -12px rgba(20, 107, 158, 0.85);
}
.btn-promo:active{
    transform: scale(0.98);
}
.btn-promo.chat{
    color: #04121f;
    background: linear-gradient(135deg, var(--cian), #1b8fce);
    border-color: transparent;
    box-shadow: 0 12px 22px -12px rgba(20, 107, 158, 0.8);
}
.btn-promo.chat:hover{
    background: linear-gradient(135deg, #ffffff, var(--cian));
}

/* ---------- MODAL INFORMATIVO ---------- */
.modal-info{
    position: fixed;
    inset: 0;
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 11, 22, 0.72);
    backdrop-filter: blur(3px);
}
.modal-info.abierto{
    display: flex;
}
.modal-info-caja{
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
    animation: infoPop 0.25s ease;
}
@keyframes infoPop{
    from{ transform: translateY(18px) scale(0.97); opacity: 0; }
    to{ transform: translateY(0) scale(1); opacity: 1; }
}
.modal-info-cab{
    position: relative;
    padding: 22px 26px;
    background: linear-gradient(120deg, #050b16 0%, #0d2b4d 100%);
    color: #ffffff;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 14px;
}
.modal-info-cab .ico{
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
}
.modal-info-cab .ico svg{
    width: 24px;
    height: 24px;
}
.modal-info-cab h3{
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 22px;
}
.modal-info-cab p{
    margin: 3px 0 0;
    font-size: 13px;
    color: #9fc4dd;
}
.modal-info-cerrar{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-info-cerrar:hover{
    background: #c1121f;
}
.modal-info-cuerpo{
    padding: 22px 26px 26px;
}
.modal-info-cuerpo ul{
    margin: 0 0 18px;
    padding-left: 20px;
}
.modal-info-cuerpo li{
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #33465e;
}
.modal-info-cuerpo strong{
    color: var(--azul);
}
.modal-info-pie{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.modal-info-pie a,
.modal-info-pie button{
    flex: 1 1 160px;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(20, 107, 158, 0.35);
    color: var(--azul);
    background: #f2f8fc;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.modal-info-pie a:hover,
.modal-info-pie button:hover{
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
    transform: translateY(-2px);
}

/* ---------- WIDGET DEL CHATBOT ---------- */
.chat-boton-flotante{
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 880;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #04121f;
    background: linear-gradient(135deg, var(--cian), #1b8fce);
    box-shadow: 0 18px 34px -14px rgba(10, 20, 36, 0.8);
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}
.chat-boton-flotante.visible{
    display: inline-flex;
}
.chat-boton-flotante:hover{
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.chat-panel{
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 950;
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 540px;
    max-height: calc(100vh - 44px);
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(5, 11, 22, 0.65);
    animation: infoPop 0.22s ease;
}
.chat-panel.abierto{
    display: flex;
}

.chat-cab{
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(120deg, #050b16 0%, #0d2b4d 100%);
    border-bottom: 3px solid var(--cian);
}
.chat-avatar{
    position: relative;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
    font-weight: 800;
    font-size: 15px;
}
.chat-avatar::after{
    content: "";
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #37d67a;
    border: 2px solid #0a1424;
}
.chat-cab-info{
    flex: 1;
    min-width: 0;
}
.chat-cab-info strong{
    display: block;
    font-size: 16px;
}
.chat-cab-info span{
    font-size: 12px;
    color: var(--cian);
}
.chat-cab button{
    flex: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-cab button:hover{
    background: #c1121f;
}

.chat-msgs{
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #eef2f7;
}
.msg{
    max-width: 88%;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.45;
    white-space: pre-line;
    word-wrap: break-word;
}
.msg.bot{
    align-self: flex-start;
    background: #ffffff;
    color: #17293d;
    border: 1px solid #e2e9f1;
    border-bottom-left-radius: 5px;
}
.msg.yo{
    align-self: flex-end;
    background: linear-gradient(135deg, var(--azul), #1b8fce);
    color: #ffffff;
    border-bottom-right-radius: 5px;
}
.msg.escribiendo{
    display: flex;
    gap: 5px;
    padding: 14px;
}
.msg.escribiendo i{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8fa6bd;
    animation: escribe 1.1s infinite ease-in-out;
}
.msg.escribiendo i:nth-child(2){ animation-delay: 0.18s; }
.msg.escribiendo i:nth-child(3){ animation-delay: 0.36s; }
@keyframes escribe{
    0%, 60%, 100%{ transform: translateY(0); opacity: 0.45; }
    30%{ transform: translateY(-5px); opacity: 1; }
}

/* Tarjeta de teléfono dentro del chat */
.chat-card{
    align-self: flex-start;
    max-width: 92%;
    width: 268px;
    background: #ffffff;
    border: 1px solid #e2e9f1;
    border-bottom-left-radius: 5px;
    border-radius: 16px;
    overflow: hidden;
}
.chat-card img{
    display: block;
    width: 100%;
    height: 130px;
    object-fit: contain;
    background: radial-gradient(circle at 50% 32%, #f8fcff 0%, #e6eff9 100%);
}
.chat-card-info{
    padding: 11px 13px 13px;
}
.chat-card-info strong{
    display: block;
    font-size: 15px;
    color: var(--tinta);
}
.chat-card-info .chat-precio{
    margin: 3px 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--azul);
}
.chat-card-info ul{
    margin: 0 0 10px;
    padding-left: 17px;
}
.chat-card-info li{
    font-size: 12.5px;
    color: #4d5f76;
    margin-bottom: 2px;
}
.chat-card-acciones{
    display: flex;
    gap: 7px;
}
.chat-card-acciones a,
.chat-card-acciones button{
    flex: 1;
    padding: 8px 6px;
    border-radius: 9px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(20, 107, 158, 0.3);
    color: var(--azul);
    background: #f2f8fc;
}
.chat-card-acciones .btn-carrito{
    color: #04121f;
    background: linear-gradient(135deg, var(--cian), #1b8fce);
    border-color: transparent;
}
.chat-card-acciones a:hover,
.chat-card-acciones button:hover{
    filter: brightness(0.95);
}

/* Sugerencias rápidas */
.chat-chips{
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e9f1;
    max-height: 96px;
    overflow-y: auto;
}
.chat-chips button{
    padding: 7px 12px;
    border-radius: 20px;
    border: 1px solid rgba(20, 107, 158, 0.3);
    background: #f2f8fc;
    color: var(--azul);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.chat-chips button:hover{
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
}

/* Formulario de escritura */
.chat-form{
    flex: none;
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e9f1;
}
.chat-form input{
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #d5e0ec;
    border-radius: 24px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--tinta);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-form input:focus{
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(20, 107, 158, 0.15);
}
.chat-form button{
    flex: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cian), var(--azul));
    color: #04121f;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: filter 0.2s, transform 0.15s;
}
.chat-form button:hover{
    filter: brightness(1.08);
}
.chat-form button:active{
    transform: scale(0.94);
}
.chat-form button svg{
    width: 20px;
    height: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
    .chat-panel{
        right: 15px;
        left: 15px;
        bottom: 15px;
        width: auto;
        height: 72vh;
    }
    .chat-boton-flotante{
        right: 15px;
        bottom: 15px;
    }
}
