/* Estilos generales para el fondo y la estructura */
.cotizacion-section {
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    padding: 40px;
    max-width: 1920px;
    margin: 0 auto;
}

.cotizacion-header {
    text-align: center;
    margin-bottom: 20px;
}

.cotizacion-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.leaflet-routing-container {
    display: none;
}

#map {
    height: 500px;
    width: 100%;
    max-width: 60%;
    margin-bottom: 20px;
}


.formulario-container {
    position: relative;
    width: 100%;
    max-width: 35%;
    padding: 20px;
    background: linear-gradient(71deg, #080509, #1a171c, #080509);
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(200, 160, 96, 0.3); /* Sombra más sutil */
}

.formulario-container h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

.formulario-container label {
    color: #fff;
    font-size: 16px;
}

.formulario-container label::after{
    content: '*';
    color: #c8a060;
    font-weight: bold;
    font-size: 24px;
}

.formulario-container input,
.formulario-container select,
.formulario-container button {
    background-color: #fff;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.formulario-container input:focus,
.formulario-container select:focus,
.formulario-container button:focus {
    outline: none;
    border: 1px solid #c8a060; /* Puedes definir un color de borde diferente si quieres */
}

.formulario-container input[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.formulario-container .form-indicacion {
    color: #bbb;
    font-size: 14px;
}

.formulario-container button {
    background-color: #1a171c;
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-top: 25px;
    transition: background-color 0.3s ease;
}

.formulario-container button:hover {
    background-color: #333;
}

/* Mensaje de carga */
#loadingMessage {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
}

/* Estilos para el botón de WhatsApp */
#whatsappButton {
    background: linear-gradient(135deg, #f4dba3, #c8a060); /* Degradado dorado */
    font-weight: bold;
    color: #3c1e00; 
    font-size: 16px;
    cursor: pointer;
    padding: 12px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: none;
}

#whatsappButton:hover {
    background: linear-gradient(135deg, #e0c08a, #a77d40); /* Tonos más oscuros */
}

.cotizacion-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cotizacion-section.show-cotizacion {
    opacity: 1;
    transform: translateY(0);
}

.cotizacion-content #map {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cotizacion-content #map.show-map {
    opacity: 1;
    transform: translateY(0);
}

.cotizacion-content .formulario-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.cotizacion-content .formulario-container.show-form {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para pantallas pequeñas */
@media (max-width: 1024px) {
    .cotizacion-content {
        flex-direction: column;
        align-items: center;
    }

    #map {
        width: 90%;
        max-width: 90%;
        height: 400px;
    }

    .formulario-container {
        width: 100%;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .cotizacion-section {
        padding: 20px;
    }

    #map {
        height: 350px;
    }

    .formulario-container {
        width: 100%;
        max-width: 90%;
    }

    .formulario-container button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cotizacion-section {
        padding: 10px;
    }

    #map {
        height: 300px;
    }

    .formulario-container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .formulario-container h3 {
        font-size: 18px;
    }

    .formulario-container button {
        font-size: 14px;
        padding: 12px;
    }

    #whatsappButton {
        font-size: 14px;
        padding: 10px;
    }
}