/* Ajuste general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #ecececa0;
}

.icono {
    max-width: 8rem;
    flex: 0 0 auto;
}

.bars__menu {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 10;
}

.bars__menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ec8805d4;
    margin: 4px 0;
    transition: all 200ms;
}

.activeline1__bars-menu {
    transform: rotate(45deg) translate(-2px, 1px);
}

.activeline2__bars-menu {
    opacity: 0;
    margin-left: -30px;
}

.activeline3__bars-menu {
    transform: rotate(-45deg) translate(-4px, 2px);
}

.nav {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 12rem;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #1c1c1c;
    padding: 72px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
}

.nav.visible {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 3rem;
}

.nav-list a {
    text-decoration: none;
    color: #ecececec;
}

.contact-section {
    display: flex;
    align-items: flex-start;
    min-height: 40vh;
    padding: 5rem;
    flex-wrap: nowrap;
    margin: auto;
}

.map-container {
    flex: 1;
    margin: 0 15rem;
    /* Aumento la separación en pantallas grandes */
    height: 250%;
    overflow: hidden;

}

.form-row {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
    margin: 0 5rem;
    /* Aumento la separación en pantallas grandes */
}

.content-wrapper {
    display: flex;
    justify-content: center;
    /* Centrar en pantallas pequeñas */
    gap: 3rem;
    align-items: start;
}

@media screen and (max-width: 896px) {
    .contact-section {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        /* Espacio entre el formulario y el mapa */
        width: 90%;
        /* Establece un ancho para el contenedor para que ambos elementos (formulario y mapa) tengan el mismo ancho */
        margin: 0 auto;
        /* Centra el contenedor en pantallas más pequeñas */
    }

    .map-container,
    .form-container {
        width: 100%;
        /* Ambos elementos (formulario y mapa) ocuparán el 100% del ancho del contenedor */
        margin: 0;
        /* No hay margen */
    }

    .form-row {
        margin: 0;
        /* Quitar cualquier margen que pueda afectar la alineación */
    }

    .bars__menu span {
        width: 20px;
        /* Ajuste para el icono hamburguesa */
        height: 2px;
        margin: 3px 0;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        margin: 0 auto;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 90%;
    }

    .map-container,
    .form-container {
        width: 100%;
        margin: 0 auto;
    }

    .form-row {
        margin: 0;
    }

    header {
        padding: 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-right h4 {
        margin-right: 0;
    }
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 3rem;
    margin-bottom: 5rem;
}

.map-container iframe {
    width: 100%;
    height: 180px;
}

.selector-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.selector-container label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-row input[type="submit"],
.form-row button {
    grid-column: span 2;
    background-color: #ec8805d4;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.form-row input[type="submit"]:hover,
.form-row button:hover {
    background-color: #da7a05;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #ec88058e;
}

input[type="date"]::placeholder {
    color: grey;
}

.map-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.range {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

#widget_distancias {
    display: flex;
    flex-direction: column;
    width: 420px;
}

.fondo_lugar {
    display: flex;
    justify-content: space-between;
    /* Separa los elementos hacia los extremos */
    align-items: center;
    /* Alinea verticalmente en el centro */
    width: 100%;
    /* Ocupa todo el espacio disponible */
    font-size: 0.9rem;
    /* Tamaño de fuente reducido para que se muestre en una línea */
    margin: 8px 0;
    /* Espaciado entre cada fila */
}

.lugar_place {
    flex: 1;
    border-bottom: 1px solid #ecececec;
    /* Línea fina con color semi-transparente */
    width: 100%;

}

footer {
    position: relative;
    width: 100%;
    background-color: #2c2c2c;
    color: white;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-left h4,
.footer-right h4 {
    margin-bottom: .5rem;
}

.bi-instagram,
.bi-envelope {
    margin: 0 0.5rem;
    font-size: 2rem;
    color: #878787
}

.whatsapp-icon {
    position: fixed;
    bottom: 50px;
    right: 10px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    padding: 0.5rem;
    font-size: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.working-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ecececab;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    color: rgba(46, 35, 13, 0.774);
    box-shadow: 0 0 10px orange;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px orange, 0 0 20px orange;
    }

    to {
        box-shadow: 0 0 15px orange, 0 0 30px orange;
    }
}

#svg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    z-index: -1;
    background: url('background.svg') no-repeat center center;
    background-size: cover;
}