/* ─── Kibo Mascot — Web pública ─── */

/* Base (oculto por defecto) */
.kibo-mascot-web {
    position: fixed;
    z-index: 9990; /* Debajo del cookie banner (9999) */
    pointer-events: none;
    opacity: 0;
    font-family: 'Outfit', system-ui, sans-serif;
}

.kibo-mascot-web--visible {
    pointer-events: auto;
    opacity: 1;
}

.kibo-mascot-web__inner {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

/* ── Avatar ── */
.kibo-mascot-web__avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #E0DAFF; /* --primary-light / kibo-blue-light */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

/* ── Bocadillo ── */
.kibo-mascot-web__bubble {
    position: relative;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left: 3px solid #5471E8; /* --primary / kibo-blue */
    padding: 12px 32px 12px 14px;
    max-width: 240px;
}

.kibo-mascot-web__text {
    font-size: 14px;
    color: #262626; /* --text / kibo-neutral-800 */
    line-height: 1.45;
    margin: 0;
}

/* ── Botón cerrar ── */
.kibo-mascot-web__close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.kibo-mascot-web__close:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

/* ─── TIPO: PEEK (se asoma desde la derecha) ─── */
.kibo-mascot-web--peek {
    bottom: 120px;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.kibo-mascot-web--peek .kibo-mascot-web__inner {
    flex-direction: row-reverse;
}

.kibo-mascot-web--peek .kibo-mascot-web__avatar {
    /* Solo se ve la mitad */
    margin-right: -24px;
}

.kibo-mascot-web--peek .kibo-mascot-web__bubble {
    border-left: none;
    border-right: 3px solid #5471E8;
}

.kibo-mascot-web--peek.kibo-mascot-web--visible {
    transform: translateX(24px); /* Mitad del avatar asomándose */
}

.kibo-mascot-web--peek.kibo-mascot-web--hiding {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
}

/* ─── TIPO: FLOAT (junto a un CTA) ─── */
.kibo-mascot-web--float {
    bottom: 100px;
    right: 80px;
    transform: translateY(20px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.kibo-mascot-web--float.kibo-mascot-web--visible {
    transform: translateY(0);
}

.kibo-mascot-web--float.kibo-mascot-web--hiding {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* ─── TIPO: CORNER (esquina inferior izquierda) ─── */
.kibo-mascot-web--corner {
    bottom: 24px;
    left: 24px;
    transform: translateY(20px);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.kibo-mascot-web--corner.kibo-mascot-web--visible {
    transform: translateY(0);
}

.kibo-mascot-web--corner.kibo-mascot-web--hiding {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* ─── Ocultar en móvil ─── */
@media (max-width: 768px) {
    .kibo-mascot-web {
        display: none !important;
    }
}
