/* RESET */

*{
    box-sizing:border-box;
    min-width:0;
}

html{
    width:100%;
}

body{
    min-height:100vh;
    margin:0;
    font-family:system-ui;

    background:
    radial-gradient(
        circle at top left,
        rgba(217,70,239,.08),
        transparent 30%
    ),
    radial-gradient(
        circle at top right,
        rgba(109,93,252,.08),
        transparent 30%
    ),
    var(--bg);

    color:var(--text);
}

/* VARIABLES */

:root{

    --primary:#6d5dfc;
    --primary2:#d946ef;

    --bg:#f8fafc;
    --chat-bg:#f4f7fb;

    --text:#0f172a;
    --subtext:#64748b;

    --bubble-user:#6d5dfc;
    --bubble-bot:#ffffff;

    --bubble-text-bot:#0f172a;

    --card-border:#e5e7eb;
}

.dark{

    --primary:#6366f1;
    --primary2:#8b5cf6;

    --bg:#0f172a;
    --chat-bg:#020617;

    --text:#e5e7eb;
    --subtext:#94a3b8;

    --bubble-user:#6366f1;

    --bubble-bot:#1e293b;
    --bubble-text-bot:#e5e7eb;
}

/* BLOBS */

@media (min-width:768px){

    body::before,
    body::after{
        content:"";
        position:fixed;
        border-radius:50%;
        filter:blur(90px);
        z-index:-1;
        animation:floatBlob 18s ease-in-out infinite;
        pointer-events:none;
    }

    body::before{
        width:420px;
        height:420px;
        background:rgba(236,72,153,.18);
        top:-120px;
        left:-120px;
    }

    body::after{
        width:450px;
        height:450px;
        background:rgba(124,58,237,.15);
        bottom:-150px;
        right:-150px;
        animation-delay:-9s;
    }

}

@keyframes floatBlob{

    0%{
        transform:translate(0,0) scale(1);
    }

    50%{
        transform:translate(40px,-30px) scale(1.08);
    }

    100%{
        transform:translate(0,0) scale(1);
    }

}

/* ANIMACIONES */

@keyframes popIn{

    from{
        transform:translateY(6px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

@keyframes pulse{

    0%{
        transform:scale(.8);
        opacity:.6;
    }

    70%{
        transform:scale(1.6);
        opacity:0;
    }

    100%{
        opacity:0;
    }

}

/* FORMULARIOS */

input,
select{

    width:100%;

    padding:14px 16px;

    border-radius:14px;

    border:1px solid #e2e8f0;

    background:white;

    font-size:15px;

    outline:none;

    transition:.25s ease;
}

input:focus,
select:focus{

    border-color:#6d5dfc;

    box-shadow:
    0 0 0 4px rgba(109,93,252,.12);
}

/* BOTONES */

.btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:12px 16px;

    border:none;
    border-radius:14px;

    cursor:pointer;

    font-size:14px;
    font-weight:700;

    transition:.2s ease;

    text-decoration:none;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{

    background:
    linear-gradient(
        135deg,
        #6d5dfc,
        #d946ef
    );

    color:white;

    box-shadow:
    0 10px 30px rgba(109,93,252,.28);
}

.btn-gray{
    background:#94a3b8;
    color:white;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}