/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:Arial, Helvetica, sans-serif;
background:#f5f7fb;
color:#222;
line-height:1.5;
}

/* HERO */

header{
text-align:center;
padding:100px 20px;
background:linear-gradient(135deg,#3a7afe,#6c3cff);
color:white;
}

header h1{
font-size:42px;
margin-bottom:20px;
}

header p{
font-size:18px;
max-width:600px;
margin:auto;
opacity:0.9;
}

/* BUTTON */

button{
margin-top:30px;
padding:14px 30px;
font-size:16px;
border:none;
border-radius:8px;
background:white;
color:#3a7afe;
cursor:pointer;
transition:0.2s;
}

button:hover{
transform:translateY(-2px);
box-shadow:0 6px 20px rgba(0,0,0,0.15);
}

/* FEATURES */

.features{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
padding:70px 20px;
max-width:1100px;
margin:auto;
}

.feature{
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
text-align:center;
transition:0.2s;
}

.feature:hover{
transform:translateY(-5px);
box-shadow:0 15px 40px rgba(0,0,0,0.12);
}

.feature h3{
margin-bottom:10px;
}

.feature p{
font-size:14px;
color:#666;
}

/* FOOTER */

footer{
text-align:center;
padding:40px;
color:#888;
font-size:14px;
}

/* CHAT BUTTON */

#chat-btn{
position:fixed;
bottom:20px;
right:20px;
width:60px;
height:60px;
background:#3a7afe;
color:white;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
font-size:24px;
cursor:pointer;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
transition:0.2s;
z-index:9999;
}

#chat-btn:hover{
transform:scale(1.1);
}

/* CHAT WINDOW */

#chat-box{
position:fixed;
bottom:100px;
right:20px;
width:320px;
height:420px;
background:white;
border-radius:12px;
box-shadow:0 20px 40px rgba(0,0,0,0.25);
display:none;
flex-direction:column;
overflow:hidden;
z-index:9999;
}

#chat-box.open{
display:flex;
}

/* CHAT HEADER */

#chat-header{
background:#3a7afe;
color:white;
padding:14px;
font-weight:bold;
text-align:center;
position:relative;
}

/* BOTÓN CERRAR */

#chat-close{
position:absolute;
right:12px;
top:10px;
cursor:pointer;
}

/* MESSAGES */

#chat-messages{
flex:1;
padding:10px;
overflow-y:auto;
background:#fafafa;
}

/* MESSAGE */

.msg{
padding:8px 10px;
margin:6px 0;
border-radius:8px;
max-width:80%;
font-size:14px;
word-wrap:break-word;
}

.msg.user{
background:#3a7afe;
color:white;
margin-left:auto;
}

.msg.bot{
background:#eaeaea;
color:#333;
}

/* INPUT AREA */

#chat-input-area{
display:flex;
border-top:1px solid #ddd;
}

#chat-input{
flex:1;
border:none;
padding:12px;
font-size:14px;
outline:none;
}

#chat-send{
width:50px;
background:#3a7afe;
color:white;
border:none;
cursor:pointer;
}

/* SUGERENCIAS */

.chat-suggestions{
display:flex;
gap:6px;
flex-wrap:wrap;
margin:10px;
}

.chat-suggestion{
background:#f1f1f1;
border:none;
padding:6px 10px;
border-radius:14px;
cursor:pointer;
font-size:12px;
}

.chat-suggestion:hover{
background:#e2e2e2;
}

/* TYPING */

.typing{
animation:blink 1s infinite;
}

@keyframes blink{
0%{opacity:0.3}
50%{opacity:1}
100%{opacity:0.3}
}

/* MOBILE */

@media (max-width:600px){

header{
padding:70px 20px;
}

header h1{
font-size:32px;
}

#chat-box{
width:90%;
right:5%;
bottom:90px;
}

}