.main {
    margin-top: 20px !important;
}

.contacto {
    opacity: 1;
    -webkit-transition: 1s ease-in;
    transition: 1s ease-in;
    margin: 0;
    margin-top: 150px;
    padding: 50px 0;
    display: flex;
    /*background: linear-gradient(0deg,
        rgba(103, 29, 150, 0) 0%, 
        rgba(103, 29, 150, 0.475) 25%, 
        rgba(64, 49, 157, 0.408) 50%, 
        rgba(64, 49, 157, 0) 95%
    );
    min-height: 100vh;

     align-items: center; */
}

.contacto .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

@media (max-width: 500px) {
    .contacto .container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
}

.contacto .container figure {
    margin-left: -70px;
}

@media (max-width: 500px) {
    .contacto .container figure {
        margin: auto;
    }
}

.contacto .container .contact {
    text-align: center;
    color: white;
}

.bienvenida__texto {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    justify-content: center;
}

.formulario {
    width: 100% !important;
    max-width: 1200px;
    background: transparent;
    padding: 0;
    margin: 0 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.formulario h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.formulario p {
    text-align: center;
    margin-bottom: 20px;
    color: #202124;
}

.chat-step {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.chat-step.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

#user-name {
    color: #671d96;
    font-weight: bold;
}

select {
    width: 100%;
    padding: 10px 5px;
    font-size: 16px;
    color: #333;
    background: none;
    border: none;
    outline: none;
    font-family: "Sora", sans-serif;
}

select option {
    background: #f1f1f1;
    color: #333;
}

textarea {
    width: 100%;
}

textarea::-webkit-input-placeholder {
    font-family: "Sora", sans-serif;
}

textarea::-moz-placeholder {
    font-family: "Sora", sans-serif;
}

textarea:-ms-input-placeholder {
    font-family: "Sora", sans-serif;
}

textarea::-ms-input-placeholder {
    font-family: "Sora", sans-serif;
}

textarea::placeholder {
    font-family: "Sora", sans-serif;
}

.box-input {
    border-bottom: 2px solid #adadad;
    position: relative;
    margin: 20px 0;
}

.box-input input {
    font-size: 16px;
    color: #333;
    border: none;
    width: 100%;
    outline: none;
    background: none;
    padding: 0 5px;
    height: 40px;
}

.focus + span::before {
    top: -5px;
}

.focus + span::after {
    width: 100%;
}

.buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.boton {
    display: block;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #671d96, #40319d);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    border: none;
    margin: 5px 10px 0;
}

.boton:hover {
    background: linear-gradient(45deg, #40319d, #671d96);
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.mensaje {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #231f20;
    height: 200px;
}

.mensaje p {
    color: white;
    font-size: 26px;
}

@media (max-width: 500px) {
    .mensaje p {
        font-size: 18px;
    }
}

.pre-footer {
    margin: 50px 0 0 0;
    padding: 50px 0 20px 0;
    text-align: center;
}

.world-clocks {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin: 100px auto;
    flex-wrap: wrap;
}

.clock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    color: #fff;
}
.clock-container p{
    text-align: center;
}


.clock {
    width: 120px;
    height: 120px;
    border: 6px solid #F5F0EF;
    border-radius: 50%;
    position: relative;
    background-color: #F5F0EF;
    margin-bottom: 10px;
}



#contact > section > div:nth-child(3) .clock{
    background-color: black;
}
#contact > section > div:nth-child(3) .hand{
    background-color: white;
}
#contact > section > div:nth-child(3) .second-hand{
    background-color: red;
}

.hand {
    width: 40%;
    height: 2px;
    background-color: #333;
    position: absolute;
    top: 50%;
    left: 10%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.05s;
    transition-timing-function: ease-in-out;
}

.second-hand {
    height: 1px;
    background-color: red;
}

.center-point {
    width: 6px;
    height: 6px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.time-numeric {
    font-size: 14px;
    color: #ffffff;
    margin-top: 5px;
}

.chat-container {
    max-width: 100%;
 
    height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.chat-container::before {
    display: none;
}

.chat-messages {
    flex: 1;
    padding: 0px 30px;
    overflow-y: auto;
    background: transparent;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

.all-fields-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: none;
    box-shadow: none;
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
    background-color: rgb(40 40 49 / 80%);
    backdrop-filter: blur(10px);
    width:100%;
}

.field-group {
    width: 100%;
    box-sizing: border-box;
}

.field-group .chat-input,
.field-group select.chat-input {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
}

.field-group .chat-input:focus,
.field-group select.chat-input:focus {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(103, 29, 150, 0.2);
}

.field-group textarea.chat-input {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
}

#submit-all {
    align-self: flex-end;
    margin: 15px 10px 10px 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submit-all:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#submit-all:active {
    transform: scale(0.95);
}

.chat-header {
    display: none;
}

.chat-avatar {
    width: 40px;
    height: 40px;

    margin-right: 15px;
    overflow: hidden;

}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h3 {
    margin: 0;
    font-size: 16px;
}

.status {
    font-size: 12px;
    opacity: 0.8;
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
}

.message-content {
    max-width: 600px;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.user-message .message-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.1);
    color: white;
}

.user-message .message-content p {
    color: white;
}

.message-content p {
    margin: 0;
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-input-container {
    display: flex;
    background: transparent;
    padding-left: 120px;
    padding-bottom: 50px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    margin-right: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(103, 29, 150, 0.2);
}

.chat-send {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.chat-send:active {
    transform: scale(0.95);
}

.typing-indicator {
    display: flex;
    padding: 12px 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border-radius: 15px;
    margin: 0px;
    justify-content: end;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #671d96;
    border-radius: 20px;
    color: #671d96;
    cursor: pointer;
    transition: all 0.3s;
}

.option-button:hover {
    background: #671d96;
    color: white;
}

.field-group select.chat-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23671d96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
    transition: all 0.3s ease;
}

.field-group select.chat-input:focus {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 8px 32px 0 rgba(103, 29, 150, 0.2);
    outline: none;
}

.field-group select.chat-input option {
    padding: 10px;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

@media (max-width: 768px) {
    .formulario {
        margin: 0 10px;
    }

    .chat-messages,
    .chat-input-container,
    .all-fields-container {

    }

    .message-content {
        max-width: 80%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacto {
        padding: 20px 0;
    }

    .formulario {
        margin: 0 5px;
    }
}

.chat-input[list] {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
    cursor: pointer;
}

.chat-input[list]:focus {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(103, 29, 150, 0.2);
}

datalist {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px 0 rgba(31, 38, 135, 0.1);
}

datalist option {
    padding: 10px;
    font-family: "Sora", sans-serif;
    color: #333;
    cursor: pointer;
}

datalist option:hover {
    background-color: #f5f5f5;
}
