﻿body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #000;
    color: #fff;
}

.top-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    height: 25vh;
    border-color: #ffe755;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
    background-color: #000;
    padding: 20px;
}

.header-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 80%;
    width: 100%;
    margin: 0 30px;
}

.header-redes a {
    text-decoration: none;
    margin: 10px;
    color: #fff;
    font-weight: bold;
}

.header-redes i {
    color: #fff;
}

footer {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    padding-bottom: 0;
}

.container {
    color: #999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.container_principal {
    display: flex;
    justify-content: space-between;
    align-items: center; /* centrar verticalmente dentro del footer */
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.container_img {
    flex: 2;
}

.container_direccion {
    flex: 1;
    padding-left: 30px;
    border-left: 1px solid #444;
}

.container_copyright {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
}

.container_copyright i {
    color: #999;
    padding-left: 10px;
}

/*Chat bot*/
#chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Segoe UI', Arial, sans-serif;
}
#chatbot-toggle {
    background: #FFD700;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}
#chatbot-toggle:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
#chatbot-panel {
    width: 340px;
    height: 480px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s;
}
@@keyframes fadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
#chatbot-header {
    background: #9a8621;
    color: #222;
    padding: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}
#chatbot-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #222;
}
#chatbot-messages {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}
.chatbot-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}
.chatbot-message.user {
    background: #9a8621;
    color: #222;
    align-self: flex-end;
}
.chatbot-message.bot {
    background: #fff;
    color: #222;
    border: 1px solid #9a8621;
    align-self: flex-start;
}
#chatbot-form {
    display: flex;
    border-top: 1px solid #eee;
    background: #fff;
    padding: 8px;
    flex-shrink: 0;
    align-items: center;
}
#chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 15px;
    outline: none;
    margin-right: 8px;
    min-height: 40px;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
}
#chatbot-input:focus {
    border-color: #9a8621;
}
#chatbot-send {
    background: #9a8621;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    color: #222;
    font-weight: bold;
    transition: background 0.2s;
    height: 40px;
}
#chatbot-send:hover {
    background: #e6c200;
}

/* Para pantallas pequeñas reorganizar el header en filas*/
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        height: auto; /* se adapta al contenido */
    }

    .header-section {
        width: 100%;
    }
}
