/*
==================================================
Argüelles AI Widget
Color de marca: #042276
==================================================
*/

/* Blindaje: evita que estilos globales de la web
   (line-height, box-sizing, márgenes de tema, etc.)
   se filtren dentro del widget y descoloquen el texto */
.aa-widget-button,
.aa-widget,
.aa-widget *{

    box-sizing:border-box;

    margin:0;

    padding:0;

    line-height:normal;

    font-family:'Segoe UI',Arial,Helvetica,sans-serif;

    -webkit-font-smoothing:antialiased;

}

.aa-widget-button{

    position:fixed;

    right:25px;

    bottom:25px;

    width:64px;

    height:64px;

    border:none;

    border-radius:50%;

    background:#042276;

    color:#fff;

    font-size:28px;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    box-shadow:0 8px 22px rgba(4,34,118,.35);

    z-index:999998;

    transition:transform .25s ease, box-shadow .25s ease;

}

.aa-widget-button:hover{

    transform:scale(1.08);

    box-shadow:0 10px 26px rgba(4,34,118,.45);

}

.aa-widget{

    position:fixed;

    right:25px;

    bottom:100px;

    width:390px;

    height:680px;

    background:#ffffff;

    border-radius:18px;

    overflow:hidden;

    display:none;

    flex-direction:column;

    box-shadow:0 15px 45px rgba(0,0,0,.25);

    z-index:999999;

}

.aa-widget.open{

    display:flex;

}

.aa-header{

    background:#042276;

    color:#fff;

    padding:18px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-shrink:0;

}

.aa-title{

    font-size:18px;

    font-weight:700;

    line-height:1.3;

}

.aa-close{

    cursor:pointer;

    font-size:20px;

    line-height:1;

    width:28px;

    height:28px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    transition:background .2s;

}

.aa-close:hover{

    background:rgba(255,255,255,.15);

}

.aa-messages{

    flex:1;

    overflow-y:auto;

    padding:18px;

    background:#f4f6fb;

    display:flex;

    flex-direction:column;

}

.aa-footer{

    display:flex;

    align-items:center;

    gap:10px;

    padding:14px 15px;

    border-top:1px solid #e3e6ee;

    background:#fff;

    flex-shrink:0;

}

.aa-footer input{

    flex:1;

    min-width:0;

    border:1px solid #ccc;

    border-radius:10px;

    padding:12px 14px;

    font-size:15px;

    line-height:1.3;

    outline:none;

    color:#222;

    transition:border-color .2s;

}

.aa-footer input:focus{

    border-color:#042276;

}

.aa-footer button{

    background:#042276;

    color:#fff;

    border:none;

    border-radius:10px;

    padding:12px 18px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    white-space:nowrap;

    transition:background .2s;

}

.aa-footer button:hover{

    background:#031a5c;

}

.aa-message{

    display:block;

    max-width:85%;

    margin-bottom:14px;

    padding:12px 15px;

    border-radius:14px;

    line-height:1.45;

    font-size:15px;

    word-wrap:break-word;

    white-space:pre-wrap;

}

.aa-message.bot{

    background:#fff;

    color:#222;

    border-bottom-left-radius:4px;

    align-self:flex-start;

    box-shadow:0 2px 6px rgba(0,0,0,.05);

}

.aa-message.user{

    margin-left:auto;

    background:#042276;

    color:#fff;

    border-bottom-right-radius:4px;

    align-self:flex-end;

}

.typing{

    opacity:.6;

    font-style:italic;

}

.aa-cars{

    display:flex;

    flex-direction:column;

    gap:16px;

    margin-top:4px;

    margin-bottom:14px;

    width:100%;

}

.aa-card{

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 3px 12px rgba(0,0,0,.12);

    width:100%;

}

.aa-card-image{

    position:relative;

    width:100%;

    height:210px;

    overflow:hidden;

    background:#eee;

}

.aa-card-image img{

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}

.aa-no-image{

    display:flex;

    justify-content:center;

    align-items:center;

    height:100%;

    color:#777;

    font-size:14px;

    text-align:center;

}

.aa-card-body{

    padding:16px;

}

.aa-card-title{

    display:block;

    font-size:17px;

    font-weight:700;

    line-height:1.35;

    margin-bottom:8px;

    color:#111;

}

.aa-card-price{

    display:block;

    color:#042276;

    font-size:23px;

    font-weight:700;

    line-height:1.2;

    margin-bottom:10px;

}

.aa-card-info{

    display:block;

    color:#666;

    font-size:14px;

    line-height:1.4;

    margin-bottom:4px;

}

.aa-card-button{

    display:block;

    text-align:center;

    margin-top:14px;

    background:#042276;

    color:#fff;

    text-decoration:none;

    padding:12px;

    border-radius:10px;

    font-size:15px;

    font-weight:600;

    transition:background .2s;

}

.aa-card-button:hover{

    background:#031a5c;

}

.aa-lead{

    display:flex;

    flex-direction:column;

    gap:10px;

    margin-top:16px;

    margin-bottom:14px;

    width:100%;

}

.aa-lead-btn{

    display:block;

    text-align:center;

    text-decoration:none;

    padding:14px;

    border-radius:10px;

    color:#fff;

    font-size:15px;

    font-weight:700;

    line-height:1.3;

}

.aa-lead-btn.whatsapp{

    background:#25D366;

}

.aa-lead-btn.phone{

    background:#042276;

}

.aa-lead-btn.form{

    background:#0a3a9c;

}

@media(max-width:600px){

    .aa-widget{

        right:0;

        left:0;

        bottom:0;

        width:100%;

        height:100%;

        border-radius:0;

    }

    .aa-widget-button{

        right:18px;

        bottom:18px;

    }

}
