html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    height: 100vh;
    width: 100vw;
    align-items: center;
    justify-content: center;
}

/* --- CHATBOX FULL SCREEN --- */
.chatbox {
    width: 100%;
    max-width: 420px;
    min-height: 70vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10), 0 1.5px 3px rgba(44, 62, 80, .08);
    margin: 0 auto;
    opacity: 1;
    display: flex !important;
    flex-direction: column;
    z-index: 2;
    position: relative;
    transition: none;
    margin-top: 80px;
}

.chat-header {
    background-color: #000000;
    color: #fff;
    padding: 20px;
    border-radius: 18px 18px 0 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: #FF4C4C;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    transition: background 0.3s;
}

.close-chat:hover {
    background: #D14343;
}

.chat-body {
    padding: 20px;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    background: #f9f9f9;
    border-radius: 0px;
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 50vh;
    margin-bottom: 0px;
}

.chat-footer {
    padding: 16px 20px;
    background: #fff;
    border-radius: 0 0 18px 18px;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1 1 auto;
    padding: 12px 15px;
    border-radius: 18px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 0px;
}

#user-input:focus {
    border-color: #b8b8b8;
}

#send-message {
    background: #E53E3E;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 12px 22px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#send-message:hover {
    background: #e62a2a;
}

.option-btn {
    background: #E53E3E;
    color: #fff;
    padding: 10px 20px;
    margin: 5px 2px;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: background 0.3s;
}

.option-btn:hover {
    background: #e42929;
}

/* --- BOTÓN WHATSAPP "CHAT" --- */
.wa-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E53E3E;
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    border-radius: 20px;
    padding: 9px 24px 9px 18px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.12);
    text-decoration: none;
    border: none;
    outline: none;
    transition: background 0.18s, box-shadow 0.18s;
}

.wa-chat-btn:hover {
    background: #df2c2c;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.16);
}

.wa-chat-btn i.fab.fa-whatsapp {
    font-size: 22px;
    vertical-align: middle;
    margin-right: 4px;
}

.wa-chat-btn span {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
    font-size: 17px;
    line-height: 1;
}

/* --- BOTÓN "Abrir chat" (por si lo usas aún) --- */
#open-chat {
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 120px;
    display: inline-block;
}

#open-chat:hover {
    background-color: #128C7E;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- ÍCONO FLOTANTE DE WHATSAPP --- */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-icon:hover {
    background-color: #388E3C;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    outline: none;
    display: block;
}

/* --- ÍCONO DE WHATSAPP SOLO (en un link circular) --- */
.whatsapp-btn-in-chat {
    display: inline-block;
    background: #25D366;
    border-radius: 50%;
    padding: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .10);
    transition: background 0.2s;
    vertical-align: middle;
}

.whatsapp-btn-in-chat:hover {
    background: #128C7E;
}

.icon-whatsapp-in-chat {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}

/* --- RESPONSIVE CHATBOX --- */
@media (max-width: 600px) {
    .chatbox {
        max-width: 100vw;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .chat-header,
    .chat-footer {
        padding-left: 8px;
        padding-right: 8px;
    }

    .chat-body {
        padding: 10px;
        font-size: 15px;
        max-height: 55vh;
    }

    .wa-chat-btn {
        font-size: 15px;
        padding: 10px 10vw;
        border-radius: 7px;
    }
}